-# TODO
-# - %{perl_vendorlib}/LocaleData to perl-base or use glibc dirs
-#
# 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.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: b0252aeb490796248a91e6c2b3507d53
+# 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
BuildRequires: rpm-perlprov >= 4.1-13
Requires: ImageMagick
+Requires: perl-libintl >= 1.16
Requires: transcode
+Suggests: ffmpeg
+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
%prep
%setup -q
+%patch0 -p1
%build
+export SKIP_UNPACK_REQUIRED_MODULES=1
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make} -j1 \
%{__make} install \
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*
-# FIXME: this seems wrong
-%dir %{perl_vendorlib}/LocaleData
-%lang(cs) %dir %{perl_vendorlib}/LocaleData/cs/LC_MESSAGES
-%lang(cs) %{perl_vendorlib}/LocaleData/cs/LC_MESSAGES/video.dvdrip.mo
-%lang(de) %dir %{perl_vendorlib}/LocaleData/de/LC_MESSAGES
-%lang(de) %{perl_vendorlib}/LocaleData/de/LC_MESSAGES/video.dvdrip.mo
-%lang(es) %dir %{perl_vendorlib}/LocaleData/es/LC_MESSAGES
-%lang(es) %{perl_vendorlib}/LocaleData/es/LC_MESSAGES/video.dvdrip.mo
-%lang(fr) %dir %{perl_vendorlib}/LocaleData/fr/LC_MESSAGES
-%lang(fr) %{perl_vendorlib}/LocaleData/fr/LC_MESSAGES/video.dvdrip.mo
-%lang(it) %dir %{perl_vendorlib}/LocaleData/it/LC_MESSAGES
-%lang(it) %{perl_vendorlib}/LocaleData/it/LC_MESSAGES/video.dvdrip.mo
-%lang(sr) %dir %{perl_vendorlib}/LocaleData/sr/LC_MESSAGES
-%lang(sr) %{perl_vendorlib}/LocaleData/sr/LC_MESSAGES/video.dvdrip.mo