]>
Commit | Line | Data |
---|---|---|
50b7342e | 1 | # |
8d2fd974 | 2 | # Conditional build: |
3 | %bcond_without static_libs # don't build 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 |
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 |
4619ab54 | 38 | BuildRequires: xorg-lib-libSM-devel |
24693ae0 | 39 | BuildRequires: xorg-lib-libX11-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 | |
24693ae0 | 108 | BuildArch: noarch |
6b564294 | 109 | |
110 | %description apidocs | |
8603da1f | 111 | AT-SPI API documentation. |
6b564294 | 112 | |
89a18d38 | 113 | %description apidocs -l pl.UTF-8 |
8603da1f MB |
114 | Dokumentacja API AT-SPI. |
115 | ||
603e6d82 | 116 | %package -n python-pyatspi_corba |
8603da1f MB |
117 | Summary: AT-SPI Python bindings |
118 | Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona | |
119 | Group: Development/Languages/Python | |
120 | Requires: python-pyorbit | |
82bfee0a JB |
121 | # python-pyatspi 2 is new, at-spi2 based implementation |
122 | Obsoletes: python-pyatspi < 2 | |
ce04ca9a | 123 | Obsoletes: python-pyspi |
8603da1f | 124 | |
603e6d82 | 125 | %description -n python-pyatspi_corba |
8603da1f MB |
126 | AT-SPI Python bindings. |
127 | ||
603e6d82 | 128 | %description -n python-pyatspi_corba -l pl.UTF-8 |
8603da1f | 129 | Wiązania AT-SPI dla Pythona. |
6b564294 | 130 | |
1ed60eac AF |
131 | %prep |
132 | %setup -q | |
82bfee0a | 133 | %patch0 -p1 |
1ed60eac AF |
134 | |
135 | %build | |
0b8fc293 MB |
136 | %{__glib_gettextize} |
137 | %{__intltoolize} | |
b4b6efd9 | 138 | %{__libtoolize} |
89f121e8 | 139 | %{__aclocal} |
b4b6efd9 | 140 | %{__automake} |
141 | %{__autoconf} | |
28b697dc | 142 | %configure \ |
603e6d82 MB |
143 | %{__enable_disable static_libs static} \ |
144 | --enable-relocate \ | |
28c0711b | 145 | --enable-gtk-doc \ |
dc4a0092 | 146 | --with-html-dir=%{_gtkdocdir} |
1ed60eac AF |
147 | %{__make} |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 151 | |
1ed60eac AF |
152 | %{__make} install \ |
153 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 154 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 155 | |
5c63673f | 156 | # no static modules |
603e6d82 | 157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules/at-spi-corba/modules,orbit-2.0}/*.{la,a} |
5c63673f | 158 | |
8603da1f MB |
159 | %py_postclean |
160 | ||
762ce67c | 161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
162 | ||
24693ae0 | 163 | %{__mv} -f $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
82bfee0a JB |
164 | |
165 | %find_lang %{name} | |
166 | ||
1ed60eac AF |
167 | %clean |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
1b7395ed MB |
170 | %post |
171 | %gconf_schema_install at-spi.schemas | |
1b7395ed MB |
172 | |
173 | %preun | |
174 | %gconf_schema_uninstall at-spi.schemas | |
175 | ||
0a2500d8 JR |
176 | %post libs -p /sbin/ldconfig |
177 | %postun libs -p /sbin/ldconfig | |
1ed60eac | 178 | |
50b7342e | 179 | %files -f %{name}.lang |
1ed60eac | 180 | %defattr(644,root,root,755) |
0a2500d8 JR |
181 | %{_sysconfdir}/gconf/schemas/at-spi.schemas |
182 | %{_sysconfdir}/xdg/autostart/at-spi-registryd.desktop | |
183 | %{_datadir}/idl/at-spi-1.0 | |
184 | ||
185 | %files libs | |
186 | %defattr(644,root,root,755) | |
82bfee0a | 187 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO |
0c33fbc7 MB |
188 | %attr(755,root,root) %{_libdir}/libcspi.so.*.*.* |
189 | %attr(755,root,root) %ghost %{_libdir}/libcspi.so.0 | |
190 | %attr(755,root,root) %{_libdir}/libloginhelper.so.*.*.* | |
191 | %attr(755,root,root) %ghost %{_libdir}/libloginhelper.so.0 | |
192 | %attr(755,root,root) %{_libdir}/libspi.so.*.*.* | |
193 | %attr(755,root,root) %ghost %{_libdir}/libspi.so.0 | |
0c33fbc7 MB |
194 | %attr(755,root,root) %{_libexecdir}/at-spi-registryd |
195 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_LoginHelper_module.so | |
196 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_module.so | |
603e6d82 MB |
197 | %dir %{_libdir}/gtk-2.0/modules/at-spi-corba |
198 | %dir %{_libdir}/gtk-2.0/modules/at-spi-corba/modules | |
199 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/at-spi-corba/modules/libatk-bridge.so | |
0c33fbc7 | 200 | %{_libdir}/bonobo/servers/Accessibility_Registry.server |
1ed60eac AF |
201 | |
202 | %files devel | |
203 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
204 | %attr(755,root,root) %{_libdir}/libcspi.so |
205 | %attr(755,root,root) %{_libdir}/libloginhelper.so | |
206 | %attr(755,root,root) %{_libdir}/libspi.so | |
207 | %{_includedir}/at-spi-1.0 | |
0c33fbc7 MB |
208 | %{_pkgconfigdir}/cspi-1.0.pc |
209 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
210 | %{_pkgconfigdir}/libspi-1.0.pc | |
1ed60eac | 211 | |
8d2fd974 | 212 | %if %{with static_libs} |
1ed60eac AF |
213 | %files static |
214 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
215 | %{_libdir}/libcspi.a |
216 | %{_libdir}/libloginhelper.a | |
217 | %{_libdir}/libspi.a | |
8d2fd974 | 218 | %endif |
6b564294 | 219 | |
220 | %files apidocs | |
221 | %defattr(644,root,root,755) | |
0c33fbc7 | 222 | %{_gtkdocdir}/at-spi-cspi |
6b564294 | 223 | %{_docdir}/%{name}-%{version} |
8603da1f | 224 | |
603e6d82 | 225 | %files -n python-pyatspi_corba |
8603da1f | 226 | %defattr(644,root,root,755) |
603e6d82 MB |
227 | %dir %{py_sitedir}/pyatspi_corba |
228 | %{py_sitedir}/pyatspi_corba/*.py[co] |