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