[mingw-pangomm] Build 64 bit Windows binaries

Kalev Lember kalev at fedoraproject.org
Thu Mar 15 22:16:21 UTC 2012


commit edc90c586e498ef932b74d083645b122acb9407b
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Mar 15 23:58:05 2012 +0200

    Build 64 bit Windows binaries

 mingw-pangomm.spec |   49 ++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 40 insertions(+), 9 deletions(-)
---
diff --git a/mingw-pangomm.spec b/mingw-pangomm.spec
index 500db1f..0f326fe 100644
--- a/mingw-pangomm.spec
+++ b/mingw-pangomm.spec
@@ -1,6 +1,7 @@
-%global __strip %{mingw32_strip}
-%global __objdump %{mingw32_objdump}
-%define __debug_install_post %{mingw32_debug_install_post}
+%?mingw_package_header
+
+%global mingw_build_win32 1
+%global mingw_build_win64 1
 
 %global apiver 1.4
 # first two digits of version
@@ -8,7 +9,7 @@
 
 Name:           mingw-pangomm
 Version:        2.28.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        MinGW Windows C++ interface for Pango
 
 License:        LGPLv2+
@@ -18,14 +19,22 @@ Source0:        http://ftp.gnome.org/pub/GNOME/sources/pangomm/%{release_version
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 68
+BuildRequires:  mingw32-filesystem >= 95
+BuildRequires:  mingw64-filesystem >= 95
 BuildRequires:  mingw32-gcc
+BuildRequires:  mingw64-gcc
 BuildRequires:  mingw32-gcc-c++
+BuildRequires:  mingw64-gcc-c++
 BuildRequires:  mingw32-binutils
+BuildRequires:  mingw64-binutils
 BuildRequires:  mingw32-gettext
+BuildRequires:  mingw64-gettext
 BuildRequires:  mingw32-glibmm24
+BuildRequires:  mingw64-glibmm24
 BuildRequires:  mingw32-cairomm
+BuildRequires:  mingw64-cairomm
 BuildRequires:  mingw32-pango
+BuildRequires:  mingw64-pango
 BuildRequires:  doxygen
 BuildRequires:  graphviz
 
@@ -46,7 +55,17 @@ comprehensive set of widget classes that can be freely combined to
 quickly create complex user interfaces.
 
 
-%{?mingw32_debug_package}
+%package -n mingw64-pangomm
+Summary:        MinGW Windows C++ interface for Pango
+
+%description -n mingw64-pangomm
+pangomm provides a C++ interface to the Pango library. Highlights
+include typesafe callbacks, widgets extensible via inheritance and a
+comprehensive set of widget classes that can be freely combined to
+quickly create complex user interfaces.
+
+
+%?mingw_debug_package
 
 
 %prep
@@ -54,15 +73,16 @@ quickly create complex user interfaces.
 
 
 %build
-%{mingw32_configure} --disable-static --disable-documentation
-make %{?_smp_mflags}
+%mingw_configure --disable-static --disable-documentation
+%mingw_make %{?_smp_mflags}
 
 
 %install
-make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
+%mingw_make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
 
 # Remove .la files
 rm $RPM_BUILD_ROOT%{mingw32_libdir}/*.la
+rm $RPM_BUILD_ROOT%{mingw64_libdir}/*.la
 
 
 %files -n mingw32-pangomm
@@ -73,8 +93,19 @@ rm $RPM_BUILD_ROOT%{mingw32_libdir}/*.la
 %{mingw32_libdir}/pangomm-%{apiver}/
 %{mingw32_includedir}/pangomm-%{apiver}
 
+%files -n mingw64-pangomm
+%doc COPYING COPYING.tools
+%{mingw64_bindir}/libpangomm-%{apiver}-1.dll
+%{mingw64_libdir}/libpangomm-%{apiver}.dll.a
+%{mingw64_libdir}/pkgconfig/pangomm-%{apiver}.pc
+%{mingw64_libdir}/pangomm-%{apiver}/
+%{mingw64_includedir}/pangomm-%{apiver}
+
 
 %changelog
+* Thu Mar 15 2012 Kalev Lember <kalevlember at gmail.com> - 2.28.3-6
+- Build 64 bit Windows binaries
+
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 2.28.3-5
 - Renamed the source package to mingw-pangomm (#801010)
 - Use mingw macros without leading underscore


More information about the scm-commits mailing list