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