From 5c234c076c0c3bc92502303ae0988ee3eb613a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Tue, 13 Jul 2010 07:09:20 +0000 Subject: [PATCH] - remove the need to call autoreconf --- libgphoto2.spec | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/libgphoto2.spec b/libgphoto2.spec index fdf87f3..8e45592 100644 --- a/libgphoto2.spec +++ b/libgphoto2.spec @@ -1,7 +1,7 @@ Summary: Library for accessing digital cameras Name: libgphoto2 Version: 2.4.9 -Release: 1%{?dist} +Release: 2%{?dist} # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2 License: GPLv2+ and GPLv2 Group: Development/Libraries @@ -20,8 +20,6 @@ BuildRequires: libexif-devel BuildRequires: libjpeg-devel BuildRequires: pkgconfig, sharutils BuildRequires: libtool-ltdl-devel, popt-devel -# we run autoreconf: -BuildRequires: autoconf, automake, libtool, gettext-devel, cvs Obsoletes: gphoto2 < 2.4.0-11 Obsoletes: gphoto2-devel < 2.4.0-11 @@ -82,18 +80,18 @@ EOF sed 's/Name: gphoto2/Name: gphoto2-port/' < gphoto2.pc.in > gphoto2-port.pc.in %build -# Patch6 changes configure.ac, so we run autoreconf. -# This also installs our patched libtool.m4, avoiding the rpath problem. -# But fix a typo first: -sed -i 's/\(AC_SUBST([^,]*\)}/\1/' {m4m,libgphoto2_port/m4}/gp-documentation.m4 -sed -i 's/\(m4_pattern_\)disallow/\1forbid/g' {m4m,libgphoto2_port/m4}/gp-check-library.m4 -autoreconf -i --force -export CFLAGS=$RPM_OPT_FLAGS %configure \ --with-drivers=all \ --with-doc-dir=%{_docdir}/%{name} \ --disable-static \ --disable-rpath + +# Don't use rpath! +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libgphoto2_port/libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libgphoto2_port/libtool + make %{?_smp_mflags} %install @@ -164,6 +162,9 @@ rm -rf "${RPM_BUILD_ROOT}" %{_mandir}/man3/* %changelog +* Mon Jul 12 2010 Dan HorĂ¡k 2.4.9-2 +- remove the need to call autoreconf + * Mon Apr 12 2010 Jindrich Novy 2.4.9-1 - update to 2.4.9