diff --git a/ranger.spec b/ranger.spec index 91282e0..ba51d54 100644 --- a/ranger.spec +++ b/ranger.spec @@ -11,14 +11,18 @@ URL: http://ranger.nongnu.org Group: Productivity/File utilities License: GNU General Public License version 3 (GPL v3) BuildRoot: %{_tmppath}/build-%{name}-%{version} -BuildRequires: python-devel +BuildRequires: python-devel >= 2.5.1 +%if 0%{?suse_version} BuildRequires: update-desktop-files +%endif Requires: file Recommends: atool Recommends: mediainfo Recommends: w3m Recommends: highlight +%if 0%{?suse_version} >= 1120 BuildArch: noarch +%endif %py_requires %description @@ -45,8 +49,10 @@ though ranger is easily controllable with just the arrow keys or the mouse. %__perl -n -i -e 'print unless m,^%{_mandir},' files.lst +%if 0%{?suse_version} %__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" %suse_update_desktop_file -r "%{name}" System FileManager +%endif %clean %{?buildroot:%__rm -rf "%{buildroot}"} @@ -55,5 +61,7 @@ though ranger is easily controllable with just the arrow keys or the mouse. %defattr(-,root,root) %doc CHANGELOG COPYING README %doc %{_mandir}/man1/ranger.1%{ext_man} +%if 0%{?suse_version} %{_datadir}/applications/%{name}.desktop +%endif