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