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