]>
Commit | Line | Data |
---|---|---|
cbc44f5b | 1 | # |
2 | %define _realname glibmm | |
3 | Summary: A C++ interface for glib library - cross Mingw32 version | |
f45ed5c9 | 4 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32 |
cbc44f5b | 5 | Name: crossmingw32-%{_realname} |
6 | Version: 2.12.5 | |
7 | Release: 1 | |
8 | License: LGPL | |
9 | Group: Libraries | |
10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.12/%{_realname}-%{version}.tar.bz2 | |
11 | # Source0-md5: 309fab274ada3d62aa4506fb6f5685e2 | |
12 | URL: http://gtkmm.sourceforge.net/ | |
13 | BuildRequires: autoconf >= 2.50 | |
14 | BuildRequires: automake | |
15 | BuildRequires: crossmingw32-glib2 >= 2.12.9 | |
16 | BuildRequires: crossmingw32-libsigc++ >= 2.0.17 | |
17 | BuildRequires: libstdc++-devel | |
18 | BuildRequires: libtool >= 2:1.4d | |
19 | BuildRequires: perl-XML-Parser | |
20 | BuildRequires: pkgconfig | |
21 | Requires: crossmingw32-glib2 >= 2.12.9 | |
22 | Requires: crossmingw32-libsigc++ >= 2.0.17 | |
23 | Obsoletes: gtkmm-glib | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define no_install_post_strip 1 | |
27 | ||
28 | %define target i386-mingw32 | |
29 | %define target_platform i386-pc-mingw32 | |
30 | %define arch %{_prefix}/%{target} | |
31 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
32 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
33 | ||
34 | %define _sysprefix /usr | |
35 | %define _prefix %{_sysprefix}/%{target} | |
36 | %define __cc %{target}-gcc | |
37 | %define __cxx %{target}-g++ | |
38 | ||
39 | %description | |
4daa34de | 40 | A C++ interface for glib library - cross Mingw32 version. |
cbc44f5b | 41 | |
f45ed5c9 | 42 | %description -l pl.UTF-8 |
4daa34de | 43 | Interfejs C++ dla biblioteki glib - wersja skrośna Mingw32. |
cbc44f5b | 44 | |
45 | %prep | |
46 | %setup -q -n %{_realname}-%{version} | |
47 | ||
48 | %build | |
49 | export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig | |
50 | export CXXFLAGS="-I%{_includedir}/glib-2.0 -I/%{_libdir}/glib-2.0/include %{rpmcxxflags}" | |
51 | ||
52 | %{__libtoolize} | |
53 | %{__aclocal} -I scripts | |
54 | %{__autoconf} | |
55 | %{__automake} | |
56 | %configure \ | |
57 | --host=%{target} \ | |
58 | --enable-fulldocs \ | |
59 | %{?with_static_libs:--enable-static} | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc AUTHORS ChangeLog CHANGES NEWS README | |
75 | %attr(755,root,root) %{_libdir}/lib*.a | |
76 | %{_libdir}/lib*.la | |
77 | %dir %{_libdir}/%{_realname}-2.4 | |
78 | %{_libdir}/%{_realname}-2.4/include | |
79 | %dir %{_libdir}/%{_realname}-2.4/proc | |
80 | %{_libdir}/%{_realname}-2.4/proc/m4 | |
81 | %{_libdir}/%{_realname}-2.4/proc/pm | |
82 | %attr(755,root,root) %{_libdir}/%{_realname}-2.4/proc/gmmproc | |
83 | %attr(755,root,root) %{_libdir}/%{_realname}-2.4/proc/*.pl | |
84 | %{_includedir}/%{_realname}-2.4 |