X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dvd2avi.spec;h=0e0578f42351ce515ec2fe1a7496204e4e266f8b;hb=bd83cf94b94434095540bb3846834a0ac6f6d652;hp=d731e8ee35802f59b477b91dcd8a1ba88a2fce1d;hpb=0f04cbb3875103e902c23398aa644b5d747e90a5;p=packages%2Fdvd2avi.git diff --git a/dvd2avi.spec b/dvd2avi.spec index d731e8e..0e0578f 100644 --- a/dvd2avi.spec +++ b/dvd2avi.spec @@ -1,42 +1,45 @@ -# TODO: don't put functions.pm in perl_vendorlib %include /usr/lib/rpm/macros.perl +%define _mainver 0.7 +%define _subver .9 +%define _ver %(echo %{_subver} |tr . -) Summary: dvd2avi - conversion tool -Summary(de): dvd2avi - ein konversions Tool -Summary(pl): dvd2avi - narzêdzie do konwersji +Summary(de.UTF-8): dvd2avi - ein konversions Tool +Summary(pl.UTF-8): dvd2avi - narzędzie do konwersji Name: dvd2avi -Version: 0.7 -%define _ver %{nil} -Release: 2 +Version: %{_mainver}%{_subver} +Release: 5 License: GPL Group: X11/Applications -Source0: http://dl.sourceforge.net/dvd2avi/%{name}-%{version}%{_ver}.tgz -# Source0-md5: f296a360f41d4c06a2d60e2a7529f47f +Source0: http://dl.sourceforge.net/dvd2avi/%{name}-%{_mainver}%{_ver}.tgz +# Source0-md5: a8e464ec8ffd02919ba2956ccf53ac68 Source1: %{name}.desktop Patch0: %{name}-location.patch URL: http://dvd2avi.sourceforge.net/ BuildRequires: rpm-perlprov +Requires: lsdvd +Requires: mencoder BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DVD2AVI makes conversion of DVDs to AVIs a real breeze. -%description -l de +%description -l de.UTF-8 DVD2AVI macht eine konversion von einer DVD zum AVI Format zum Kinderspiel. -%description -l pl -DVD2AVI sprawia, ¿e konwersja z DVD do AVI staje siê lekka jak morska +%description -l pl.UTF-8 +DVD2AVI sprawia, że konwersja z DVD do AVI staje się lekka jak morska bryza. %prep -%setup -q -n %{name} +%setup -q -n opt/%{name} %patch0 -p0 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorarch},%{_datadir}/dvd2avi,%{_desktopdir}} -install dvd2avi $RPM_BUILD_ROOT%{_bindir}/dvd2avi -install functions.pm $RPM_BUILD_ROOT%{perl_vendorarch}/functions.pm +install -d $RPM_BUILD_ROOT{%{_bindir},%{perl_vendorarch}/Dvd2avi,%{_datadir}/dvd2avi,%{_desktopdir}} +install dvd2avi.pl $RPM_BUILD_ROOT%{_bindir}/dvd2avi +install functions.pm $RPM_BUILD_ROOT%{perl_vendorarch}/Dvd2avi/Functions.pm install dvd2avi.glade $RPM_BUILD_ROOT%{_datadir}/dvd2avi/dvd2avi.glade install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} @@ -47,7 +50,8 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README INSTALL %attr(755,root,root) %{_bindir}/dvd2avi -%{perl_vendorarch}/functions.pm +%dir %{perl_vendorarch}/Dvd2avi +%{perl_vendorarch}/Dvd2avi/* %dir %{_datadir}/dvd2avi -%{_datadir}/dvd2avi/dvd2avi.glade +%{_datadir}/dvd2avi/* %{_desktopdir}/dvd2avi.desktop