]>
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 |
6baab64c | 8 | Version: 1.22.1 |
0c33fbc7 | 9 | Release: 1 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
0c33fbc7 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.22/%{name}-%{version}.tar.bz2 |
6baab64c | 13 | # Source0-md5: 2ee1b35ef25e753e6bac840a418608f5 |
5747353d | 14 | URL: http://developer.gnome.org/projects/gap/ |
0c33fbc7 MB |
15 | BuildRequires: ORBit2-devel >= 2.14.10 |
16 | BuildRequires: atk-devel >= 1:1.22.0 | |
3d8e3102 JB |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
0c33fbc7 MB |
19 | BuildRequires: gail-devel >= 1.22.0 |
20 | BuildRequires: gettext-devel | |
853a31c3 | 21 | BuildRequires: gnome-common >= 2.20.0 |
0c33fbc7 | 22 | BuildRequires: gtk+2-devel >= 2:2.12.8 |
0b8fc293 | 23 | BuildRequires: gtk-doc >= 1.8 |
8603da1f | 24 | BuildRequires: intltool >= 0.36.2 |
6baab64c | 25 | BuildRequires: libbonobo-devel >= 2.22.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 | |
65c7fc20 | 34 | Obsoletes: libat-spi1 |
677d4012 | 35 | # sr@Latn vs. sr@latin |
36 | Conflicts: glibc-misc < 6:2.7 | |
f457a051 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1ed60eac | 38 | |
0c33fbc7 MB |
39 | %define _libexecdir %{_libdir}/%{name} |
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 MB |
59 | Requires: ORBit2-devel >= 2.14.10 |
60 | Requires: atk-devel >= 1:1.22.0 | |
61 | Requires: gtk+2-devel >= 2:2.12.8 | |
6baab64c | 62 | Requires: libbonobo-devel >= 2.22.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 | |
100 | ||
101 | %description -n python-pyatspi | |
102 | AT-SPI Python bindings. | |
103 | ||
104 | %description -n python-pyatspi -l pl.UTF-8 | |
105 | Wiązania AT-SPI dla Pythona. | |
6b564294 | 106 | |
1ed60eac AF |
107 | %prep |
108 | %setup -q | |
109 | ||
110 | %build | |
0b8fc293 MB |
111 | %{__glib_gettextize} |
112 | %{__intltoolize} | |
b4b6efd9 | 113 | %{__libtoolize} |
89f121e8 | 114 | %{__aclocal} |
b4b6efd9 | 115 | %{__automake} |
116 | %{__autoconf} | |
28b697dc | 117 | %configure \ |
dc4a0092 | 118 | %{!?with_static_libs:--disable-static} \ |
28c0711b | 119 | --enable-gtk-doc \ |
dc4a0092 | 120 | --enable-static \ |
121 | --with-html-dir=%{_gtkdocdir} | |
1ed60eac AF |
122 | %{__make} |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 126 | |
1ed60eac AF |
127 | %{__make} install \ |
128 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 129 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 130 | |
5c63673f JB |
131 | # no static modules |
132 | rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a} | |
133 | ||
8603da1f MB |
134 | %py_postclean |
135 | ||
677d4012 | 136 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
137 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
50b7342e | 138 | %find_lang %{name} |
139 | ||
1ed60eac AF |
140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
5aa4de25 | 143 | %post -p /sbin/ldconfig |
144 | %postun -p /sbin/ldconfig | |
1ed60eac | 145 | |
50b7342e | 146 | %files -f %{name}.lang |
1ed60eac | 147 | %defattr(644,root,root,755) |
0c33fbc7 MB |
148 | %attr(755,root,root) %{_libdir}/libcspi.so.*.*.* |
149 | %attr(755,root,root) %ghost %{_libdir}/libcspi.so.0 | |
150 | %attr(755,root,root) %{_libdir}/libloginhelper.so.*.*.* | |
151 | %attr(755,root,root) %ghost %{_libdir}/libloginhelper.so.0 | |
152 | %attr(755,root,root) %{_libdir}/libspi.so.*.*.* | |
153 | %attr(755,root,root) %ghost %{_libdir}/libspi.so.0 | |
154 | %dir %{_libexecdir} | |
155 | %attr(755,root,root) %{_libexecdir}/at-spi-registryd | |
156 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_LoginHelper_module.so | |
157 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_module.so | |
158 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
159 | %{_libdir}/bonobo/servers/Accessibility_Registry.server | |
160 | %{_datadir}/idl/at-spi-1.0 | |
1ed60eac AF |
161 | |
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
164 | %attr(755,root,root) %{_libdir}/libcspi.so |
165 | %attr(755,root,root) %{_libdir}/libloginhelper.so | |
166 | %attr(755,root,root) %{_libdir}/libspi.so | |
167 | %{_includedir}/at-spi-1.0 | |
168 | %{_libdir}/libcspi.la | |
169 | %{_libdir}/libloginhelper.la | |
170 | %{_libdir}/libspi.la | |
171 | %{_pkgconfigdir}/cspi-1.0.pc | |
172 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
173 | %{_pkgconfigdir}/libspi-1.0.pc | |
1ed60eac | 174 | |
8d2fd974 | 175 | %if %{with static_libs} |
1ed60eac AF |
176 | %files static |
177 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
178 | %{_libdir}/libcspi.a |
179 | %{_libdir}/libloginhelper.a | |
180 | %{_libdir}/libspi.a | |
8d2fd974 | 181 | %endif |
6b564294 | 182 | |
183 | %files apidocs | |
184 | %defattr(644,root,root,755) | |
0c33fbc7 | 185 | %{_gtkdocdir}/at-spi-cspi |
6b564294 | 186 | %{_docdir}/%{name}-%{version} |
8603da1f MB |
187 | |
188 | %files -n python-pyatspi | |
189 | %defattr(644,root,root,755) | |
190 | %dir %{py_sitedir}/pyatspi | |
191 | %{py_sitedir}/pyatspi/*.py[co] |