]>
Commit | Line | Data |
---|---|---|
7412a699 | 1 | %define _realname atk |
2 | Summary: ATK - Accessibility Toolkit - cross Mingw32 version | |
e3f62589 | 3 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów - wersja skrośna dla Mingw32 |
7412a699 | 4 | Name: crossmingw32-%{_realname} |
720fa6f9 | 5 | Version: 1.20.0 |
7412a699 | 6 | Release: 1 |
7 | License: LGPL v2+ | |
5a48950d | 8 | Group: Development/Libraries |
720fa6f9 JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/1.20/%{_realname}-%{version}.tar.bz2 |
10 | # Source0-md5: b1a9e28d9f54ea306bd85a4c84b25fb8 | |
7412a699 | 11 | URL: http://developer.gnome.org/projects/gap/ |
12 | BuildRequires: autoconf >= 2.54 | |
13 | BuildRequires: automake | |
5a48950d | 14 | BuildRequires: crossmingw32-gcc |
720fa6f9 | 15 | BuildRequires: crossmingw32-glib2 >= 2.14.1 |
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 |
720fa6f9 | 20 | Requires: crossmingw32-glib2 >= 2.14.1 |
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} | |
30 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
5a48950d | 31 | %define _dlldir /usr/share/wine/windows/system |
7412a699 | 32 | %define __cc %{target}-gcc |
33 | %define __cxx %{target}-g++ | |
34 | ||
35 | %description | |
36 | The ATK library provides a set of interfaces for adding accessibility | |
37 | support to applications and graphical user interface toolkits. By | |
38 | supporting the ATK interfaces, an application or toolkit can be used | |
39 | as tools such as screen readers and magnifiers, and alternative input | |
40 | devices. | |
41 | ||
5a48950d JB |
42 | This package contains the cross version for Win32. |
43 | ||
7412a699 | 44 | %description -l pl.UTF-8 |
45 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
46 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
47 | graficznego interfejsu użytkownika. Poprzez wykorzystanie | |
48 | interfejsów ATK, aplikacja lub element interfejsu może być używany | |
49 | z takimi narzędziami jak czytniki ekranu i narzędzia powiększające | |
50 | oraz alternatywnymi urządzeniami wejściowymi. | |
51 | ||
5a48950d JB |
52 | Ten pakiet zawiera wersję skrośną dla Win32. |
53 | ||
54 | %package static | |
55 | Summary: Static atk library (cross mingw32 version) | |
56 | Summary(pl.UTF-8): Statyczna biblioteka atk (wersja skrośna mingw32) | |
57 | Group: Development/Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static atk library (cross mingw32 version). | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka atk (wersja skrośna mingw32). | |
65 | ||
66 | %package dll | |
67 | Summary: DLL atk library for Windows | |
68 | Summary(pl.UTF-8): Biblioteka DLL atk dla Windows | |
69 | Group: Applications/Emulators | |
720fa6f9 | 70 | Requires: crossmingw32-glib2-dll >= 2.14.1 |
5a48950d JB |
71 | Requires: wine |
72 | ||
73 | %description dll | |
74 | DLL atk library for Windows. | |
75 | ||
76 | %description dll -l pl.UTF-8 | |
77 | Biblioteka DLL atk dla Windows. | |
7412a699 | 78 | |
79 | %prep | |
80 | %setup -q -n %{_realname}-%{version} | |
81 | ||
82 | %build | |
b5e017bc | 83 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
7412a699 | 84 | %{__libtoolize} |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
7412a699 | 90 | --target=%{target} \ |
bedcf096 | 91 | --host=%{target} \ |
92 | --disable-gtk-doc \ | |
93 | --enable-static | |
7412a699 | 94 | |
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
f8b559df | 100 | %{__make} -j1 install \ |
7412a699 | 101 | DESTDIR=$RPM_BUILD_ROOT |
102 | ||
5a48950d JB |
103 | install -d $RPM_BUILD_ROOT%{_dlldir} |
104 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
105 | ||
106 | %if 0%{!?debug:1} | |
107 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
108 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
109 | %endif | |
110 | ||
111 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc | |
112 | # runtime | |
113 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale | |
7412a699 | 114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
5a48950d | 118 | %files |
7412a699 | 119 | %defattr(644,root,root,755) |
120 | %doc AUTHORS NEWS README | |
5a48950d JB |
121 | %{_libdir}/libatk-1.0.dll.a |
122 | %{_libdir}/libatk-1.0.la | |
123 | %{_libdir}/atk-1.0.def | |
124 | %{_includedir}/atk-1.0 | |
7412a699 | 125 | %{_pkgconfigdir}/atk* |
5a48950d JB |
126 | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libatk-1.0.a | |
130 | ||
131 | %files dll | |
132 | %defattr(644,root,root,755) | |
133 | %{_dlldir}/libatk-1.0-*.dll |