]>
Commit | Line | Data |
---|---|---|
25df2775 JB |
1 | Summary: C++ wrappers for libglade (cross MinGW32 version) |
2 | Summary(pl.UTF-8): Interfejsy C++ dla libglade (wersja skrośna MinGW32) | |
bd86d114 JB |
3 | %define realname libglademm |
4 | Name: crossmingw32-%{realname} | |
79028248 | 5 | Version: 2.6.7 |
621198ec | 6 | Release: 2 |
37ecf745 | 7 | License: LGPL v2+ |
969c42c0 | 8 | Group: Development/Libraries |
37ecf745 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/%{realname}-%{version}.tar.bz2 |
79028248 | 10 | # Source0-md5: f9ca5b67f6c551ea98790ab5f21c19d0 |
621198ec JB |
11 | Patch0: %{realname}-no-get_defs-in-gcc5.patch |
12 | URL: https://www.gtkmm.org/ | |
c22060fd | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
28346425 | 15 | BuildRequires: crossmingw32-gcc-c++ |
621198ec | 16 | BuildRequires: crossmingw32-glibmm >= 2.4 |
37ecf745 JB |
17 | BuildRequires: crossmingw32-gtkmm >= 2.12.1 |
18 | BuildRequires: crossmingw32-libglade2 >= 2.6.2 | |
621198ec JB |
19 | BuildRequires: libtool >= 2:1.5 |
20 | BuildRequires: m4 | |
c22060fd | 21 | BuildRequires: perl-base |
0249013f | 22 | BuildRequires: pkgconfig >= 1:0.15 |
37ecf745 JB |
23 | Requires: crossmingw32-gtkmm >= 2.12.1 |
24 | Requires: crossmingw32-libglade2 >= 2.6.2 | |
c22060fd | 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 | |
c22060fd | 31 | |
32 | %define _sysprefix /usr | |
33 | %define _prefix %{_sysprefix}/%{target} | |
66c1b741 | 34 | %define _libdir %{_prefix}/lib |
c22060fd | 35 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
969c42c0 | 36 | %define _dlldir /usr/share/wine/windows/system |
c22060fd | 37 | %define __cc %{target}-gcc |
38 | %define __cxx %{target}-g++ | |
39 | ||
621198ec | 40 | %define _ssp_cflags %{nil} |
79028248 JB |
41 | %ifnarch %{ix86} |
42 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
43 | %define optflags -O2 | |
44 | %endif | |
621198ec | 45 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
79028248 | 46 | %define filterout_ld -Wl,-z,.* |
621198ec | 47 | %define filterout_c -f[-a-z0-9=]* |
79028248 | 48 | |
c22060fd | 49 | %description |
969c42c0 | 50 | C++ wrappers for libglade (cross mingw32 version). |
c22060fd | 51 | |
52 | %description -l pl.UTF-8 | |
969c42c0 JB |
53 | Interfejsy C++ dla libglade (wersja skrośna mingw32). |
54 | ||
55 | %package static | |
25df2775 JB |
56 | Summary: Static libglademm library (cross MinGW32 version) |
57 | Summary(pl.UTF-8): Statyczna biblioteka libglademm (wersja skrośna MinGW32) | |
969c42c0 JB |
58 | Group: Development/Libraries |
59 | Requires: %{name} = %{version}-%{release} | |
60 | ||
61 | %description static | |
25df2775 | 62 | Static libglademm library (cross MinGW32 version). |
969c42c0 JB |
63 | |
64 | %description static -l pl.UTF-8 | |
25df2775 | 65 | Statyczna biblioteka libglademm (wersja skrośna MinGW32). |
969c42c0 JB |
66 | |
67 | %package dll | |
68 | Summary: DLL libglademm library for Windows | |
69 | Summary(pl.UTF-8): Biblioteka DLL libglademm dla Windows | |
70 | Group: Applications/Emulators | |
37ecf745 JB |
71 | Requires: crossmingw32-gtkmm-dll >= 2.12.1 |
72 | Requires: crossmingw32-libglade2-dll >= 2.6.2 | |
969c42c0 JB |
73 | Requires: wine |
74 | ||
75 | %description dll | |
76 | DLL libglademm library for Windows. | |
77 | ||
78 | %description dll -l pl.UTF-8 | |
79 | Biblioteka DLL libglademm dla Windows. | |
c22060fd | 80 | |
81 | %prep | |
bd86d114 | 82 | %setup -q -n %{realname}-%{version} |
621198ec | 83 | %patch0 -p1 |
c22060fd | 84 | |
85 | %build | |
0249013f | 86 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
c22060fd | 87 | %{__libtoolize} |
88 | %{__aclocal} -I scripts | |
89 | %{__autoconf} | |
90 | %{__automake} | |
621198ec JB |
91 | # std-threads require at least WinXP API |
92 | CPPFLAGS="%{rpmcppflags} -DWINVER=0x0501" | |
c22060fd | 93 | %configure \ |
94 | --target=%{target} \ | |
95 | --host=%{target} \ | |
96 | --enable-static | |
97 | ||
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
969c42c0 | 106 | install -d $RPM_BUILD_ROOT%{_dlldir} |
621198ec JB |
107 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
108 | ||
109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libglademm-*.la | |
969c42c0 JB |
110 | |
111 | %if 0%{!?debug:1} | |
112 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
113 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
114 | %endif | |
115 | ||
621198ec JB |
116 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6} | |
969c42c0 | 118 | |
c22060fd | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
621198ec | 124 | %doc AUTHORS ChangeLog NEWS README |
969c42c0 | 125 | %{_libdir}/libglademm-2.4.dll.a |
bd86d114 JB |
126 | %{_includedir}/libglademm-2.4 |
127 | %{_libdir}/libglademm-2.4 | |
128 | %{_pkgconfigdir}/libglademm-2.4.pc | |
969c42c0 JB |
129 | |
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libglademm-2.4.a | |
133 | ||
134 | %files dll | |
135 | %defattr(644,root,root,755) | |
621198ec | 136 | %{_dlldir}/libglademm-2.4-1.dll |