build fixes for the new automake-1.13 in koji
This commit is contained in:
parent
a891e63622
commit
595a4a3ade
70
autogen.sh
Executable file
70
autogen.sh
Executable file
@ -0,0 +1,70 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
print_help()
|
||||||
|
{
|
||||||
|
cat << EOH
|
||||||
|
Prepares the source tree for configuration
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
autogen.sh [sydeps [--install]]
|
||||||
|
|
||||||
|
Options:
|
||||||
|
|
||||||
|
sysdeps prints out all dependencies
|
||||||
|
--install install all dependencies ('sudo yum install \$DEPS')
|
||||||
|
|
||||||
|
EOH
|
||||||
|
}
|
||||||
|
|
||||||
|
build_depslist()
|
||||||
|
{
|
||||||
|
DEPS_LIST=`grep "^\(Build\)\?Requires:" *.spec.in | grep -v "%{name}" | tr -s " " | tr "," "\n" | cut -f2 -d " " | grep -v "^libreport" | sort -u | tr "\n" " "`
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"--help"|"-h")
|
||||||
|
print_help
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
"sysdeps")
|
||||||
|
build_depslist
|
||||||
|
|
||||||
|
if [ "$2" == "--install" ]; then
|
||||||
|
set -x verbose
|
||||||
|
sudo yum install $DEPS_LIST
|
||||||
|
set +x verbose
|
||||||
|
else
|
||||||
|
echo $DEPS_LIST
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Running gen-version"
|
||||||
|
./gen-version
|
||||||
|
|
||||||
|
mkdir -p m4
|
||||||
|
echo "Creating m4/aclocal.m4 ..."
|
||||||
|
test -r m4/aclocal.m4 || touch m4/aclocal.m4
|
||||||
|
|
||||||
|
echo "Running autopoint"
|
||||||
|
autopoint --force || exit 1
|
||||||
|
|
||||||
|
echo "Running intltoolize..."
|
||||||
|
intltoolize --force --copy --automake || exit 1
|
||||||
|
|
||||||
|
echo "Running aclocal..."
|
||||||
|
aclocal || exit 1
|
||||||
|
|
||||||
|
echo "Running libtoolize..."
|
||||||
|
libtoolize || exit 1
|
||||||
|
|
||||||
|
echo "Running autoheader..."
|
||||||
|
autoheader || return 1
|
||||||
|
|
||||||
|
echo "Running autoconf..."
|
||||||
|
autoconf --force || exit 1
|
||||||
|
|
||||||
|
echo "Running automake..."
|
||||||
|
automake --add-missing --force --copy || exit 1
|
||||||
|
;;
|
||||||
|
esac
|
@ -10,6 +10,7 @@ License: GPLv2+
|
|||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: https://fedorahosted.org/abrt/
|
URL: https://fedorahosted.org/abrt/
|
||||||
Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
|
Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
|
||||||
|
Source1: autogen.sh
|
||||||
|
|
||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
@ -271,9 +272,11 @@ infrastructure or uploading the gathered data over ftp/scp...
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
# koji in f19 has new autotools, so we need to regenerate everything
|
||||||
|
cp %SOURCE1 %_builddir/%{name}-%{version}
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf
|
|
||||||
# Commented because of deprecated GTK API
|
# Commented because of deprecated GTK API
|
||||||
#CFLAGS="%{optflags} -Werror" %configure --disable-silent-rules
|
#CFLAGS="%{optflags} -Werror" %configure --disable-silent-rules
|
||||||
CFLAGS="%{optflags}" %configure --enable-doxygen-docs --disable-silent-rules
|
CFLAGS="%{optflags}" %configure --enable-doxygen-docs --disable-silent-rules
|
||||||
|
Loading…
Reference in New Issue
Block a user