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:
|
# 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
|
Name: ranger
|
||||||
Version: 1.4.3
|
Version: 1.4.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -51,10 +54,7 @@ though ranger is easily controllable with just the arrow keys or the mouse.
|
|||||||
%install
|
%install
|
||||||
%__python ./setup.py install \
|
%__python ./setup.py install \
|
||||||
--prefix="%{_prefix}" \
|
--prefix="%{_prefix}" \
|
||||||
--root="%{buildroot}" \
|
--root="%{buildroot}"
|
||||||
--record-rpm=files.lst
|
|
||||||
|
|
||||||
%__perl -n -i -e 'print unless m,^%{_mandir},' files.lst
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
%__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
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||||
|
|
||||||
%files -f files.lst
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGELOG COPYING README
|
%doc CHANGELOG COPYING README
|
||||||
|
%{_bindir}/ranger
|
||||||
|
%{python_sitelib}/ranger-%{version}-*.egg-info
|
||||||
|
%{python_sitelib}/ranger
|
||||||
%doc %{_mandir}/man1/ranger.1%{ext_man}
|
%doc %{_mandir}/man1/ranger.1%{ext_man}
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user