.
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=95
This commit is contained in:
parent
a595279334
commit
7212e7a225
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 13:15:43 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Minor corrections on %ghost /var/cache/man and link to apropos
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 11:47:58 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
21
man.spec
21
man.spec
@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@ -214,12 +214,12 @@ fi
|
||||
# wrapper which drops roots privileges if root executes man or mandb
|
||||
mv -vf %{buildroot}%{_bindir}/man %{buildroot}%{_libexecdir}/man-db/
|
||||
mv -vf %{buildroot}%{_bindir}/mandb %{buildroot}%{_libexecdir}/man-db/
|
||||
mv -vf %{buildroot}%{_bindir}/apropos %{buildroot}%{_libexecdir}/man-db/
|
||||
rm -vf %{buildroot}%{_bindir}/apropos
|
||||
mv -vf %{buildroot}%{_bindir}/whatis %{buildroot}%{_libexecdir}/man-db/
|
||||
install wrapper %{buildroot}%{_libexecdir}/man-db/
|
||||
ln -sf %{_libexecdir}/man-db/wrapper %{buildroot}%{_sysconfdir}/alternatives/man
|
||||
ln -sf %{_libexecdir}/man-db/wrapper %{buildroot}%{_bindir}/mandb
|
||||
ln -sf %{_libexecdir}/man-db/apropos %{buildroot}%{_sysconfdir}/alternatives/apropos
|
||||
ln -sf %{_libexecdir}/man-db/whatis %{buildroot}%{_sysconfdir}/alternatives/apropos
|
||||
ln -sf %{_libexecdir}/man-db/whatis %{buildroot}%{_sysconfdir}/alternatives/whatis
|
||||
ln -sf %{_sysconfdir}/alternatives/man %{buildroot}%{_bindir}/man
|
||||
ln -sf %{_sysconfdir}/alternatives/apropos %{buildroot}%{_bindir}/apropos
|
||||
@ -229,8 +229,8 @@ fi
|
||||
for d in *.UTF-8 ; do
|
||||
find -name '*.[1-9nlop]' | xargs gzip -9f
|
||||
done
|
||||
for d in `find -name manpath.5.gz -printf '%%h '` ; do
|
||||
ln -sf manpath.5.gz $d/manpath.config.5.gz
|
||||
for d in `find -name manpath.5%{?ext_man} -printf '%%h '` ; do
|
||||
ln -sf manpath.5%{?ext_man} $d/manpath.config.5%{?ext_man}
|
||||
done
|
||||
|
||||
# remove japanese pages, as they are in man-pages-ja
|
||||
@ -282,7 +282,7 @@ test -d var/catman/ && rm -rf var/catman/ || true
|
||||
# makewhatis(8) is part of package makewaht or mandoc
|
||||
%{_sbindir}/update-alternatives --quiet --force \
|
||||
--install %{_bindir}/man man %{_libexecdir}/man-db/wrapper 1010 \
|
||||
--slave %{_bindir}/apropos apropos %{_libexecdir}/man-db/apropos \
|
||||
--slave %{_bindir}/apropos apropos %{_libexecdir}/man-db/whatis \
|
||||
--slave %{_bindir}/whatis whatis %{_libexecdir}/man-db/whatis
|
||||
|
||||
%preun
|
||||
@ -326,7 +326,6 @@ test -d /var/cache/man && mandb --quiet --create ||:
|
||||
%{_bindir}/manpath
|
||||
%dir %attr(0755,root,root) %{_libexecdir}/man-db
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/man
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/apropos
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/whatis
|
||||
%attr(0755,root,root) %{_libexecdir}/man-db/mandb
|
||||
%attr(0755,man,man) %{_libexecdir}/man-db/manconv
|
||||
@ -350,14 +349,14 @@ test -d /var/cache/man && mandb --quiet --create ||:
|
||||
%dir %{_datadir}/groff/site-tmac
|
||||
%{_datadir}/groff/site-tmac/tmac.andb
|
||||
%{_datadir}/groff/site-tmac/tmac.andocdb
|
||||
%doc %{_mandir}/man1/*.1.gz
|
||||
%doc %{_mandir}/man5/*.5.gz
|
||||
%doc %{_mandir}/man8/*.8.gz
|
||||
%doc %{_mandir}/man1/*.1%{?ext_man}
|
||||
%doc %{_mandir}/man5/*.5%{?ext_man}
|
||||
%doc %{_mandir}/man8/*.8%{?ext_man}
|
||||
%dir %{_mandir}/id
|
||||
%dir %{_mandir}/sr
|
||||
%dir %{_mandir}/tr
|
||||
%{_fillupdir}/sysconfig.cron-man
|
||||
%defattr(-,man,man)
|
||||
%ghost %{_localstatedir}/cache/man
|
||||
%ghost %verify(not group) %{_localstatedir}/cache/man
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user