replace --record-rpm with manual %files list, as it doesn't work on fedora
OBS-URL: https://build.opensuse.org/package/show/utilities/ranger?expand=0&rev=6
This commit is contained in:
parent
2956579234
commit
c67abbb610
13
ranger.spec
13
ranger.spec
@ -1,5 +1,8 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
|
||||
Name: ranger
|
||||
Version: 1.4.3
|
||||
Release: 0
|
||||
@ -51,10 +54,7 @@ though ranger is easily controllable with just the arrow keys or the mouse.
|
||||
%install
|
||||
%__python ./setup.py install \
|
||||
--prefix="%{_prefix}" \
|
||||
--root="%{buildroot}" \
|
||||
--record-rpm=files.lst
|
||||
|
||||
%__perl -n -i -e 'print unless m,^%{_mandir},' files.lst
|
||||
--root="%{buildroot}"
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
||||
@ -64,9 +64,12 @@ though ranger is easily controllable with just the arrow keys or the mouse.
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files -f files.lst
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG COPYING README
|
||||
%{_bindir}/ranger
|
||||
%{python_sitelib}/ranger-%{version}-*.egg-info
|
||||
%{python_sitelib}/ranger
|
||||
%doc %{_mandir}/man1/ranger.1%{ext_man}
|
||||
%if 0%{?suse_version}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
|
Loading…
Reference in New Issue
Block a user