Blob Blame History Raw
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
%define __debug_install_post %{_mingw32_debug_install_post}

Name:           mingw32-gtkmm24
Version:        2.24.2
Release:        3%{?dist}
Summary:        MinGW Windows C++ interface for GTK2 (a GUI library for X)

License:        LGPLv2+
Group:          Development/Libraries
URL:            http://gtkmm.sourceforge.net/
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.24/gtkmm-%{version}.tar.xz

BuildArch:      noarch

BuildRequires:  mingw32-filesystem >= 68
BuildRequires:  mingw32-gcc
BuildRequires:  mingw32-gcc-c++
BuildRequires:  mingw32-binutils
BuildRequires:  mingw32-gettext
BuildRequires:  mingw32-glibmm24
BuildRequires:  mingw32-atk
BuildRequires:  mingw32-pango
BuildRequires:  mingw32-gtk2 >= 2.19.6
BuildRequires:  mingw32-cairomm
BuildRequires:  mingw32-pangomm
BuildRequires:  mingw32-atkmm

Requires:       pkgconfig


%description
gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
GTK+ 2.  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.



%{?_mingw32_debug_package}


%prep
%setup -q -n gtkmm-%{version}

%build
%{_mingw32_configure} --disable-static --enable-shared --disable-demos --disable-documentation
make %{?_smp_mflags}


%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/%{_mingw32_datadir}/gtkmm-2.4/demo/

# hack: some headers are not available on win32
sed -i -e "s,#include <gtkmm/pagesetupunixdialog.h>,," $RPM_BUILD_ROOT/%{_mingw32_includedir}/gtkmm-2.4/gtkmm.h
sed -i -e "s,#include <gtkmm/printer.h>,," $RPM_BUILD_ROOT/%{_mingw32_includedir}/gtkmm-2.4/gtkmm.h
sed -i -e "s,#include <gtkmm/printjob.h>,," $RPM_BUILD_ROOT/%{_mingw32_includedir}/gtkmm-2.4/gtkmm.h
sed -i -e "s,#include <gtkmm/printunixdialog.h>,," $RPM_BUILD_ROOT/%{_mingw32_includedir}/gtkmm-2.4/gtkmm.h

# Remove .la files
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/*.la


%files
%doc COPYING
%{_mingw32_bindir}/libgdkmm-2.4-1.dll
%{_mingw32_bindir}/libgtkmm-2.4-1.dll
%{_mingw32_libdir}/libgdkmm-2.4.dll.a
%{_mingw32_libdir}/libgtkmm-2.4.dll.a
%{_mingw32_includedir}/gdkmm-2.4
%{_mingw32_includedir}/gtkmm-2.4
%{_mingw32_libdir}/gdkmm-2.4
%{_mingw32_libdir}/gtkmm-2.4
%{_mingw32_libdir}/pkgconfig/gdkmm-2.4.pc
%{_mingw32_libdir}/pkgconfig/gtkmm-2.4.pc


%changelog
* Thu Feb  2 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.24.2-3
- Dropped the .la files
- Dropped the BuildRoot tag

* Tue Jan 31 2012 Kalev Lember <kalevlember@gmail.com> - 2.24.2-2
- Rebuilt for libpng 1.5

* Mon Jan 16 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.24.2-1
- update to 2.24.2

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Thu Jul 07 2011 Kalev Lember <kalevlember@gmail.com> - 2.24.0-3
- Rebuilt against win-iconv

* Thu Apr 28 2011 Kalev Lember <kalev@smartlink.ee> - 2.24.0-2
- Rebuilt for proxy-libintl removal

* Sun Feb 13 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.24.0-1
- update to 2.24.0

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Dec  6 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.22.0-1
- update to 2.22.0

* Sun Feb 28 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.19.6-1
- update to 2.19.6

* Sun Jan 31 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.19.2-1
- update to 2.19.2

* Tue Oct  6 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.18.2-1
- update to 2.18.2
- remove includes of nonexistent header files

* Sun Sep 27 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.18.1-1
- update to 2.18.1 to match native

* Sat Sep 19 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.17.11-1
- update to 2.17.11 to match native

* Mon Aug 31 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.17.2-1
- update to 2.17.2 to match native

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Jun 22 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.16.0-2
- add debuginfo packages

* Sat Apr 18 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.16.0-1
- update to 2.16.0 to match native
- remove COPYING.tools, as the binary does not contain any program from
  the tools directory
- do not build docs

* Thu Apr 16 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.15.0-2
- replace %%define with %%global

* Wed Mar 25 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.15.0-1
- update to 2.15.0

* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-5
- Rebuild for mingw32-gcc 4.4

* Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-4
- Include license file.

* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-3
- Use _smp_mflags.

* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-2
- Requires pkgconfig.

* Fri Oct 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-1
- Initial RPM release.