]> git.pld-linux.org Git - packages/dvdrip.git/blobdiff - dvdrip.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dvdrip.git] / dvdrip.spec
index 3a284ef819e25cb343fffed8ae0a13f6d53f074d..8edb2df4bb129b1e135c24321a3e2c26530fcac4 100644 (file)
@@ -1,10 +1,6 @@
-# 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
@@ -23,17 +19,19 @@ Summary(sv.UTF-8):  Video::DVDRip Perlmodul
 Summary(uk.UTF-8):     Модуль для Perl Video::DVDRip
 Summary(zh_CN.UTF-8):  Video::DVDRip Perl 模块
 Name:          dvdrip
-Version:       0.98.8
+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
@@ -41,8 +39,12 @@ 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
@@ -61,6 +63,7 @@ obrazu, napisanego przez Thomasa Östreicha.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export SKIP_UNPACK_REQUIRED_MODULES=1
@@ -77,28 +80,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__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
This page took 0.032234 seconds and 4 git commands to generate.