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