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