[mingw-gtk3] Refactor autoreconf handling
Kalev Lember
kalev at fedoraproject.org
Tue Oct 14 13:49:42 UTC 2014
commit e6386322b9b0d5c9b8f0d76fad637e5caca39f8e
Author: David King <amigadave at amigadave.com>
Date: Thu Oct 9 13:56:35 2014 +0100
Refactor autoreconf handling
mingw-gtk3.spec | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/mingw-gtk3.spec b/mingw-gtk3.spec
index e64787c..a21fc87 100644
--- a/mingw-gtk3.spec
+++ b/mingw-gtk3.spec
@@ -4,6 +4,10 @@
# first two digits of version
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
+# Only enable if using patches that touches configure.ac,
+# Makefile.am or other build system related files
+%define enable_autoreconf 1
+
Name: mingw-gtk3
Version: 3.14.3
Release: 1%{?dist}
@@ -58,8 +62,12 @@ BuildRequires: gtk2
# Native one for gdk-pixbuf-csource
BuildRequires: gdk-pixbuf2-devel
-# Used by autoreconf.
-BuildRequires: autoconf automake libtool gobject-introspection-devel
+%if 0%{?enable_autoreconf}
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gobject-introspection-devel
+BuildRequires: libtool
+%endif
%description
@@ -107,7 +115,9 @@ This package contains the MinGW Windows cross compiled GTK+ 3 library.
%prep
%setup -q -n gtk+-%{version}
%patch0 -p1 -b .extract_strings
+%if 0%{?enable_autoreconf}
autoreconf --install --force
+%endif
%build
@@ -275,6 +285,7 @@ fi
%changelog
* Tue Oct 14 2014 David King <amigadave at amigadave.com> - 3.14.3-1
- Update to 3.14.3
+- Refactor autoreconf handling
* Tue Sep 23 2014 Erik van Pienbroek <epienbro at fedoraproject.org> - 3.14.0-1
- Update to 3.14.0
More information about the scm-commits
mailing list