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