diff --git a/epour.spec b/epour.spec index 90c41d0..61ee70e 100644 --- a/epour.spec +++ b/epour.spec @@ -35,6 +35,11 @@ Requires: python-xdg Requires: python-libtorrent-rasterbar buildroot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} +BuildRequires: fdupes +BuildRequires: update-desktop-files +%endif + %description EFL and libtorrent based BitTorrent client. @@ -46,6 +51,12 @@ python setup.py build %install python setup.py install --root "%{buildroot}" + +%if 0%{?suse_version} +%fdupes %{buildroot}/%{_datadir} +%suse_update_desktop_file epour +%endif + rm -rf "%{buildroot}/%{_datadir}/doc" %files