fix on other distros

OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=2
This commit is contained in:
Pascal Bleser 2011-05-27 05:45:44 +00:00 committed by Git OBS Bridge
parent c1d4d86a73
commit 77048e7ce5

View File

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