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