]>
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 |
de0bc545 | 6 | Release: 2 |
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++ | |
de0bc545 | 40 | %define __pkgconfig_provides %{nil} |
cbc44f5b | 41 | |
d573ab95 JB |
42 | %ifnarch %{ix86} |
43 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
44 | %define optflags -O2 | |
45 | %endif | |
e882ae34 | 46 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
d573ab95 | 47 | %define filterout_ld -Wl,-z,.* |
e882ae34 JB |
48 | %define filterout_c -f[-a-z0-9=]* |
49 | %define filterout_cxx -f[-a-z0-9=]* | |
d573ab95 | 50 | |
cbc44f5b | 51 | %description |
bc13ea8e | 52 | A C++ interface for glib library - cross MinGW32 version. |
cbc44f5b | 53 | |
f45ed5c9 | 54 | %description -l pl.UTF-8 |
bc13ea8e | 55 | Interfejs C++ dla biblioteki glib - wersja skrośna MinGW32. |
cbc44f5b | 56 | |
759ce599 | 57 | %package static |
bc13ea8e JB |
58 | Summary: Static glibmm library (cross MinGW32 version) |
59 | Summary(pl.UTF-8): Statyczna biblioteka glibmm (wersja skrośna MinGW32) | |
759ce599 JB |
60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description static | |
bc13ea8e | 64 | Static glibmm library (cross MinGW32 version). |
759ce599 JB |
65 | |
66 | %description static -l pl.UTF-8 | |
bc13ea8e | 67 | Statyczna biblioteka glibmm (wersja skrośna MinGW32). |
759ce599 JB |
68 | |
69 | %package dll | |
70 | Summary: DLL glibmm library for Windows | |
71 | Summary(pl.UTF-8): Biblioteka DLL glibmm dla Windows | |
72 | Group: Applications/Emulators | |
0c5332a2 | 73 | Requires: crossmingw32-glib2-dll >= 2.36.1 |
476bcf88 | 74 | Requires: crossmingw32-libsigc++-dll >= 2.2.10 |
759ce599 JB |
75 | Requires: wine |
76 | ||
77 | %description dll | |
78 | DLL glibmm library for Windows. | |
79 | ||
80 | %description dll -l pl.UTF-8 | |
81 | Biblioteka DLL glibmm dla Windows. | |
82 | ||
cbc44f5b | 83 | %prep |
03cf31c3 | 84 | %setup -q -n %{realname}-%{version} |
35bf2c84 | 85 | %patch0 -p1 |
cbc44f5b | 86 | |
87 | %build | |
667b9562 | 88 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
cbc44f5b | 89 | %{__libtoolize} |
6b2b65e2 | 90 | %{__aclocal} -I build |
cbc44f5b | 91 | %{__autoconf} |
92 | %{__automake} | |
93 | %configure \ | |
b7ddf918 | 94 | --target=%{target} \ |
cbc44f5b | 95 | --host=%{target} \ |
b7ddf918 | 96 | --disable-fulldocs \ |
97 | --enable-static | |
cbc44f5b | 98 | |
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
759ce599 JB |
107 | install -d $RPM_BUILD_ROOT%{_dlldir} |
108 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
109 | ||
110 | %if 0%{!?debug:1} | |
111 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
112 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
113 | %endif | |
114 | ||
bc13ea8e | 115 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{doc,devhelp} |
759ce599 | 116 | # use these from native glibmm if needed |
03a6960c | 117 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc |
759ce599 | 118 | |
cbc44f5b | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
e5e7a5f4 JB |
124 | %doc AUTHORS ChangeLog NEWS README |
125 | %{_libdir}/libgiomm-2.4.dll.a | |
759ce599 JB |
126 | %{_libdir}/libglibmm-2.4.dll.a |
127 | %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a | |
e5e7a5f4 | 128 | %{_libdir}/libgiomm-2.4.la |
759ce599 JB |
129 | %{_libdir}/libglibmm-2.4.la |
130 | %{_libdir}/libglibmm_generate_extra_defs-2.4.la | |
e5e7a5f4 JB |
131 | %dir %{_libdir}/giomm-2.4 |
132 | %{_libdir}/giomm-2.4/include | |
03cf31c3 JB |
133 | %dir %{_libdir}/glibmm-2.4 |
134 | %{_libdir}/glibmm-2.4/include | |
e5e7a5f4 | 135 | %{_includedir}/giomm-2.4 |
03cf31c3 | 136 | %{_includedir}/glibmm-2.4 |
e5e7a5f4 | 137 | %{_pkgconfigdir}/giomm-2.4.pc |
759ce599 JB |
138 | %{_pkgconfigdir}/glibmm-2.4.pc |
139 | ||
140 | %files static | |
141 | %defattr(644,root,root,755) | |
e5e7a5f4 | 142 | %{_libdir}/libgiomm-2.4.a |
759ce599 JB |
143 | %{_libdir}/libglibmm-2.4.a |
144 | %{_libdir}/libglibmm_generate_extra_defs-2.4.a | |
145 | ||
146 | %files dll | |
147 | %defattr(644,root,root,755) | |
e5e7a5f4 | 148 | %{_dlldir}/libgiomm-2.4-*.dll |
759ce599 JB |
149 | %{_dlldir}/libglibmm-2.4-*.dll |
150 | %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll |