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