]>
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} | |
4b05efa9 | 5 | Version: 2.46.3 |
46493872 | 6 | Release: 1 |
fa9e202d | 7 | License: LGPL v2+ |
759ce599 | 8 | Group: Development/Libraries |
b6e3aa78 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.46/%{realname}-%{version}.tar.xz |
4b05efa9 | 10 | # Source0-md5: 6879e56997aed47816fafe9a7a822a87 |
1f8cfdf1 | 11 | URL: http://www.gtkmm.org/ |
bc13ea8e | 12 | BuildRequires: autoconf >= 2.59 |
85f6f607 | 13 | BuildRequires: automake >= 1:1.11 |
b6e3aa78 JB |
14 | BuildRequires: crossmingw32-gcc-c++ >= 1:4.6 |
15 | BuildRequires: crossmingw32-glib2 >= 2.46.0 | |
16 | BuildRequires: crossmingw32-libsigc++ >= 2.6.0 | |
35bf2c84 | 17 | BuildRequires: libtool >= 2:2.0 |
bc13ea8e | 18 | BuildRequires: m4 |
b6e3aa78 | 19 | BuildRequires: mm-common >= 0.9.8 |
fa9e202d | 20 | BuildRequires: pkgconfig >= 1:0.15 |
03a6960c JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
b6e3aa78 JB |
23 | Requires: crossmingw32-gcc-c++ >= 1:4.6 |
24 | Requires: crossmingw32-glib2 >= 2.46.0 | |
25 | Requires: crossmingw32-libsigc++ >= 2.6.0 | |
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} |
be43f551 | 41 | %define __pkgconfig_requires %{nil} |
cbc44f5b | 42 | |
d573ab95 JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
e882ae34 | 47 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
d573ab95 | 48 | %define filterout_ld -Wl,-z,.* |
e882ae34 JB |
49 | %define filterout_c -f[-a-z0-9=]* |
50 | %define filterout_cxx -f[-a-z0-9=]* | |
d573ab95 | 51 | |
cbc44f5b | 52 | %description |
bc13ea8e | 53 | A C++ interface for glib library - cross MinGW32 version. |
cbc44f5b | 54 | |
f45ed5c9 | 55 | %description -l pl.UTF-8 |
bc13ea8e | 56 | Interfejs C++ dla biblioteki glib - wersja skrośna MinGW32. |
cbc44f5b | 57 | |
759ce599 | 58 | %package static |
bc13ea8e JB |
59 | Summary: Static glibmm library (cross MinGW32 version) |
60 | Summary(pl.UTF-8): Statyczna biblioteka glibmm (wersja skrośna MinGW32) | |
759ce599 JB |
61 | Group: Development/Libraries |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description static | |
bc13ea8e | 65 | Static glibmm library (cross MinGW32 version). |
759ce599 JB |
66 | |
67 | %description static -l pl.UTF-8 | |
bc13ea8e | 68 | Statyczna biblioteka glibmm (wersja skrośna MinGW32). |
759ce599 JB |
69 | |
70 | %package dll | |
71 | Summary: DLL glibmm library for Windows | |
72 | Summary(pl.UTF-8): Biblioteka DLL glibmm dla Windows | |
73 | Group: Applications/Emulators | |
b6e3aa78 JB |
74 | Requires: crossmingw32-glib2-dll >= 2.46.0 |
75 | Requires: crossmingw32-libsigc++-dll >= 2.6.0 | |
759ce599 JB |
76 | Requires: wine |
77 | ||
78 | %description dll | |
79 | DLL glibmm library for Windows. | |
80 | ||
81 | %description dll -l pl.UTF-8 | |
82 | Biblioteka DLL glibmm dla Windows. | |
83 | ||
cbc44f5b | 84 | %prep |
03cf31c3 | 85 | %setup -q -n %{realname}-%{version} |
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} | |
b6e3aa78 JB |
93 | # mingw32 requires gnu++11 (instead of c++11) for off[64]_t |
94 | CXXFLAGS="%{rpmcxxflags} -std=gnu++11" | |
cbc44f5b | 95 | %configure \ |
b7ddf918 | 96 | --target=%{target} \ |
cbc44f5b | 97 | --host=%{target} \ |
b7ddf918 | 98 | --disable-fulldocs \ |
99 | --enable-static | |
cbc44f5b | 100 | |
101 | %{__make} | |
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
759ce599 JB |
109 | install -d $RPM_BUILD_ROOT%{_dlldir} |
110 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
111 | ||
112 | %if 0%{!?debug:1} | |
113 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
114 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
115 | %endif | |
116 | ||
bc13ea8e | 117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{doc,devhelp} |
759ce599 | 118 | # use these from native glibmm if needed |
03a6960c | 119 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc |
759ce599 | 120 | |
cbc44f5b | 121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
e5e7a5f4 JB |
126 | %doc AUTHORS ChangeLog NEWS README |
127 | %{_libdir}/libgiomm-2.4.dll.a | |
759ce599 JB |
128 | %{_libdir}/libglibmm-2.4.dll.a |
129 | %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a | |
e5e7a5f4 | 130 | %{_libdir}/libgiomm-2.4.la |
759ce599 JB |
131 | %{_libdir}/libglibmm-2.4.la |
132 | %{_libdir}/libglibmm_generate_extra_defs-2.4.la | |
e5e7a5f4 JB |
133 | %dir %{_libdir}/giomm-2.4 |
134 | %{_libdir}/giomm-2.4/include | |
03cf31c3 JB |
135 | %dir %{_libdir}/glibmm-2.4 |
136 | %{_libdir}/glibmm-2.4/include | |
e5e7a5f4 | 137 | %{_includedir}/giomm-2.4 |
03cf31c3 | 138 | %{_includedir}/glibmm-2.4 |
e5e7a5f4 | 139 | %{_pkgconfigdir}/giomm-2.4.pc |
759ce599 JB |
140 | %{_pkgconfigdir}/glibmm-2.4.pc |
141 | ||
142 | %files static | |
143 | %defattr(644,root,root,755) | |
e5e7a5f4 | 144 | %{_libdir}/libgiomm-2.4.a |
759ce599 JB |
145 | %{_libdir}/libglibmm-2.4.a |
146 | %{_libdir}/libglibmm_generate_extra_defs-2.4.a | |
147 | ||
148 | %files dll | |
149 | %defattr(644,root,root,755) | |
e5e7a5f4 | 150 | %{_dlldir}/libgiomm-2.4-*.dll |
759ce599 JB |
151 | %{_dlldir}/libglibmm-2.4-*.dll |
152 | %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll |