From 14a75848dfe363465501b15e9e683de0df31f1351f18bee8e4940c9bdfac432b Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 2 Oct 2007 23:13:21 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swig?expand=0&rev=5 --- swig.changes | 6 ++++++ swig.spec | 19 +++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/swig.changes b/swig.changes index c776e02..019cee0 100644 --- a/swig.changes +++ b/swig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 19 16:54:03 CEST 2007 - mmarek@suse.cz + +- don't "update" autofoo when building for older dists in the + buildservice + ------------------------------------------------------------------- Tue May 29 11:13:24 CEST 2007 - mmarek@suse.cz diff --git a/swig.spec b/swig.spec index ba61f6a..404c168 100644 --- a/swig.spec +++ b/swig.spec @@ -12,13 +12,13 @@ Name: swig BuildRequires: gcc-c++ python-devel -URL: http://www.swig.org -License: BSD License and BSD-like +Url: http://www.swig.org +License: BSD 3-Clause Group: Development/Languages/C and C++ -Autoreqprov: on +AutoReqProv: on Summary: Simplified Wrapper and Interface Generator Version: 1.3.31 -Release: 18 +Release: 51 Source: swig-%{version}.tar.bz2 Patch1: swig-testsuite.patch Patch2: swig-1.3.31-testsuite-warnings.patch @@ -94,7 +94,12 @@ Authors: %patch2 %build -ACLOCAL="aclocal -I Tools/config" autoreconf -fi +v1=$(awk '/^# Generated by GNU Autoconf / { print $6; exit; }' configure) +v2=$(autoconf -V | awk '/autoconf \(GNU Autoconf\)/ {print $4; exit}') +old=$(perl -e "print ($v1 <= $v2);") +if test "x$old" = "x1"; then + ./autogen.sh +fi export CCSHARED="-fPIC -fno-strict-aliasing $RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" @@ -147,8 +152,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_docdir}/%{name}/Examples %{_libdir}/swig - %changelog +* Wed Sep 19 2007 - mmarek@suse.cz +- don't "update" autofoo when building for older dists in the + buildservice * Tue May 29 2007 - mmarek@suse.cz - install examples in '%%_libdir/swig/examples' (not Examples) to pass the devel-file-in-non-devel-package rpmlint check