]>
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} | |
a16093a5 | 5 | Version: 2.40.0 |
46493872 | 6 | Release: 1 |
fa9e202d | 7 | License: LGPL v2+ |
759ce599 | 8 | Group: Development/Libraries |
a16093a5 JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.40/%{realname}-%{version}.tar.xz |
10 | # Source0-md5: f62754f4f5c9030f8ff43c7ed20556c2 | |
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++ |
a16093a5 | 15 | BuildRequires: crossmingw32-glib2 >= 2.40.0 |
476bcf88 | 16 | BuildRequires: crossmingw32-libsigc++ >= 2.2.10 |
35bf2c84 | 17 | BuildRequires: libtool >= 2:2.0 |
bc13ea8e | 18 | BuildRequires: m4 |
35bf2c84 | 19 | BuildRequires: mm-common >= 0.9.6 |
fa9e202d | 20 | BuildRequires: pkgconfig >= 1:0.15 |
03a6960c JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
a16093a5 | 23 | Requires: crossmingw32-glib2 >= 2.40.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++ | |
de0bc545 | 39 | %define __pkgconfig_provides %{nil} |
be43f551 | 40 | %define __pkgconfig_requires %{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 | |
a16093a5 | 73 | Requires: crossmingw32-glib2-dll >= 2.40.0 |
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} |
cbc44f5b | 85 | |
86 | %build | |
667b9562 | 87 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
cbc44f5b | 88 | %{__libtoolize} |
6b2b65e2 | 89 | %{__aclocal} -I build |
cbc44f5b | 90 | %{__autoconf} |
91 | %{__automake} | |
92 | %configure \ | |
b7ddf918 | 93 | --target=%{target} \ |
cbc44f5b | 94 | --host=%{target} \ |
b7ddf918 | 95 | --disable-fulldocs \ |
96 | --enable-static | |
cbc44f5b | 97 | |
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
759ce599 JB |
106 | install -d $RPM_BUILD_ROOT%{_dlldir} |
107 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
108 | ||
109 | %if 0%{!?debug:1} | |
110 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
111 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
112 | %endif | |
113 | ||
bc13ea8e | 114 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{doc,devhelp} |
759ce599 | 115 | # use these from native glibmm if needed |
03a6960c | 116 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/glibmm-2.4/proc |
759ce599 | 117 | |
cbc44f5b | 118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
e5e7a5f4 JB |
123 | %doc AUTHORS ChangeLog NEWS README |
124 | %{_libdir}/libgiomm-2.4.dll.a | |
759ce599 JB |
125 | %{_libdir}/libglibmm-2.4.dll.a |
126 | %{_libdir}/libglibmm_generate_extra_defs-2.4.dll.a | |
e5e7a5f4 | 127 | %{_libdir}/libgiomm-2.4.la |
759ce599 JB |
128 | %{_libdir}/libglibmm-2.4.la |
129 | %{_libdir}/libglibmm_generate_extra_defs-2.4.la | |
e5e7a5f4 JB |
130 | %dir %{_libdir}/giomm-2.4 |
131 | %{_libdir}/giomm-2.4/include | |
03cf31c3 JB |
132 | %dir %{_libdir}/glibmm-2.4 |
133 | %{_libdir}/glibmm-2.4/include | |
e5e7a5f4 | 134 | %{_includedir}/giomm-2.4 |
03cf31c3 | 135 | %{_includedir}/glibmm-2.4 |
e5e7a5f4 | 136 | %{_pkgconfigdir}/giomm-2.4.pc |
759ce599 JB |
137 | %{_pkgconfigdir}/glibmm-2.4.pc |
138 | ||
139 | %files static | |
140 | %defattr(644,root,root,755) | |
e5e7a5f4 | 141 | %{_libdir}/libgiomm-2.4.a |
759ce599 JB |
142 | %{_libdir}/libglibmm-2.4.a |
143 | %{_libdir}/libglibmm_generate_extra_defs-2.4.a | |
144 | ||
145 | %files dll | |
146 | %defattr(644,root,root,755) | |
e5e7a5f4 | 147 | %{_dlldir}/libgiomm-2.4-*.dll |
759ce599 JB |
148 | %{_dlldir}/libglibmm-2.4-*.dll |
149 | %{_dlldir}/libglibmm_generate_extra_defs-2.4-*.dll |