From 7212e7a225e308b163c56cc252e2884b62ad9cf485357de1bc91cba6d410fcad Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 6 Mar 2019 13:17:17 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=95 --- man.changes | 5 +++++ man.spec | 21 ++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/man.changes b/man.changes index 86a56a6..2dd4ba6 100644 --- a/man.changes +++ b/man.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 6 13:15:43 UTC 2019 - Dr. Werner Fink + +- Minor corrections on %ghost /var/cache/man and link to apropos + ------------------------------------------------------------------- Wed Mar 6 11:47:58 UTC 2019 - Dr. Werner Fink diff --git a/man.spec b/man.spec index 966e62d..3d8919c 100644 --- a/man.spec +++ b/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