From c5e45f329e40b45abef08a4f5df94e5246b670d8b11201988a3d3c98713be0a5 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 4 Oct 2012 08:09:29 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=36 --- man.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/man.spec b/man.spec index 4c44a2d..f29ae6e 100644 --- a/man.spec +++ b/man.spec @@ -120,6 +120,8 @@ Authors: aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gnulib/m4 autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gnulib/m4 automake --add-missing + find -name 'Makefile.*' | xargs \ + sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }' %configure \ --enable-dups \ --enable-setuid=man \ @@ -166,17 +168,15 @@ Authors: mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}/etc make nls=all install DESTDIR=%{buildroot} - mv %{buildroot}%{_libdir}/man-db/libman*%{version}.so \ - %{buildroot}%{_libdir}/ - rm -rfv %{buildroot}%{_libdir}/man-db/ - mv %{buildroot}%{_datadir}/doc/man-db/man-db-manual.* \ - %{buildroot}%{_datadir}/doc/packages/man/ - # wrapper + rm -vf %{buildroot}%{_libdir}/*.la + mv %{buildroot}%{_datadir}/doc/man-db/man-db-manual.* \ + %{buildroot}%{_datadir}/doc/packages/man/ + # wrapper which drops roots privileges if root executes man or mandb if test -x %{buildroot}%{_bindir}/mandb ; then - mv %{buildroot}%{_bindir}/mandb %{buildroot}%{_prefix}/lib/man-db/ + mv %{buildroot}%{_bindir}/mandb %{buildroot}%{_prefix}/lib/man-db/ fi if test -x %{buildroot}%{_bindir}/man ; then - mv %{buildroot}%{_bindir}/man %{buildroot}%{_prefix}/lib/man-db/ + mv %{buildroot}%{_bindir}/man %{buildroot}%{_prefix}/lib/man-db/ fi install wrapper %{buildroot}%{_bindir}/mandb ln -sf mandb %{buildroot}%{_bindir}/man