]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: Assistive Technology Service Provider Interface | |
6 | Summary(pl.UTF-8): Interfejs pozwalający na korzystanie z urządzeń wspomagających | |
7 | Name: at-spi | |
8 | Version: 1.32.0 | |
9 | Release: 9 | |
10 | License: LGPL v2+ | |
11 | Group: X11/Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.32/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: bc62c41f18529d56271fa1ae6cad8629 | |
14 | Patch0: %{name}-format.patch | |
15 | Patch1: %{name}-gtkdoc.patch | |
16 | Patch2: %{name}-ac.patch | |
17 | URL: http://developer.gnome.org/projects/gap/ | |
18 | BuildRequires: GConf2-devel >= 2.24.0 | |
19 | BuildRequires: ORBit2-devel >= 2.14.10 | |
20 | BuildRequires: atk-devel >= 1:1.30.0 | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: automake | |
23 | BuildRequires: dbus-glib-devel >= 0.76 | |
24 | BuildRequires: docbook-dtd412-xml | |
25 | BuildRequires: gettext-tools | |
26 | BuildRequires: gnome-common >= 2.20.0 | |
27 | BuildRequires: gtk+2-devel >= 2:2.20.0 | |
28 | BuildRequires: gtk-doc >= 1.8 | |
29 | BuildRequires: intltool >= 0.40.0 | |
30 | BuildRequires: libbonobo-devel >= 2.24.0 | |
31 | BuildRequires: libtool | |
32 | BuildRequires: pkgconfig | |
33 | BuildRequires: popt-devel | |
34 | BuildRequires: python >= 1:2.4 | |
35 | BuildRequires: python-modules >= 1:2.4 | |
36 | BuildRequires: rpm-build >= 4.6 | |
37 | BuildRequires: rpm-pythonprov | |
38 | BuildRequires: rpmbuild(macros) >= 1.219 | |
39 | BuildRequires: sed >= 4.0 | |
40 | BuildRequires: xorg-lib-libICE-devel | |
41 | BuildRequires: xorg-lib-libSM-devel | |
42 | BuildRequires: xorg-lib-libX11-devel | |
43 | BuildRequires: xorg-lib-libXft-devel >= 2.1 | |
44 | BuildRequires: xorg-lib-libXi-devel | |
45 | BuildRequires: xorg-lib-libXtst-devel | |
46 | Requires(post,preun): GConf2 | |
47 | Requires: %{name}-libs = %{version}-%{release} | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | AT-SPI allows assistive technologies to access GTK-based applications. | |
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. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu | |
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. | |
62 | ||
63 | %package libs | |
64 | Summary: Base at-spi libraries and modules | |
65 | Summary(pl.UTF-8): Podstawowe biblioteki i moduły at-spi | |
66 | Group: Libraries | |
67 | Obsoletes: libat-spi1 | |
68 | ||
69 | %description libs | |
70 | Base at-spi libraries and modules. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Podstawowe biblioteki i moduły at-spi. | |
74 | ||
75 | %package devel | |
76 | Summary: AT-SPI development files | |
77 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
80 | Requires: ORBit2-devel >= 2.14.10 | |
81 | Requires: atk-devel >= 1:1.30.0 | |
82 | Requires: gtk+2-devel >= 2:2.20.0 | |
83 | Requires: libbonobo-devel >= 2.24.0 | |
84 | Obsoletes: libat-spi1-devel | |
85 | ||
86 | %description devel | |
87 | AT-SPI development files. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki programistyczne AT-SPI. | |
91 | ||
92 | %package static | |
93 | Summary: AT-SPI static library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
95 | Group: X11/Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
97 | ||
98 | %description static | |
99 | AT-SPI static library. | |
100 | ||
101 | %description static -l pl.UTF-8 | |
102 | Statyczna biblioteka AT-SPI. | |
103 | ||
104 | %package apidocs | |
105 | Summary: AT-SPI API documentation | |
106 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
107 | Group: Documentation | |
108 | Requires: gtk-doc-common | |
109 | BuildArch: noarch | |
110 | ||
111 | %description apidocs | |
112 | AT-SPI API documentation. | |
113 | ||
114 | %description apidocs -l pl.UTF-8 | |
115 | Dokumentacja API AT-SPI. | |
116 | ||
117 | %package -n python-pyatspi_corba | |
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 | |
122 | # python-pyatspi 2 is new, at-spi2 based implementation | |
123 | Obsoletes: python-pyatspi < 2 | |
124 | Obsoletes: python-pyspi | |
125 | ||
126 | %description -n python-pyatspi_corba | |
127 | AT-SPI Python bindings. | |
128 | ||
129 | %description -n python-pyatspi_corba -l pl.UTF-8 | |
130 | Wiązania AT-SPI dla Pythona. | |
131 | ||
132 | %prep | |
133 | %setup -q | |
134 | %patch0 -p1 | |
135 | %patch1 -p1 | |
136 | %patch2 -p1 | |
137 | ||
138 | %build | |
139 | %{__glib_gettextize} | |
140 | %{__intltoolize} | |
141 | %{__libtoolize} | |
142 | %{__aclocal} -I m4 | |
143 | %{__autoconf} | |
144 | %{__autoheader} | |
145 | %{__automake} | |
146 | %configure \ | |
147 | --enable-compile-warnings=minimum \ | |
148 | --enable-gtk-doc \ | |
149 | --enable-relocate \ | |
150 | %{__enable_disable static_libs static} \ | |
151 | --with-html-dir=%{_gtkdocdir} | |
152 | %{__make} | |
153 | ||
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %{__make} install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT \ | |
159 | HTML_DIR=%{_gtkdocdir} | |
160 | ||
161 | # no static modules | |
162 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules/at-spi-corba/modules,orbit-2.0}/*.{la,a} | |
163 | # obsoleted by pkg-config | |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
165 | ||
166 | %py_postclean | |
167 | ||
168 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
169 | ||
170 | %find_lang %{name} | |
171 | ||
172 | %clean | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
175 | %post | |
176 | %gconf_schema_install at-spi.schemas | |
177 | ||
178 | %preun | |
179 | %gconf_schema_uninstall at-spi.schemas | |
180 | ||
181 | %post libs -p /sbin/ldconfig | |
182 | %postun libs -p /sbin/ldconfig | |
183 | ||
184 | %files -f %{name}.lang | |
185 | %defattr(644,root,root,755) | |
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) | |
192 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO | |
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 | |
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 | |
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 | |
205 | %{_libdir}/bonobo/servers/Accessibility_Registry.server | |
206 | ||
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
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 | |
213 | %{_pkgconfigdir}/cspi-1.0.pc | |
214 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
215 | %{_pkgconfigdir}/libspi-1.0.pc | |
216 | ||
217 | %if %{with static_libs} | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
220 | %{_libdir}/libcspi.a | |
221 | %{_libdir}/libloginhelper.a | |
222 | %{_libdir}/libspi.a | |
223 | %endif | |
224 | ||
225 | %files apidocs | |
226 | %defattr(644,root,root,755) | |
227 | %{_gtkdocdir}/at-spi-cspi | |
228 | %{_docdir}/%{name}-%{version} | |
229 | ||
230 | %files -n python-pyatspi_corba | |
231 | %defattr(644,root,root,755) | |
232 | %dir %{py_sitedir}/pyatspi_corba | |
233 | %{py_sitedir}/pyatspi_corba/*.py[co] |