]>
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 |
8a923a9e JB |
5 | Release: 1 |
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++ | |
39 | ||
40 | %ifnarch %{ix86} | |
41 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
42 | %define optflags -O2 | |
43 | %endif | |
44 | # -z options are invalid for mingw linker | |
45 | %define filterout_ld -Wl,-z,.* | |
46 | ||
47 | %description | |
48 | A C++ interface for atk library - cross MinGW32 version. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Interfejs C++ dla biblioteki atk - wersja skrośna MinGW32. | |
52 | ||
53 | %package static | |
54 | Summary: Static atkmm library (cross MinGW32 version) | |
55 | Summary(pl.UTF-8): Statyczna biblioteka atkmm (wersja skrośna MinGW32) | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Provides: crossmingw32-gtkmm-atk-static | |
59 | Obsoletes: crossmingw32-gtkmm-atk-static | |
60 | ||
61 | %description static | |
62 | Static atkmm library (cross MinGW32 version). | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka atkmm (wersja skrośna MinGW32). | |
66 | ||
67 | %package dll | |
68 | Summary: DLL atkmm library for Windows | |
69 | Summary(pl.UTF-8): Biblioteka DLL atkmm dla Windows | |
70 | Group: Applications/Emulators | |
71 | Requires: crossmingw32-atk-dll >= 1.22.0 | |
72 | Requires: crossmingw32-glibmm-dll >= 2.24.0 | |
73 | Requires: wine | |
74 | Provides: crossmingw32-gtkmm-atk-dll | |
75 | Obsoletes: crossmingw32-gtkmm-atk-dll | |
76 | ||
77 | %description dll | |
78 | DLL atkmm library for Windows. | |
79 | ||
80 | %description dll -l pl.UTF-8 | |
81 | Biblioteka DLL atkmm dla Windows. | |
82 | ||
83 | %prep | |
84 | %setup -q -n atkmm-%{version} | |
85 | ||
86 | %build | |
32225b4f | 87 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir} |
8a923a9e JB |
88 | %{__libtoolize} |
89 | %{__aclocal} -I build | |
90 | %{__autoconf} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
93 | %configure \ | |
94 | --target=%{target} \ | |
95 | --host=%{target} \ | |
96 | --disable-documentation \ | |
97 | --enable-static | |
98 | ||
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
108 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
109 | ||
110 | %if 0%{!?debug:1} | |
111 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
112 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
113 | %endif | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS ChangeLog NEWS README | |
121 | %{_libdir}/libatkmm-1.6.dll.a | |
122 | %{_libdir}/libatkmm-1.6.la | |
123 | %{_libdir}/atkmm-1.6 | |
124 | %{_includedir}/atkmm-1.6 | |
125 | %{_pkgconfigdir}/atkmm-1.6.pc | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libatkmm-1.6.a | |
130 | ||
131 | %files dll | |
132 | %defattr(644,root,root,755) | |
133 | %{_dlldir}/libatkmm-1.6-*.dll |