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