-# 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 -3
-Release: 3
+Version: %{_mainver}%{_subver}
+Release: 14
License: GPL
Group: X11/Applications
-Source0: http://dl.sourceforge.net/dvd2avi/%{name}-%{version}%{_ver}.tgz
-# Source0-md5: fa7550ecfe8b184500f69147ba3995a5
+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
+BuildArch: noarch
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
%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_vendorlib}/Dvd2avi,%{_datadir}/dvd2avi,%{_desktopdir}}
+install dvd2avi.pl $RPM_BUILD_ROOT%{_bindir}/dvd2avi
+install functions.pm $RPM_BUILD_ROOT%{perl_vendorlib}/Dvd2avi/Functions.pm
install dvd2avi.glade $RPM_BUILD_ROOT%{_datadir}/dvd2avi/dvd2avi.glade
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
%defattr(644,root,root,755)
%doc README INSTALL
%attr(755,root,root) %{_bindir}/dvd2avi
-%{perl_vendorarch}/functions.pm
+%dir %{perl_vendorlib}/Dvd2avi
+%{perl_vendorlib}/Dvd2avi/*
%dir %{_datadir}/dvd2avi
-%{_datadir}/dvd2avi/dvd2avi.glade
+%{_datadir}/dvd2avi/*
%{_desktopdir}/dvd2avi.desktop