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