.
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=132
This commit is contained in:
parent
1df90b266d
commit
6821ccb639
9
man.spec
9
man.spec
@ -136,19 +136,13 @@ SEC=(0 1 n l 8 3 2 5 4 9 6 7
|
|||||||
Cg g s m
|
Cg g s m
|
||||||
)
|
)
|
||||||
SEC="${SEC[@]}"
|
SEC="${SEC[@]}"
|
||||||
if grep -q _DEFAULT_SOURCE %{_includedir}/features.h ; then
|
|
||||||
CFLAGS="%{optflags} -D_GNU_SOURCE -D_DEFAULT_SOURCE"
|
|
||||||
else
|
|
||||||
CFLAGS="%{optflags} -D_GNU_SOURCE -D_SVID_SOURCE"
|
|
||||||
fi
|
|
||||||
for d in $(cat man/LINGUAS*) ; do
|
for d in $(cat man/LINGUAS*) ; do
|
||||||
test -d %{_datadir}/locale/$d || continue
|
test -d %{_datadir}/locale/$d || continue
|
||||||
LINGUAS="${LINGUAS:+$LINGUAS }$d"
|
LINGUAS="${LINGUAS:+$LINGUAS }$d"
|
||||||
done
|
done
|
||||||
|
|
||||||
LIBS="-lalternatives"
|
LIBS="-lalternatives"
|
||||||
|
export LINGUAS LIBS
|
||||||
|
|
||||||
export CFLAGS LINGUAS LIBS
|
|
||||||
# Create configure
|
# Create configure
|
||||||
aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gl/m4
|
aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gl/m4
|
||||||
autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gl/m4
|
autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gl/m4
|
||||||
@ -156,6 +150,7 @@ automake --add-missing
|
|||||||
find -name 'Makefile.*' | xargs \
|
find -name 'Makefile.*' | xargs \
|
||||||
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
|
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
|
||||||
# Configure
|
# Configure
|
||||||
|
%add_optflags -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=500
|
||||||
%configure \
|
%configure \
|
||||||
%if %{without sdtimer}
|
%if %{without sdtimer}
|
||||||
--with-systemdtmpfilesdir=no \
|
--with-systemdtmpfilesdir=no \
|
||||||
|
Loading…
Reference in New Issue
Block a user