]>
Commit | Line | Data |
---|---|---|
8a923a9e JB |
1 | Summary: A C++ interface for atk library - cross MinGW32 version |
2 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk - wersja skrośna MinGW32 | |
3 | Name: crossmingw32-atkmm | |
c1302907 | 4 | Version: 2.28.0 |
dc999f09 | 5 | Release: 2 |
8a923a9e JB |
6 | License: LGPL v2.1+ |
7 | Group: Development/Libraries | |
c1302907 JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atkmm/2.28/atkmm-%{version}.tar.xz |
9 | # Source0-md5: 6194ac577f15567adfa3c923944c6651 | |
8a923a9e JB |
10 | URL: http://www.gtkmm.org/ |
11 | BuildRequires: autoconf >= 2.59 | |
12 | BuildRequires: automake >= 1:1.9 | |
8bbf15f3 | 13 | BuildRequires: crossmingw32-atk >= 2.18.0 |
c1302907 JB |
14 | BuildRequires: crossmingw32-gcc-c++ >= 1:4.7 |
15 | BuildRequires: crossmingw32-glibmm >= 2.46.2 | |
7cb84594 | 16 | BuildRequires: libtool >= 2:2.0 |
c1302907 | 17 | BuildRequires: mm-common >= 0.9.10 |
8a923a9e | 18 | BuildRequires: pkgconfig >= 1:0.15 |
7cb84594 JB |
19 | BuildRequires: tar >= 1:1.22 |
20 | BuildRequires: xz | |
8bbf15f3 | 21 | Requires: crossmingw32-atk >= 2.18.0 |
c1302907 JB |
22 | Requires: crossmingw32-gcc-c++ >= 1:4.7 |
23 | Requires: crossmingw32-glibmm >= 2.46.2 | |
8a923a9e JB |
24 | Provides: crossmingw32-gtkmm-atk |
25 | Obsoletes: crossmingw32-gtkmm-atk | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define no_install_post_strip 1 | |
29 | ||
30 | %define target i386-mingw32 | |
31 | %define target_platform i386-pc-mingw32 | |
32 | ||
33 | %define _sysprefix /usr | |
34 | %define _prefix %{_sysprefix}/%{target} | |
35 | %define _libdir %{_prefix}/lib | |
36 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
37 | %define _dlldir /usr/share/wine/windows/system | |
38 | %define __cc %{target}-gcc | |
39 | %define __cxx %{target}-g++ | |
22d83d66 | 40 | %define __pkgconfig_provides %{nil} |
03d6cea1 | 41 | %define __pkgconfig_requires %{nil} |
8a923a9e | 42 | |
45cd9173 | 43 | %define _ssp_cflags %{nil} |
8a923a9e JB |
44 | %ifnarch %{ix86} |
45 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
46 | %define optflags -O2 | |
47 | %endif | |
3b87630a | 48 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
8a923a9e | 49 | %define filterout_ld -Wl,-z,.* |
3b87630a | 50 | %define filterout_c -f[-a-z0-9=]* |
8a923a9e JB |
51 | |
52 | %description | |
53 | A C++ interface for atk library - cross MinGW32 version. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | Interfejs C++ dla biblioteki atk - wersja skrośna MinGW32. | |
57 | ||
58 | %package static | |
59 | Summary: Static atkmm library (cross MinGW32 version) | |
60 | Summary(pl.UTF-8): Statyczna biblioteka atkmm (wersja skrośna MinGW32) | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Provides: crossmingw32-gtkmm-atk-static | |
64 | Obsoletes: crossmingw32-gtkmm-atk-static | |
65 | ||
66 | %description static | |
67 | Static atkmm library (cross MinGW32 version). | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka atkmm (wersja skrośna MinGW32). | |
71 | ||
72 | %package dll | |
73 | Summary: DLL atkmm library for Windows | |
74 | Summary(pl.UTF-8): Biblioteka DLL atkmm dla Windows | |
75 | Group: Applications/Emulators | |
8bbf15f3 | 76 | Requires: crossmingw32-atk-dll >= 2.18.0 |
c1302907 | 77 | Requires: crossmingw32-glibmm-dll >= 2.46.2 |
8a923a9e JB |
78 | Requires: wine |
79 | Provides: crossmingw32-gtkmm-atk-dll | |
80 | Obsoletes: crossmingw32-gtkmm-atk-dll | |
81 | ||
82 | %description dll | |
83 | DLL atkmm library for Windows. | |
84 | ||
85 | %description dll -l pl.UTF-8 | |
86 | Biblioteka DLL atkmm dla Windows. | |
87 | ||
88 | %prep | |
89 | %setup -q -n atkmm-%{version} | |
90 | ||
91 | %build | |
32225b4f | 92 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir} |
8a923a9e JB |
93 | %{__libtoolize} |
94 | %{__aclocal} -I build | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
65dd0373 JB |
98 | # std-threads required by glibmm requires at least WinXP API |
99 | CPPFLAGS="%{rpmcppflags} -DWINVER=0x0501" | |
8a923a9e JB |
100 | %configure \ |
101 | --target=%{target} \ | |
102 | --host=%{target} \ | |
103 | --disable-documentation \ | |
c1302907 | 104 | --disable-silent-rules \ |
8a923a9e JB |
105 | --enable-static |
106 | ||
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
116 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
117 | ||
118 | %if 0%{!?debug:1} | |
119 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
120 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
121 | %endif | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS ChangeLog NEWS README | |
129 | %{_libdir}/libatkmm-1.6.dll.a | |
130 | %{_libdir}/libatkmm-1.6.la | |
131 | %{_libdir}/atkmm-1.6 | |
132 | %{_includedir}/atkmm-1.6 | |
133 | %{_pkgconfigdir}/atkmm-1.6.pc | |
134 | ||
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libatkmm-1.6.a | |
138 | ||
139 | %files dll | |
140 | %defattr(644,root,root,755) | |
141 | %{_dlldir}/libatkmm-1.6-*.dll |