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