[mingw-pkg-config] Use the configure macro
Kalev Lember
kalev at fedoraproject.org
Mon Feb 27 18:37:14 UTC 2012
commit 3c965ac8e14daad4ebf79df69e738ce57245b1ca
Author: Kalev Lember <kalevlember at gmail.com>
Date: Mon Feb 27 20:35:47 2012 +0200
Use the configure macro
mingw-pkg-config.spec | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/mingw-pkg-config.spec b/mingw-pkg-config.spec
index a3eed68..a229466 100644
--- a/mingw-pkg-config.spec
+++ b/mingw-pkg-config.spec
@@ -1,6 +1,6 @@
Name: mingw-pkg-config
Version: 0.26
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A tool for determining compilation options
License: GPLv2+
@@ -46,11 +46,11 @@ compiler and linker flags.
%build
+%global _configure ../configure
+
mkdir build_win32
pushd build_win32
- CFLAGS="$RPM_OPT_FLAGS" \
- ../configure \
- --prefix=%{_prefix} \
+ %configure \
--disable-shared \
--program-prefix=%{mingw32_target}- \
--with-installed-popt \
@@ -61,9 +61,7 @@ popd
mkdir build_win64
pushd build_win64
- CFLAGS="$RPM_OPT_FLAGS" \
- ../configure \
- --prefix=%{_prefix} \
+ %configure \
--disable-shared \
--program-prefix=%{mingw64_target}- \
--with-installed-popt \
@@ -94,6 +92,9 @@ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/pkg-config
%changelog
+* Mon Feb 27 2012 Kalev Lember <kalevlember at gmail.com> - 0.26-4
+- Use the configure macro
+
* Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 0.26-3
- Added support for win64
More information about the mingw
mailing list