]>
Commit | Line | Data |
---|---|---|
83f64ac4 | 1 | %define realname atk |
b28b1bf5 JB |
2 | Summary: ATK - Accessibility Toolkit - cross MinGW32 version |
3 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów - wersja skrośna dla MinGW32 | |
83f64ac4 | 4 | Name: crossmingw32-%{realname} |
7afb24cc | 5 | Version: 2.0.1 |
7412a699 | 6 | Release: 1 |
7 | License: LGPL v2+ | |
5a48950d | 8 | Group: Development/Libraries |
0ce0ae78 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/2.0/%{realname}-%{version}.tar.bz2 |
7afb24cc | 10 | # Source0-md5: 87f20b78deaedef858ac54358c0786b1 |
00f642c5 | 11 | URL: http://library.gnome.org/devel/atk/ |
0ce0ae78 JB |
12 | BuildRequires: autoconf >= 2.63 |
13 | BuildRequires: automake >= 1:1.10 | |
5a48950d | 14 | BuildRequires: crossmingw32-gcc |
62350f6a | 15 | BuildRequires: crossmingw32-glib2 >= 2.20.0 |
7412a699 | 16 | BuildRequires: libtool >= 2:1.5.16 |
17 | BuildRequires: perl-base | |
b5e017bc | 18 | BuildRequires: pkgconfig >= 1:0.15 |
7412a699 | 19 | BuildRequires: rpmbuild(macros) >= 1.197 |
62350f6a | 20 | Requires: crossmingw32-glib2 >= 2.20.0 |
7412a699 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %define no_install_post_strip 1 | |
24 | ||
25 | %define target i386-mingw32 | |
26 | %define target_platform i386-pc-mingw32 | |
7412a699 | 27 | |
28 | %define _sysprefix /usr | |
29 | %define _prefix %{_sysprefix}/%{target} | |
83f64ac4 | 30 | %define _libdir %{_prefix}/lib |
7412a699 | 31 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
5a48950d | 32 | %define _dlldir /usr/share/wine/windows/system |
7412a699 | 33 | %define __cc %{target}-gcc |
34 | %define __cxx %{target}-g++ | |
35 | ||
2c1f632c JB |
36 | %ifnarch %{ix86} |
37 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
38 | %define optflags -O2 | |
39 | %endif | |
40 | # -z options are invalid for mingw linker | |
41 | %define filterout_ld -Wl,-z,.* | |
42 | ||
7412a699 | 43 | %description |
44 | The ATK library provides a set of interfaces for adding accessibility | |
45 | support to applications and graphical user interface toolkits. By | |
46 | supporting the ATK interfaces, an application or toolkit can be used | |
47 | as tools such as screen readers and magnifiers, and alternative input | |
48 | devices. | |
49 | ||
5a48950d JB |
50 | This package contains the cross version for Win32. |
51 | ||
7412a699 | 52 | %description -l pl.UTF-8 |
53 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
54 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
e5c005db JB |
55 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów |
56 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
57 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
58 | alternatywnymi urządzeniami wejściowymi. | |
7412a699 | 59 | |
5a48950d JB |
60 | Ten pakiet zawiera wersję skrośną dla Win32. |
61 | ||
62 | %package static | |
b28b1bf5 JB |
63 | Summary: Static atk library (cross MinGW32 version) |
64 | Summary(pl.UTF-8): Statyczna biblioteka atk (wersja skrośna MinGW32) | |
5a48950d JB |
65 | Group: Development/Libraries |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description static | |
b28b1bf5 | 69 | Static atk library (cross MinGW32 version). |
5a48950d JB |
70 | |
71 | %description static -l pl.UTF-8 | |
b28b1bf5 | 72 | Statyczna biblioteka atk (wersja skrośna MinGW32). |
5a48950d JB |
73 | |
74 | %package dll | |
75 | Summary: DLL atk library for Windows | |
76 | Summary(pl.UTF-8): Biblioteka DLL atk dla Windows | |
77 | Group: Applications/Emulators | |
62350f6a | 78 | Requires: crossmingw32-glib2-dll >= 2.20.0 |
5a48950d JB |
79 | Requires: wine |
80 | ||
81 | %description dll | |
82 | DLL atk library for Windows. | |
83 | ||
84 | %description dll -l pl.UTF-8 | |
85 | Biblioteka DLL atk dla Windows. | |
7412a699 | 86 | |
87 | %prep | |
83f64ac4 | 88 | %setup -q -n %{realname}-%{version} |
7412a699 | 89 | |
90 | %build | |
b5e017bc | 91 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
7412a699 | 92 | %{__libtoolize} |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | %configure \ | |
7412a699 | 98 | --target=%{target} \ |
bedcf096 | 99 | --host=%{target} \ |
100 | --disable-gtk-doc \ | |
101 | --enable-static | |
7412a699 | 102 | |
103 | %{__make} | |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
f8b559df | 108 | %{__make} -j1 install \ |
7412a699 | 109 | DESTDIR=$RPM_BUILD_ROOT |
110 | ||
5a48950d JB |
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 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc | |
120 | # runtime | |
121 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale | |
7412a699 | 122 | |
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
5a48950d | 126 | %files |
7412a699 | 127 | %defattr(644,root,root,755) |
128 | %doc AUTHORS NEWS README | |
5a48950d JB |
129 | %{_libdir}/libatk-1.0.dll.a |
130 | %{_libdir}/libatk-1.0.la | |
131 | %{_libdir}/atk-1.0.def | |
132 | %{_includedir}/atk-1.0 | |
e5c005db | 133 | %{_pkgconfigdir}/atk.pc |
5a48950d JB |
134 | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libatk-1.0.a | |
138 | ||
139 | %files dll | |
140 | %defattr(644,root,root,755) | |
141 | %{_dlldir}/libatk-1.0-*.dll |