[mingw-libsigc++20] Build 64 bit Windows binaries

Kalev Lember kalev at fedoraproject.org
Thu Mar 15 21:19:57 UTC 2012


commit 83b47d5e58e1b133cec58657ce65f684453251be
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Mar 15 23:15:33 2012 +0200

    Build 64 bit Windows binaries

 mingw-libsigc++20.spec |   53 +++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 44 insertions(+), 9 deletions(-)
---
diff --git a/mingw-libsigc++20.spec b/mingw-libsigc++20.spec
index 5a51766..c6ebeeb 100644
--- a/mingw-libsigc++20.spec
+++ b/mingw-libsigc++20.spec
@@ -1,10 +1,11 @@
-%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
 
 Name:           mingw-libsigc++20
 Version:        2.2.10
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        MinGW Windows port of the typesafe signal framework for C++
 
 License:        LGPLv2+
@@ -14,10 +15,14 @@ Source0:        http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-%
 
 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:  m4
 
@@ -52,7 +57,24 @@ Package GTK-- (gtkmm), which is a C++ binding to the GTK+ library,
 starting with version 1.1.2, uses libsigc++.
 
 
-%{?mingw32_debug_package}
+%package -n mingw64-libsigc++20
+Summary:        MinGW Windows port of the typesafe signal framework for C++
+
+%description -n mingw64-libsigc++20
+This library implements a full callback system for use in widget
+libraries, abstract interfaces, and general programming. Originally
+part of the Gtk-- widget set, libsigc++ is now a separate library to
+provide for more general use. It is the most complete library of its
+kind with the ability to connect an abstract callback to a class
+method, function, or function object. It contains adaptor classes for
+connection of dissimilar callbacks and has an ease of use unmatched by
+other C++ callback libraries.
+
+Package GTK-- (gtkmm), which is a C++ binding to the GTK+ library,
+starting with version 1.1.2, uses libsigc++.
+
+
+%?mingw_debug_package
 
 
 %prep
@@ -60,14 +82,16 @@ starting with version 1.1.2, uses libsigc++.
 
 
 %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
+%mingw_make DESTDIR=$RPM_BUILD_ROOT install
 chmod a-x $RPM_BUILD_ROOT/%{mingw32_libdir}/libsigc-2.0.dll.a
+chmod a-x $RPM_BUILD_ROOT/%{mingw64_libdir}/libsigc-2.0.dll.a
 rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libsigc-2.0.la
+rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libsigc-2.0.la
 
 
 %files -n mingw32-libsigc++20
@@ -78,8 +102,19 @@ rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libsigc-2.0.la
 %{mingw32_includedir}/sigc++-2.0
 %{mingw32_libdir}/sigc++-2.0
 
+%files -n mingw64-libsigc++20
+%doc COPYING
+%{mingw64_bindir}/libsigc-2.0-0.dll
+%{mingw64_libdir}/libsigc-2.0.dll.a
+%{mingw64_libdir}/pkgconfig/sigc++-2.0.pc
+%{mingw64_includedir}/sigc++-2.0
+%{mingw64_libdir}/sigc++-2.0
+
 
 %changelog
+* Thu Mar 15 2012 Kalev Lember <kalevlember at gmail.com> - 2.2.10-6
+- Build 64 bit Windows binaries
+
 * Wed Mar 07 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.2.10-5
 - Renamed the source package to mingw-libsigc++20 (RHBZ #800921)
 - Use mingw macros without leading underscore


More information about the scm-commits mailing list