forked from pool/ranger
fix on other distros
OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=2
This commit is contained in:
parent
c1d4d86a73
commit
77048e7ce5
10
ranger.spec
10
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user