]>
Commit | Line | Data |
---|---|---|
50b7342e | 1 | # |
8d2fd974 | 2 | # Conditional build: |
c5cdccd3 | 3 | %bcond_without static_libs # static library |
24693ae0 | 4 | |
bcdbffe1 | 5 | Summary: Assistive Technology Service Provider Interface |
c657ba62 | 6 | Summary(pl.UTF-8): Interfejs pozwalający na korzystanie z urządzeń wspomagających |
1ed60eac | 7 | Name: at-spi |
e52f61ca | 8 | Version: 1.32.0 |
24693ae0 | 9 | Release: 9 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
e52f61ca MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.32/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: bc62c41f18529d56271fa1ae6cad8629 | |
82bfee0a | 14 | Patch0: %{name}-format.patch |
c5cdccd3 JB |
15 | Patch1: %{name}-gtkdoc.patch |
16 | Patch2: %{name}-ac.patch | |
5747353d | 17 | URL: http://developer.gnome.org/projects/gap/ |
1b7395ed | 18 | BuildRequires: GConf2-devel >= 2.24.0 |
0c33fbc7 | 19 | BuildRequires: ORBit2-devel >= 2.14.10 |
4c0721c6 | 20 | BuildRequires: atk-devel >= 1:1.30.0 |
3d8e3102 JB |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
4619ab54 | 23 | BuildRequires: dbus-glib-devel >= 0.76 |
51420774 | 24 | BuildRequires: docbook-dtd412-xml |
d8b5f561 | 25 | BuildRequires: gettext-tools |
853a31c3 | 26 | BuildRequires: gnome-common >= 2.20.0 |
4c0721c6 | 27 | BuildRequires: gtk+2-devel >= 2:2.20.0 |
0b8fc293 | 28 | BuildRequires: gtk-doc >= 1.8 |
b10e476d | 29 | BuildRequires: intltool >= 0.40.0 |
1b7395ed | 30 | BuildRequires: libbonobo-devel >= 2.24.0 |
3d8e3102 | 31 | BuildRequires: libtool |
81dc3929 | 32 | BuildRequires: pkgconfig |
0b8fc293 | 33 | BuildRequires: popt-devel |
82bfee0a JB |
34 | BuildRequires: python >= 1:2.4 |
35 | BuildRequires: python-modules >= 1:2.4 | |
c5cdccd3 | 36 | BuildRequires: rpm-build >= 4.6 |
51420774 | 37 | BuildRequires: rpm-pythonprov |
8603da1f | 38 | BuildRequires: rpmbuild(macros) >= 1.219 |
4c0721c6 | 39 | BuildRequires: sed >= 4.0 |
c5cdccd3 | 40 | BuildRequires: xorg-lib-libICE-devel |
4619ab54 | 41 | BuildRequires: xorg-lib-libSM-devel |
24693ae0 | 42 | BuildRequires: xorg-lib-libX11-devel |
50b7342e | 43 | BuildRequires: xorg-lib-libXft-devel >= 2.1 |
82bfee0a | 44 | BuildRequires: xorg-lib-libXi-devel |
50b7342e | 45 | BuildRequires: xorg-lib-libXtst-devel |
1b7395ed | 46 | Requires(post,preun): GConf2 |
0a2500d8 | 47 | Requires: %{name}-libs = %{version}-%{release} |
f457a051 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1ed60eac | 49 | |
1ed60eac | 50 | %description |
8603da1f | 51 | AT-SPI allows assistive technologies to access GTK-based applications. |
0b8fc293 MB |
52 | Essentially it exposes the internals of applications for automation, |
53 | so tools such as screen readers, magnifiers, or even scripting | |
54 | interfaces can query and interact with GUI controls. | |
1ed60eac | 55 | |
89a18d38 | 56 | %description -l pl.UTF-8 |
8603da1f | 57 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu |
89a18d38 JR |
58 | do aplikacji bazujących na GTK. Przede wszystkim udostępnia wewnętrzne |
59 | interfejsy aplikacji dla automatyzacji, więc urządzenia takie jak | |
60 | czytniki ekranu, lupy, czy nawet interfejsy skryptowe mogą odpytywać i | |
61 | współpracować z kontrolkami interfejsu graficznego. | |
5747353d | 62 | |
0a2500d8 | 63 | %package libs |
82bfee0a JB |
64 | Summary: Base at-spi libraries and modules |
65 | Summary(pl.UTF-8): Podstawowe biblioteki i moduły at-spi | |
0a2500d8 | 66 | Group: Libraries |
0a2500d8 JR |
67 | Obsoletes: libat-spi1 |
68 | ||
69 | %description libs | |
82bfee0a | 70 | Base at-spi libraries and modules. |
0a2500d8 JR |
71 | |
72 | %description libs -l pl.UTF-8 | |
82bfee0a | 73 | Podstawowe biblioteki i moduły at-spi. |
0a2500d8 | 74 | |
1ed60eac | 75 | %package devel |
8603da1f MB |
76 | Summary: AT-SPI development files |
77 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
65c7fc20 | 78 | Group: X11/Development/Libraries |
9f604232 | 79 | Requires: %{name}-libs = %{version}-%{release} |
0c33fbc7 | 80 | Requires: ORBit2-devel >= 2.14.10 |
4c0721c6 MB |
81 | Requires: atk-devel >= 1:1.30.0 |
82 | Requires: gtk+2-devel >= 2:2.20.0 | |
1b7395ed | 83 | Requires: libbonobo-devel >= 2.24.0 |
65c7fc20 | 84 | Obsoletes: libat-spi1-devel |
1ed60eac AF |
85 | |
86 | %description devel | |
8603da1f | 87 | AT-SPI development files. |
1ed60eac | 88 | |
89a18d38 | 89 | %description devel -l pl.UTF-8 |
8603da1f | 90 | Pliki programistyczne AT-SPI. |
5747353d | 91 | |
1ed60eac | 92 | %package static |
8603da1f MB |
93 | Summary: AT-SPI static library |
94 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
65c7fc20 | 95 | Group: X11/Development/Libraries |
28c0711b | 96 | Requires: %{name}-devel = %{version}-%{release} |
1ed60eac AF |
97 | |
98 | %description static | |
8603da1f | 99 | AT-SPI static library. |
1ed60eac | 100 | |
89a18d38 | 101 | %description static -l pl.UTF-8 |
8603da1f | 102 | Statyczna biblioteka AT-SPI. |
5747353d | 103 | |
6b564294 | 104 | %package apidocs |
8603da1f MB |
105 | Summary: AT-SPI API documentation |
106 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
6b564294 | 107 | Group: Documentation |
108 | Requires: gtk-doc-common | |
24693ae0 | 109 | BuildArch: noarch |
6b564294 | 110 | |
111 | %description apidocs | |
8603da1f | 112 | AT-SPI API documentation. |
6b564294 | 113 | |
89a18d38 | 114 | %description apidocs -l pl.UTF-8 |
8603da1f MB |
115 | Dokumentacja API AT-SPI. |
116 | ||
603e6d82 | 117 | %package -n python-pyatspi_corba |
8603da1f MB |
118 | Summary: AT-SPI Python bindings |
119 | Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona | |
120 | Group: Development/Languages/Python | |
121 | Requires: python-pyorbit | |
82bfee0a JB |
122 | # python-pyatspi 2 is new, at-spi2 based implementation |
123 | Obsoletes: python-pyatspi < 2 | |
ce04ca9a | 124 | Obsoletes: python-pyspi |
8603da1f | 125 | |
603e6d82 | 126 | %description -n python-pyatspi_corba |
8603da1f MB |
127 | AT-SPI Python bindings. |
128 | ||
603e6d82 | 129 | %description -n python-pyatspi_corba -l pl.UTF-8 |
8603da1f | 130 | Wiązania AT-SPI dla Pythona. |
6b564294 | 131 | |
1ed60eac AF |
132 | %prep |
133 | %setup -q | |
82bfee0a | 134 | %patch0 -p1 |
c5cdccd3 JB |
135 | %patch1 -p1 |
136 | %patch2 -p1 | |
1ed60eac AF |
137 | |
138 | %build | |
0b8fc293 MB |
139 | %{__glib_gettextize} |
140 | %{__intltoolize} | |
b4b6efd9 | 141 | %{__libtoolize} |
c5cdccd3 | 142 | %{__aclocal} -I m4 |
b4b6efd9 | 143 | %{__autoconf} |
c5cdccd3 JB |
144 | %{__autoheader} |
145 | %{__automake} | |
28b697dc | 146 | %configure \ |
c5cdccd3 | 147 | --enable-compile-warnings=minimum \ |
28c0711b | 148 | --enable-gtk-doc \ |
c5cdccd3 JB |
149 | --enable-relocate \ |
150 | %{__enable_disable static_libs static} \ | |
dc4a0092 | 151 | --with-html-dir=%{_gtkdocdir} |
1ed60eac AF |
152 | %{__make} |
153 | ||
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 156 | |
1ed60eac AF |
157 | %{__make} install \ |
158 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 159 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 160 | |
5c63673f | 161 | # no static modules |
603e6d82 | 162 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules/at-spi-corba/modules,orbit-2.0}/*.{la,a} |
c5cdccd3 JB |
163 | # obsoleted by pkg-config |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
5c63673f | 165 | |
8603da1f MB |
166 | %py_postclean |
167 | ||
c5cdccd3 | 168 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
82bfee0a JB |
169 | |
170 | %find_lang %{name} | |
171 | ||
1ed60eac AF |
172 | %clean |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
1b7395ed MB |
175 | %post |
176 | %gconf_schema_install at-spi.schemas | |
1b7395ed MB |
177 | |
178 | %preun | |
179 | %gconf_schema_uninstall at-spi.schemas | |
180 | ||
0a2500d8 JR |
181 | %post libs -p /sbin/ldconfig |
182 | %postun libs -p /sbin/ldconfig | |
1ed60eac | 183 | |
50b7342e | 184 | %files -f %{name}.lang |
1ed60eac | 185 | %defattr(644,root,root,755) |
0a2500d8 JR |
186 | %{_sysconfdir}/gconf/schemas/at-spi.schemas |
187 | %{_sysconfdir}/xdg/autostart/at-spi-registryd.desktop | |
188 | %{_datadir}/idl/at-spi-1.0 | |
189 | ||
190 | %files libs | |
191 | %defattr(644,root,root,755) | |
82bfee0a | 192 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO |
0c33fbc7 MB |
193 | %attr(755,root,root) %{_libdir}/libcspi.so.*.*.* |
194 | %attr(755,root,root) %ghost %{_libdir}/libcspi.so.0 | |
195 | %attr(755,root,root) %{_libdir}/libloginhelper.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libloginhelper.so.0 | |
197 | %attr(755,root,root) %{_libdir}/libspi.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libspi.so.0 | |
0c33fbc7 MB |
199 | %attr(755,root,root) %{_libexecdir}/at-spi-registryd |
200 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_LoginHelper_module.so | |
201 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_module.so | |
603e6d82 MB |
202 | %dir %{_libdir}/gtk-2.0/modules/at-spi-corba |
203 | %dir %{_libdir}/gtk-2.0/modules/at-spi-corba/modules | |
204 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/at-spi-corba/modules/libatk-bridge.so | |
0c33fbc7 | 205 | %{_libdir}/bonobo/servers/Accessibility_Registry.server |
1ed60eac AF |
206 | |
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
209 | %attr(755,root,root) %{_libdir}/libcspi.so |
210 | %attr(755,root,root) %{_libdir}/libloginhelper.so | |
211 | %attr(755,root,root) %{_libdir}/libspi.so | |
212 | %{_includedir}/at-spi-1.0 | |
0c33fbc7 MB |
213 | %{_pkgconfigdir}/cspi-1.0.pc |
214 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
215 | %{_pkgconfigdir}/libspi-1.0.pc | |
1ed60eac | 216 | |
8d2fd974 | 217 | %if %{with static_libs} |
1ed60eac AF |
218 | %files static |
219 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
220 | %{_libdir}/libcspi.a |
221 | %{_libdir}/libloginhelper.a | |
222 | %{_libdir}/libspi.a | |
8d2fd974 | 223 | %endif |
6b564294 | 224 | |
225 | %files apidocs | |
226 | %defattr(644,root,root,755) | |
0c33fbc7 | 227 | %{_gtkdocdir}/at-spi-cspi |
6b564294 | 228 | %{_docdir}/%{name}-%{version} |
8603da1f | 229 | |
603e6d82 | 230 | %files -n python-pyatspi_corba |
8603da1f | 231 | %defattr(644,root,root,755) |
603e6d82 MB |
232 | %dir %{py_sitedir}/pyatspi_corba |
233 | %{py_sitedir}/pyatspi_corba/*.py[co] |