.
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=36
This commit is contained in:
parent
c33c7813f2
commit
c5e45f329e
16
man.spec
16
man.spec
@ -120,6 +120,8 @@ Authors:
|
|||||||
aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gnulib/m4
|
aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gnulib/m4
|
||||||
autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gnulib/m4
|
autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gnulib/m4
|
||||||
automake --add-missing
|
automake --add-missing
|
||||||
|
find -name 'Makefile.*' | xargs \
|
||||||
|
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
|
||||||
%configure \
|
%configure \
|
||||||
--enable-dups \
|
--enable-dups \
|
||||||
--enable-setuid=man \
|
--enable-setuid=man \
|
||||||
@ -166,17 +168,15 @@ Authors:
|
|||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
mkdir -p %{buildroot}/etc
|
mkdir -p %{buildroot}/etc
|
||||||
make nls=all install DESTDIR=%{buildroot}
|
make nls=all install DESTDIR=%{buildroot}
|
||||||
mv %{buildroot}%{_libdir}/man-db/libman*%{version}.so \
|
rm -vf %{buildroot}%{_libdir}/*.la
|
||||||
%{buildroot}%{_libdir}/
|
mv %{buildroot}%{_datadir}/doc/man-db/man-db-manual.* \
|
||||||
rm -rfv %{buildroot}%{_libdir}/man-db/
|
%{buildroot}%{_datadir}/doc/packages/man/
|
||||||
mv %{buildroot}%{_datadir}/doc/man-db/man-db-manual.* \
|
# wrapper which drops roots privileges if root executes man or mandb
|
||||||
%{buildroot}%{_datadir}/doc/packages/man/
|
|
||||||
# wrapper
|
|
||||||
if test -x %{buildroot}%{_bindir}/mandb ; then
|
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
|
fi
|
||||||
if test -x %{buildroot}%{_bindir}/man ; then
|
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
|
fi
|
||||||
install wrapper %{buildroot}%{_bindir}/mandb
|
install wrapper %{buildroot}%{_bindir}/mandb
|
||||||
ln -sf mandb %{buildroot}%{_bindir}/man
|
ln -sf mandb %{buildroot}%{_bindir}/man
|
||||||
|
Loading…
Reference in New Issue
Block a user