diff --git a/man.changes b/man.changes index 83abf77..6a16939 100644 --- a/man.changes +++ b/man.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 10:00:30 UTC 2017 - werner@suse.de + +- Use _libexecdir instead of _prefix/lib + ------------------------------------------------------------------- Fri Dec 16 09:37:34 UTC 2016 - werner@suse.de diff --git a/man.spec b/man.spec index 0b6a416..99525c1 100644 --- a/man.spec +++ b/man.spec @@ -1,7 +1,7 @@ # # spec file for package man # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -123,7 +123,7 @@ Authors: rm -f configure %global optflags %{optflags} -funroll-loops -pipe -Wall if grep -q _DEFAULT_SOURCE /usr/include/features.h ; then - CFLAGS="%{optflags} -D_DEFAULT_SOURCE" + CFLAGS="%{optflags} -D_GNU_SOURCE -D_DEFAULT_SOURCE" else CFLAGS="%{optflags} -D_GNU_SOURCE -D_SVID_SOURCE" fi @@ -189,7 +189,7 @@ fi %endif rm -rf %{buildroot}%{_localstatedir}/cache/man mkdir -p %{buildroot}%{_datadir}/doc/packages/man - mkdir -p %{buildroot}%{_prefix}/lib/man-db + mkdir -p %{buildroot}%{_libexecdir}/man-db mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}/etc make nls=all install DESTDIR=%{buildroot} @@ -198,12 +198,12 @@ fi %{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}%{_libexecdir}/man-db/ install wrapper %{buildroot}%{_bindir}/mandb fi %if %{with wrapman} if test -x %{buildroot}%{_bindir}/man ; then - mv %{buildroot}%{_bindir}/man %{buildroot}%{_prefix}/lib/man-db/ + mv %{buildroot}%{_bindir}/man %{buildroot}%{_libexecdir}/man-db/ ln -sf mandb %{buildroot}%{_bindir}/man fi %endif