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