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