]>
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 |
7522b870 | 8 | Version: 1.23.92 |
0c33fbc7 | 9 | Release: 1 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
6065e481 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.23/%{name}-%{version}.tar.bz2 |
7522b870 | 13 | # Source0-md5: e1c7bbf6eb19b9ca9c509acb238e5c56 |
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 | |
1ed60eac | 39 | %description |
8603da1f | 40 | AT-SPI allows assistive technologies to access GTK-based applications. |
0b8fc293 MB |
41 | Essentially it exposes the internals of applications for automation, |
42 | so tools such as screen readers, magnifiers, or even scripting | |
43 | interfaces can query and interact with GUI controls. | |
1ed60eac | 44 | |
89a18d38 | 45 | %description -l pl.UTF-8 |
8603da1f | 46 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu |
89a18d38 JR |
47 | do aplikacji bazujących na GTK. Przede wszystkim udostępnia wewnętrzne |
48 | interfejsy aplikacji dla automatyzacji, więc urządzenia takie jak | |
49 | czytniki ekranu, lupy, czy nawet interfejsy skryptowe mogą odpytywać i | |
50 | współpracować z kontrolkami interfejsu graficznego. | |
5747353d | 51 | |
1ed60eac | 52 | %package devel |
8603da1f MB |
53 | Summary: AT-SPI development files |
54 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
65c7fc20 | 55 | Group: X11/Development/Libraries |
28c0711b | 56 | Requires: %{name} = %{version}-%{release} |
0c33fbc7 MB |
57 | Requires: ORBit2-devel >= 2.14.10 |
58 | Requires: atk-devel >= 1:1.22.0 | |
59 | Requires: gtk+2-devel >= 2:2.12.8 | |
6baab64c | 60 | Requires: libbonobo-devel >= 2.22.0 |
65c7fc20 | 61 | Obsoletes: libat-spi1-devel |
1ed60eac AF |
62 | |
63 | %description devel | |
8603da1f | 64 | AT-SPI development files. |
1ed60eac | 65 | |
89a18d38 | 66 | %description devel -l pl.UTF-8 |
8603da1f | 67 | Pliki programistyczne AT-SPI. |
5747353d | 68 | |
1ed60eac | 69 | %package static |
8603da1f MB |
70 | Summary: AT-SPI static library |
71 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
65c7fc20 | 72 | Group: X11/Development/Libraries |
28c0711b | 73 | Requires: %{name}-devel = %{version}-%{release} |
1ed60eac AF |
74 | |
75 | %description static | |
8603da1f | 76 | AT-SPI static library. |
1ed60eac | 77 | |
89a18d38 | 78 | %description static -l pl.UTF-8 |
8603da1f | 79 | Statyczna biblioteka AT-SPI. |
5747353d | 80 | |
6b564294 | 81 | %package apidocs |
8603da1f MB |
82 | Summary: AT-SPI API documentation |
83 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
6b564294 | 84 | Group: Documentation |
85 | Requires: gtk-doc-common | |
86 | ||
87 | %description apidocs | |
8603da1f | 88 | AT-SPI API documentation. |
6b564294 | 89 | |
89a18d38 | 90 | %description apidocs -l pl.UTF-8 |
8603da1f MB |
91 | Dokumentacja API AT-SPI. |
92 | ||
93 | %package -n python-pyatspi | |
94 | Summary: AT-SPI Python bindings | |
95 | Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona | |
96 | Group: Development/Languages/Python | |
97 | Requires: python-pyorbit | |
98 | ||
99 | %description -n python-pyatspi | |
100 | AT-SPI Python bindings. | |
101 | ||
102 | %description -n python-pyatspi -l pl.UTF-8 | |
103 | Wiązania AT-SPI dla Pythona. | |
6b564294 | 104 | |
1ed60eac AF |
105 | %prep |
106 | %setup -q | |
107 | ||
108 | %build | |
0b8fc293 MB |
109 | %{__glib_gettextize} |
110 | %{__intltoolize} | |
b4b6efd9 | 111 | %{__libtoolize} |
89f121e8 | 112 | %{__aclocal} |
b4b6efd9 | 113 | %{__automake} |
114 | %{__autoconf} | |
28b697dc | 115 | %configure \ |
dc4a0092 | 116 | %{!?with_static_libs:--disable-static} \ |
28c0711b | 117 | --enable-gtk-doc \ |
dc4a0092 | 118 | --enable-static \ |
119 | --with-html-dir=%{_gtkdocdir} | |
1ed60eac AF |
120 | %{__make} |
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 124 | |
1ed60eac AF |
125 | %{__make} install \ |
126 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 127 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 128 | |
5c63673f JB |
129 | # no static modules |
130 | rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a} | |
131 | ||
d71c4e95 MB |
132 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ps |
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 | |
0c33fbc7 MB |
154 | %attr(755,root,root) %{_libexecdir}/at-spi-registryd |
155 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_LoginHelper_module.so | |
156 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_module.so | |
157 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
158 | %{_libdir}/bonobo/servers/Accessibility_Registry.server | |
159 | %{_datadir}/idl/at-spi-1.0 | |
1ed60eac AF |
160 | |
161 | %files devel | |
162 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
163 | %attr(755,root,root) %{_libdir}/libcspi.so |
164 | %attr(755,root,root) %{_libdir}/libloginhelper.so | |
165 | %attr(755,root,root) %{_libdir}/libspi.so | |
166 | %{_includedir}/at-spi-1.0 | |
167 | %{_libdir}/libcspi.la | |
168 | %{_libdir}/libloginhelper.la | |
169 | %{_libdir}/libspi.la | |
170 | %{_pkgconfigdir}/cspi-1.0.pc | |
171 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
172 | %{_pkgconfigdir}/libspi-1.0.pc | |
1ed60eac | 173 | |
8d2fd974 | 174 | %if %{with static_libs} |
1ed60eac AF |
175 | %files static |
176 | %defattr(644,root,root,755) | |
0c33fbc7 MB |
177 | %{_libdir}/libcspi.a |
178 | %{_libdir}/libloginhelper.a | |
179 | %{_libdir}/libspi.a | |
8d2fd974 | 180 | %endif |
6b564294 | 181 | |
182 | %files apidocs | |
183 | %defattr(644,root,root,755) | |
0c33fbc7 | 184 | %{_gtkdocdir}/at-spi-cspi |
6b564294 | 185 | %{_docdir}/%{name}-%{version} |
8603da1f MB |
186 | |
187 | %files -n python-pyatspi | |
188 | %defattr(644,root,root,755) | |
189 | %dir %{py_sitedir}/pyatspi | |
190 | %{py_sitedir}/pyatspi/*.py[co] |