diff --git a/0001-build-support-for-automake-1.13.patch b/0001-build-support-for-automake-1.13.patch new file mode 100644 index 0000000..4c0c3f3 --- /dev/null +++ b/0001-build-support-for-automake-1.13.patch @@ -0,0 +1,36 @@ +From b639f8e30ff6d7190766c66129559fe3348ac58c Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Fri, 1 Mar 2013 00:05:37 +0100 +Subject: [PATCH] build: support for automake-1.13 + +AM_CONFIG_HEADER is long obsolete; replace by the more timely +AC_CONFIG_HEADERS. Also nuke that ancient AM_INIT_AUTOMAKE syntax. +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 30ae86b..eaf920e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,7 +1,7 @@ + AC_INIT(Lhasa, 0.0.7, fraggle@gmail.com, lhasa) + AC_CONFIG_AUX_DIR(autotools) + +-AM_INIT_AUTOMAKE($PACKAGE_TARNAME, $PACKAGE_VERSION, no-define) ++AM_INIT_AUTOMAKE([no-define]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + AM_PROG_CC_C_O + +@@ -71,7 +71,7 @@ AC_SUBST(MAIN_CFLAGS) + AC_SUBST(TEST_CFLAGS) + AC_SUBST(ac_aux_dir) + +-AM_CONFIG_HEADER(config.h:config.hin) ++AC_CONFIG_HEADERS([config.h:config.hin]) + + AC_OUTPUT([ + liblhasa.pc +-- +1.7.10.4 + diff --git a/lhasa.changes b/lhasa.changes index 01893d6..6e775d3 100644 --- a/lhasa.changes +++ b/lhasa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 7 13:13:00 UTC 2013 - jengelh@inai.de + +- Add 0001-build-support-for-automake-1.13.patch + ------------------------------------------------------------------- Thu Feb 28 23:10:57 UTC 2013 - jengelh@inai.de diff --git a/lhasa.spec b/lhasa.spec index c922a9f..c7d394a 100644 --- a/lhasa.spec +++ b/lhasa.spec @@ -24,12 +24,16 @@ Summary: Program to unpack LHARC archives License: ISC Group: Productivity/Archiving/Compression Url: http://fragglet.github.com/lhasa/ -#Freecode-URL: http://freecode.com/projects/lhasa +#Freecode-URL: http://freecode.com/projects/lhasa #Git-Clone: git://github.com/fragglet/lhasa #DL-URL: https://github.com/downloads/fragglet/lhasa/lhasa-0.0.7.tar.gz Source: %name-%version.tar.xz +Patch1: 0001-build-support-for-automake-1.13.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xz @@ -59,8 +63,10 @@ in %lname. %prep %setup -q +%patch -P 1 -p1 %build +autoreconf -fi %configure --disable-static make %{?_smp_mflags};