]>
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 |
ed183688 | 8 | Version: 1.28.1 |
6e922d8e | 9 | Release: 4 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
4619ab54 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.28/%{name}-%{version}.tar.bz2 |
ed183688 | 13 | # Source0-md5: ff29958339cbff5a0e0f34e4761e7633 |
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 |
51420774 | 21 | BuildRequires: docbook-dtd412-xml |
0c33fbc7 | 22 | BuildRequires: gettext-devel |
853a31c3 | 23 | BuildRequires: gnome-common >= 2.20.0 |
1b7395ed | 24 | BuildRequires: gtk+2-devel >= 2:2.14.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 |
4619ab54 | 35 | BuildRequires: xorg-lib-libSM-devel |
50b7342e | 36 | BuildRequires: xorg-lib-libXft-devel >= 2.1 |
37 | BuildRequires: xorg-lib-libXtst-devel | |
1b7395ed MB |
38 | Requires(post,postun): /sbin/ldconfig |
39 | Requires(post,preun): GConf2 | |
65c7fc20 | 40 | Obsoletes: libat-spi1 |
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 | |
1ed60eac | 58 | %package devel |
8603da1f MB |
59 | Summary: AT-SPI development files |
60 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
65c7fc20 | 61 | Group: X11/Development/Libraries |
28c0711b | 62 | Requires: %{name} = %{version}-%{release} |
0c33fbc7 | 63 | Requires: ORBit2-devel >= 2.14.10 |
1b7395ed MB |
64 | Requires: atk-devel >= 1:1.24.0 |
65 | Requires: gtk+2-devel >= 2:2.14.0 | |
66 | Requires: libbonobo-devel >= 2.24.0 | |
65c7fc20 | 67 | Obsoletes: libat-spi1-devel |
1ed60eac AF |
68 | |
69 | %description devel | |
8603da1f | 70 | AT-SPI development files. |
1ed60eac | 71 | |
89a18d38 | 72 | %description devel -l pl.UTF-8 |
8603da1f | 73 | Pliki programistyczne AT-SPI. |
5747353d | 74 | |
1ed60eac | 75 | %package static |
8603da1f MB |
76 | Summary: AT-SPI static library |
77 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
65c7fc20 | 78 | Group: X11/Development/Libraries |
28c0711b | 79 | Requires: %{name}-devel = %{version}-%{release} |
1ed60eac AF |
80 | |
81 | %description static | |
8603da1f | 82 | AT-SPI static library. |
1ed60eac | 83 | |
89a18d38 | 84 | %description static -l pl.UTF-8 |
8603da1f | 85 | Statyczna biblioteka AT-SPI. |
5747353d | 86 | |
6b564294 | 87 | %package apidocs |
8603da1f MB |
88 | Summary: AT-SPI API documentation |
89 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
6b564294 | 90 | Group: Documentation |
91 | Requires: gtk-doc-common | |
92 | ||
93 | %description apidocs | |
8603da1f | 94 | AT-SPI API documentation. |
6b564294 | 95 | |
89a18d38 | 96 | %description apidocs -l pl.UTF-8 |
8603da1f MB |
97 | Dokumentacja API AT-SPI. |
98 | ||
99 | %package -n python-pyatspi | |
100 | Summary: AT-SPI Python bindings | |
101 | Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona | |
102 | Group: Development/Languages/Python | |
103 | Requires: python-pyorbit | |
ce04ca9a | 104 | Obsoletes: python-pyspi |
8603da1f MB |
105 | |
106 | %description -n python-pyatspi | |
107 | AT-SPI Python bindings. | |
108 | ||
109 | %description -n python-pyatspi -l pl.UTF-8 | |
110 | Wiązania AT-SPI dla Pythona. | |
6b564294 | 111 | |
1ed60eac AF |
112 | %prep |
113 | %setup -q | |
114 | ||
115 | %build | |
0b8fc293 MB |
116 | %{__glib_gettextize} |
117 | %{__intltoolize} | |
b4b6efd9 | 118 | %{__libtoolize} |
89f121e8 | 119 | %{__aclocal} |
b4b6efd9 | 120 | %{__automake} |
121 | %{__autoconf} | |
28b697dc | 122 | %configure \ |
dc4a0092 | 123 | %{!?with_static_libs:--disable-static} \ |
28c0711b | 124 | --enable-gtk-doc \ |
dc4a0092 | 125 | --enable-static \ |
126 | --with-html-dir=%{_gtkdocdir} | |
1ed60eac AF |
127 | %{__make} |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 131 | |
1ed60eac AF |
132 | %{__make} install \ |
133 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 134 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 135 | |
5c63673f JB |
136 | # no static modules |
137 | rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a} | |
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] |