]>
Commit | Line | Data |
---|---|---|
cbc44f5b | 1 | Summary: A C++ interface for glib library - cross Mingw32 version |
3b7538a7 | 2 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32 |
03cf31c3 JB |
3 | %define realname glibmm |
4 | Name: crossmingw32-%{realname} | |
e5e7a5f4 | 5 | Version: 2.16.0 |
cbc44f5b | 6 | Release: 1 |
fa9e202d | 7 | License: LGPL v2+ |
759ce599 | 8 | Group: Development/Libraries |
e5e7a5f4 JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.16/%{realname}-%{version}.tar.bz2 |
10 | # Source0-md5: 0a2442b754b97c67d0ccb4a9a2bebcb2 | |
11 | Patch0: glibmm-unix.patch | |
cbc44f5b | 12 | URL: http://gtkmm.sourceforge.net/ |
e5e7a5f4 JB |
13 | BuildRequires: autoconf >= 2.58 |
14 | BuildRequires: automake >= 1:1.7 | |
759ce599 | 15 | BuildRequires: crossmingw32-gcc-c++ |
e5e7a5f4 JB |
16 | BuildRequires: crossmingw32-glib2 >= 2.16.0 |
17 | BuildRequires: crossmingw32-libsigc++ >= 2.2.0 | |
759ce599 | 18 | BuildRequires: libtool >= 2:1.5 |
cbc44f5b | 19 | BuildRequires: perl-XML-Parser |
fa9e202d | 20 | BuildRequires: pkgconfig >= 1:0.15 |
e5e7a5f4 JB |
21 | Requires: crossmingw32-glib2 >= 2.16.0 |
22 | Requires: crossmingw32-libsigc++ >= 2.2.0 | |
cbc44f5b | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %define no_install_post_strip 1 | |
26 | ||
27 | %define target i386-mingw32 | |
28 | %define target_platform i386-pc-mingw32 | |
cbc44f5b | 29 | |
30 | %define _sysprefix /usr | |
31 | %define _prefix %{_sysprefix}/%{target} | |
32a5567a | 32 | %define _libdir %{_prefix}/lib |
759ce599 JB |
33 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
34 | %define _dlldir /usr/share/wine/windows/system | |
cbc44f5b | 35 | %define __cc %{target}-gcc |
36 | %define __cxx %{target}-g++ | |
37 | ||
38 | %description | |
4daa34de | 39 | A C++ interface for glib library - cross Mingw32 version. |
cbc44f5b | 40 | |
f45ed5c9 | 41 | %description -l pl.UTF-8 |
4daa34de | 42 | Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32. |
cbc44f5b | 43 | |
759ce599 JB |
44 | %package static |
45 | Summary: Static glibmm library (cross mingw32 version) | |
46 | Summary(pl.UTF-8): Statyczna biblioteka glibmm (wersja skrośna mingw32) | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static glibmm library (cross mingw32 version). | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka glibmm (wersja skrośna mingw32). | |
55 | ||
56 | %package dll | |
57 | Summary: DLL glibmm library for Windows | |
58 | Summary(pl.UTF-8): Biblioteka DLL glibmm dla Windows | |
59 | Group: Applications/Emulators | |
e5e7a5f4 JB |
60 | Requires: crossmingw32-glib2-dll >= 2.16.0 |
61 | Requires: crossmingw32-libsigc++-dll >= 2.2.0 | |
759ce599 JB |
62 | Requires: wine |
63 | ||
64 | %description dll | |
65 | DLL glibmm library for Windows. | |
66 | ||
67 | %description dll -l pl.UTF-8 | |
68 | Biblioteka DLL glibmm dla Windows. | |
69 | ||
cbc44f5b | 70 | %prep |
03cf31c3 | 71 | %setup -q -n %{realname}-%{version} |
e5e7a5f4 | 72 | %patch0 -p1 |
cbc44f5b | 73 | |
74 | %build | |
667b9562 | 75 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
cbc44f5b | 76 | %{__libtoolize} |
77 | %{__aclocal} -I scripts | |
78 | %{__autoconf} | |
79 | %{__automake} | |
80 | %configure \ | |
b7ddf918 | 81 | --target=%{target} \ |
cbc44f5b | 82 | --host=%{target} \ |
b7ddf918 | 83 | --disable-fulldocs \ |
84 | --enable-static | |
cbc44f5b | 85 | |
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
759ce599 JB |
94 | install -d $RPM_BUILD_ROOT%{_dlldir} |
95 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
96 | ||
97 | %if 0%{!?debug:1} | |
98 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
99 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
100 | %endif | |
101 | ||
102 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc | |
103 | # use these from native glibmm if needed | |
104 | rm -rf $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc | |
105 | rm -rf $RPM_BUILD_ROOT%{_datadir}/aclocal | |
106 | ||
cbc44f5b | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
e5e7a5f4 JB |
112 | %doc AUTHORS ChangeLog NEWS README |
113 | %{_libdir}/libgiomm-2.4.dll.a | |
759ce599 JB |
114 | %{_libdir}/libglibmm-2.4.dll.a |
115 | %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a | |
e5e7a5f4 | 116 | %{_libdir}/libgiomm-2.4.la |
759ce599 JB |
117 | %{_libdir}/libglibmm-2.4.la |
118 | %{_libdir}/libglibmm_generate_extra_defs-2.4.la | |
e5e7a5f4 JB |
119 | %dir %{_libdir}/giomm-2.4 |
120 | %{_libdir}/giomm-2.4/include | |
03cf31c3 JB |
121 | %dir %{_libdir}/glibmm-2.4 |
122 | %{_libdir}/glibmm-2.4/include | |
e5e7a5f4 | 123 | %{_includedir}/giomm-2.4 |
03cf31c3 | 124 | %{_includedir}/glibmm-2.4 |
e5e7a5f4 | 125 | %{_pkgconfigdir}/giomm-2.4.pc |
759ce599 JB |
126 | %{_pkgconfigdir}/glibmm-2.4.pc |
127 | ||
128 | %files static | |
129 | %defattr(644,root,root,755) | |
e5e7a5f4 | 130 | %{_libdir}/libgiomm-2.4.a |
759ce599 JB |
131 | %{_libdir}/libglibmm-2.4.a |
132 | %{_libdir}/libglibmm_generate_extra_defs-2.4.a | |
133 | ||
134 | %files dll | |
135 | %defattr(644,root,root,755) | |
e5e7a5f4 | 136 | %{_dlldir}/libgiomm-2.4-*.dll |
759ce599 JB |
137 | %{_dlldir}/libglibmm-2.4-*.dll |
138 | %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll |