3de4ae30e6dc81e5968f162eb886fa68567a5fa7
[fedora-mingw.git] / gtkmm24 / mingw32-gtkmm24.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 Name:           mingw32-gtkmm24
8 Version:        2.14.1
9 Release:        4%{?dist}
10 Summary:        MinGW Windows C++ interface for GTK2 (a GUI library for X)
11
12 License:        LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://gtkmm.sourceforge.net/
15 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.14/gtkmm-%{version}.tar.bz2
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 BuildArch:      noarch
19
20 BuildRequires:  mingw32-filesystem >= 30
21 BuildRequires:  mingw32-gcc
22 BuildRequires:  mingw32-gcc-c++
23 BuildRequires:  mingw32-binutils
24 BuildRequires:  mingw32-glibmm24 >= 2.18.0
25 BuildRequires:  mingw32-atk >= 1.9.0
26 BuildRequires:  mingw32-pango >= 1.5.2
27 BuildRequires:  mingw32-gtk2 >= 2.14.0
28 BuildRequires:  mingw32-cairomm >= 1.2.2
29 BuildRequires:  mingw32-pangomm >= 2.14.0
30
31 Requires:       pkgconfig
32
33
34 %description
35 gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps
36 GTK+ 2.  Highlights include typesafe callbacks, widgets extensible via
37 inheritance and a comprehensive set of widget classes that can be
38 freely combined to quickly create complex user interfaces.
39
40
41
42 %prep
43 %setup -q -n gtkmm-%{version}
44
45
46 %build
47 %{_mingw32_configure} --disable-static --enable-shared --disable-demos
48 make %{?_smp_mflags}
49
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 make DESTDIR=$RPM_BUILD_ROOT install
54
55 # Remove documentation which duplicates that in the base package.
56 rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/devhelp
57 rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}/*
58
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63
64 %files
65 %defattr(-,root,root)
66 %doc COPYING COPYING.tools
67 %{_mingw32_bindir}/libatkmm-1.6-1.dll
68 %{_mingw32_bindir}/libgdkmm-2.4-1.dll
69 %{_mingw32_bindir}/libgtkmm-2.4-1.dll
70 %{_mingw32_libdir}/libatkmm-1.6.dll.a
71 %{_mingw32_libdir}/libatkmm-1.6.la
72 %{_mingw32_libdir}/libgdkmm-2.4.dll.a
73 %{_mingw32_libdir}/libgdkmm-2.4.la
74 %{_mingw32_libdir}/libgtkmm-2.4.dll.a
75 %{_mingw32_libdir}/libgtkmm-2.4.la
76 %{_mingw32_includedir}/atkmm-1.6
77 %{_mingw32_includedir}/gdkmm-2.4
78 %{_mingw32_includedir}/gtkmm-2.4
79 %{_mingw32_libdir}/gdkmm-2.4
80 %{_mingw32_libdir}/gtkmm-2.4
81 %{_mingw32_libdir}/pkgconfig/atkmm-1.6.pc
82 %{_mingw32_libdir}/pkgconfig/gdkmm-2.4.pc
83 %{_mingw32_libdir}/pkgconfig/gtkmm-2.4.pc
84
85
86 %changelog
87 * Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-4
88 - Include license file.
89
90 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-3
91 - Use _smp_mflags.
92
93 * Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-2
94 - Requires pkgconfig.
95
96 * Fri Oct 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.1-1
97 - Initial RPM release.