# Conditional build:
%bcond_with tests # perform "make test" (needs working, not busy /dev/audio!)
#
-%include /usr/lib/rpm/macros.perl
Summary: Video::DVDRip Perl module
Summary(cs.UTF-8): Modul Video::DVDRip pro Perl
Summary(da.UTF-8): Perlmodul Video::DVDRip
Summary(uk.UTF-8): Модуль для Perl Video::DVDRip
Summary(zh_CN.UTF-8): Video::DVDRip Perl 模块
Name: dvdrip
-Version: 0.98.8
-Release: 2
+Version: 0.98.11
+Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.exit1.org/dvdrip/dist/%{name}-%{version}.tar.gz
-# Source0-md5: 61b77b298b14c6bde83713e93e9ea4d8
+# Source0-md5: 6dfa4199d451757a37eea233a07da4c0
Patch0: %{name}-locale_path.patch
URL: http://www.exit1.org/dvdrip/
BuildRequires: perl-AnyEvent
BuildRequires: perl-Event
BuildRequires: perl-Event-RPC
+BuildRequires: perl-Event-ExecFlow
BuildRequires: perl-Gtk2-Ex-FormFactory
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: perl-libintl >= 1.16
Suggests: mplayer
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noautoreq 'perl(Video::DVDRip::Task)'
+
%description
dvd::rip is a Perl GTK+ based DVD copy program build on top of a low
level DVD Ripping API, which uses the Linux Video Stream Processing
DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{perl_vendorlib}/LocaleData $RPM_BUILD_ROOT%{_datadir}/locale
+%find_lang video.%{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f video.%{name}.lang
%defattr(644,root,root,755)
%doc Changes Credits README TODO
%attr(755,root,root) %{_bindir}/*
%{perl_vendorlib}/Video
%{_mandir}/man1/*
%{_mandir}/man3/Video*
-%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/video.dvdrip.mo
-%lang(de) %{_datadir}/locale/de/LC_MESSAGES/video.dvdrip.mo
-%lang(es) %{_datadir}/locale/es/LC_MESSAGES/video.dvdrip.mo
-%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/video.dvdrip.mo
-%lang(it) %{_datadir}/locale/it/LC_MESSAGES/video.dvdrip.mo
-%lang(sr) %{_datadir}/locale/sr/LC_MESSAGES/video.dvdrip.mo