]>
Commit | Line | Data |
---|---|---|
969c42c0 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} | |
37ecf745 | 5 | Version: 2.6.5 |
c22060fd | 6 | Release: 1 |
37ecf745 | 7 | License: LGPL v2+ |
969c42c0 | 8 | Group: Development/Libraries |
37ecf745 JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libglademm/2.6/%{realname}-%{version}.tar.bz2 |
10 | # Source0-md5: 4d868c9c1bef2480c47d07ef63619e27 | |
c22060fd | 11 | URL: http://www.gnome.org/ |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
28346425 | 14 | BuildRequires: crossmingw32-gcc-c++ |
37ecf745 JB |
15 | BuildRequires: crossmingw32-gtkmm >= 2.12.1 |
16 | BuildRequires: crossmingw32-libglade2 >= 2.6.2 | |
c22060fd | 17 | BuildRequires: libtool >= 2:1.4d |
18 | BuildRequires: perl-base | |
0249013f | 19 | BuildRequires: pkgconfig >= 1:0.15 |
37ecf745 JB |
20 | Requires: crossmingw32-gtkmm >= 2.12.1 |
21 | Requires: crossmingw32-libglade2 >= 2.6.2 | |
c22060fd | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %define no_install_post_strip 1 | |
25 | ||
26 | %define target i386-mingw32 | |
27 | %define target_platform i386-pc-mingw32 | |
c22060fd | 28 | |
29 | %define _sysprefix /usr | |
30 | %define _prefix %{_sysprefix}/%{target} | |
66c1b741 | 31 | %define _libdir %{_prefix}/lib |
c22060fd | 32 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
969c42c0 | 33 | %define _dlldir /usr/share/wine/windows/system |
c22060fd | 34 | %define __cc %{target}-gcc |
35 | %define __cxx %{target}-g++ | |
36 | ||
37 | %description | |
969c42c0 | 38 | C++ wrappers for libglade (cross mingw32 version). |
c22060fd | 39 | |
40 | %description -l pl.UTF-8 | |
969c42c0 JB |
41 | Interfejsy C++ dla libglade (wersja skrośna mingw32). |
42 | ||
43 | %package static | |
44 | Summary: Static libglademm library (cross mingw32 version) | |
45 | Summary(pl.UTF-8): Statyczna biblioteka libglademm (wersja skrośna mingw32) | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static libglademm library (cross mingw32 version). | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka libglademm (wersja skrośna mingw32). | |
54 | ||
55 | %package dll | |
56 | Summary: DLL libglademm library for Windows | |
57 | Summary(pl.UTF-8): Biblioteka DLL libglademm dla Windows | |
58 | Group: Applications/Emulators | |
37ecf745 JB |
59 | Requires: crossmingw32-gtkmm-dll >= 2.12.1 |
60 | Requires: crossmingw32-libglade2-dll >= 2.6.2 | |
969c42c0 JB |
61 | Requires: wine |
62 | ||
63 | %description dll | |
64 | DLL libglademm library for Windows. | |
65 | ||
66 | %description dll -l pl.UTF-8 | |
67 | Biblioteka DLL libglademm dla Windows. | |
c22060fd | 68 | |
69 | %prep | |
bd86d114 | 70 | %setup -q -n %{realname}-%{version} |
c22060fd | 71 | |
72 | %build | |
0249013f | 73 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
c22060fd | 74 | %{__libtoolize} |
75 | %{__aclocal} -I scripts | |
76 | %{__autoconf} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | --target=%{target} \ | |
80 | --host=%{target} \ | |
81 | --enable-static | |
82 | ||
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
969c42c0 JB |
91 | install -d $RPM_BUILD_ROOT%{_dlldir} |
92 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
93 | ||
94 | %if 0%{!?debug:1} | |
95 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
96 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
97 | %endif | |
98 | ||
99 | rm -rf $RPM_BUILD_ROOT%{_libdir}/libglademm-2.4/proc | |
bd86d114 | 100 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{devhelp,doc/gnomemm-2.6} |
969c42c0 | 101 | |
c22060fd | 102 | %clean |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc AUTHORS ChangeLog NEWS | |
969c42c0 JB |
108 | %{_libdir}/libglademm-2.4.la |
109 | %{_libdir}/libglademm-2.4.dll.a | |
bd86d114 JB |
110 | %{_includedir}/libglademm-2.4 |
111 | %{_libdir}/libglademm-2.4 | |
112 | %{_pkgconfigdir}/libglademm-2.4.pc | |
969c42c0 JB |
113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libglademm-2.4.a | |
117 | ||
118 | %files dll | |
119 | %defattr(644,root,root,755) | |
120 | %{_dlldir}/libglademm*-2.4-*.dll |