Dr. Werner Fink 2022-08-11 11:09:53 +00:00 committed by Git OBS Bridge
parent 1df90b266d
commit 6821ccb639

View File

@ -136,19 +136,13 @@ SEC=(0 1 n l 8 3 2 5 4 9 6 7
Cg g s m
)
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
test -d %{_datadir}/locale/$d || continue
LINGUAS="${LINGUAS:+$LINGUAS }$d"
done
LIBS="-lalternatives"
export LINGUAS LIBS
export CFLAGS LINGUAS LIBS
# Create configure
aclocal -I ${PWD} -I ${PWD}/m4 -I ${PWD}/gl/m4
autoconf -B ${PWD} -B ${PWD}/m4 -B ${PWD}/gl/m4
@ -156,6 +150,7 @@ automake --add-missing
find -name 'Makefile.*' | xargs \
sed -ri -e '/^pkglibdir/{ s@^(pkglibdir[[:blank:]]+=[[:blank:]]+\$\(libdir\)).*@\1@p }'
# Configure
%add_optflags -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=500
%configure \
%if %{without sdtimer}
--with-systemdtmpfilesdir=no \