]>
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 |
df177348 | 8 | Version: 1.20.0 |
dc4a0092 | 9 | Release: 1 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
df177348 PZ |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.20/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: fd1f916463f379b435399e2b2075742f | |
5747353d | 14 | URL: http://developer.gnome.org/projects/gap/ |
8603da1f | 15 | BuildRequires: ORBit2-devel >= 2.14.9 |
df177348 | 16 | BuildRequires: atk-devel >= 1:1.20.0 |
3d8e3102 JB |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
df177348 PZ |
19 | BuildRequires: gail-devel >= 1.20.0 |
20 | BuildRequires: gnome-common >= 2.18.0 | |
8603da1f | 21 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
0b8fc293 | 22 | BuildRequires: gtk-doc >= 1.8 |
8603da1f MB |
23 | BuildRequires: intltool >= 0.36.2 |
24 | BuildRequires: libbonobo-devel >= 2.20.0 | |
3d8e3102 | 25 | BuildRequires: libtool |
81dc3929 | 26 | BuildRequires: pkgconfig |
0b8fc293 | 27 | BuildRequires: popt-devel |
59211053 | 28 | BuildRequires: rpm-build >= 4.1-10 |
8603da1f | 29 | BuildRequires: rpmbuild(macros) >= 1.219 |
0b8fc293 | 30 | BuildRequires: xorg-lib-libXevie-devel |
50b7342e | 31 | BuildRequires: xorg-lib-libXft-devel >= 2.1 |
32 | BuildRequires: xorg-lib-libXtst-devel | |
65c7fc20 | 33 | Obsoletes: libat-spi1 |
f457a051 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1ed60eac | 35 | |
1ed60eac | 36 | %description |
8603da1f | 37 | AT-SPI allows assistive technologies to access GTK-based applications. |
0b8fc293 MB |
38 | Essentially it exposes the internals of applications for automation, |
39 | so tools such as screen readers, magnifiers, or even scripting | |
40 | interfaces can query and interact with GUI controls. | |
1ed60eac | 41 | |
89a18d38 | 42 | %description -l pl.UTF-8 |
8603da1f | 43 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu |
89a18d38 JR |
44 | do aplikacji bazujących na GTK. Przede wszystkim udostępnia wewnętrzne |
45 | interfejsy aplikacji dla automatyzacji, więc urządzenia takie jak | |
46 | czytniki ekranu, lupy, czy nawet interfejsy skryptowe mogą odpytywać i | |
47 | współpracować z kontrolkami interfejsu graficznego. | |
5747353d | 48 | |
1ed60eac | 49 | %package devel |
8603da1f MB |
50 | Summary: AT-SPI development files |
51 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
65c7fc20 | 52 | Group: X11/Development/Libraries |
28c0711b | 53 | Requires: %{name} = %{version}-%{release} |
8603da1f MB |
54 | Requires: ORBit2-devel >= 2.14.9 |
55 | Requires: atk-devel >= 1:1.20.0 | |
56 | Requires: gail-devel >= 1.20.0 | |
57 | Requires: gtk+2-devel >= 2:2.12.0 | |
58 | Requires: libbonobo-devel >= 2.20.0 | |
65c7fc20 | 59 | Obsoletes: libat-spi1-devel |
1ed60eac AF |
60 | |
61 | %description devel | |
8603da1f | 62 | AT-SPI development files. |
1ed60eac | 63 | |
89a18d38 | 64 | %description devel -l pl.UTF-8 |
8603da1f | 65 | Pliki programistyczne AT-SPI. |
5747353d | 66 | |
1ed60eac | 67 | %package static |
8603da1f MB |
68 | Summary: AT-SPI static library |
69 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
65c7fc20 | 70 | Group: X11/Development/Libraries |
28c0711b | 71 | Requires: %{name}-devel = %{version}-%{release} |
1ed60eac AF |
72 | |
73 | %description static | |
8603da1f | 74 | AT-SPI static library. |
1ed60eac | 75 | |
89a18d38 | 76 | %description static -l pl.UTF-8 |
8603da1f | 77 | Statyczna biblioteka AT-SPI. |
5747353d | 78 | |
6b564294 | 79 | %package apidocs |
8603da1f MB |
80 | Summary: AT-SPI API documentation |
81 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
6b564294 | 82 | Group: Documentation |
83 | Requires: gtk-doc-common | |
84 | ||
85 | %description apidocs | |
8603da1f | 86 | AT-SPI API documentation. |
6b564294 | 87 | |
89a18d38 | 88 | %description apidocs -l pl.UTF-8 |
8603da1f MB |
89 | Dokumentacja API AT-SPI. |
90 | ||
91 | %package -n python-pyatspi | |
92 | Summary: AT-SPI Python bindings | |
93 | Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona | |
94 | Group: Development/Languages/Python | |
95 | Requires: python-pyorbit | |
96 | ||
97 | %description -n python-pyatspi | |
98 | AT-SPI Python bindings. | |
99 | ||
100 | %description -n python-pyatspi -l pl.UTF-8 | |
101 | Wiązania AT-SPI dla Pythona. | |
6b564294 | 102 | |
1ed60eac AF |
103 | %prep |
104 | %setup -q | |
105 | ||
106 | %build | |
0b8fc293 MB |
107 | %{__glib_gettextize} |
108 | %{__intltoolize} | |
b4b6efd9 | 109 | %{__libtoolize} |
89f121e8 | 110 | %{__aclocal} |
b4b6efd9 | 111 | %{__automake} |
112 | %{__autoconf} | |
28b697dc | 113 | %configure \ |
dc4a0092 | 114 | %{!?with_static_libs:--disable-static} \ |
28c0711b | 115 | --enable-gtk-doc \ |
dc4a0092 | 116 | --enable-static \ |
117 | --with-html-dir=%{_gtkdocdir} | |
1ed60eac AF |
118 | %{__make} |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
3d8e3102 | 122 | |
1ed60eac AF |
123 | %{__make} install \ |
124 | DESTDIR=$RPM_BUILD_ROOT \ | |
28d377be | 125 | HTML_DIR=%{_gtkdocdir} |
1ed60eac | 126 | |
5c63673f JB |
127 | # no static modules |
128 | rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a} | |
129 | ||
8603da1f MB |
130 | %py_postclean |
131 | ||
50b7342e | 132 | %find_lang %{name} |
133 | ||
1ed60eac AF |
134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
5aa4de25 | 137 | %post -p /sbin/ldconfig |
138 | %postun -p /sbin/ldconfig | |
1ed60eac | 139 | |
50b7342e | 140 | %files -f %{name}.lang |
1ed60eac | 141 | %defattr(644,root,root,755) |
dc4a0092 | 142 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
e0fa1993 | 143 | %attr(755,root,root) %{_libdir}/at-spi-registryd |
dc4a0092 | 144 | %attr(755,root,root) %{_libdir}/orbit-2.0/*.so |
e0fa1993 | 145 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so |
146 | %{_libdir}/bonobo/servers/* | |
147 | %{_datadir}/idl/* | |
1ed60eac AF |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
1ed60eac | 151 | %{_includedir}/* |
dc4a0092 | 152 | %attr(755,root,root) %{_libdir}/lib*.so |
153 | %{_libdir}/lib*.la | |
1ed60eac AF |
154 | %{_pkgconfigdir}/* |
155 | ||
8d2fd974 | 156 | %if %{with static_libs} |
1ed60eac AF |
157 | %files static |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/*.a | |
8d2fd974 | 160 | %endif |
6b564294 | 161 | |
162 | %files apidocs | |
163 | %defattr(644,root,root,755) | |
164 | %{_gtkdocdir}/* | |
165 | %{_docdir}/%{name}-%{version} | |
8603da1f MB |
166 | |
167 | %files -n python-pyatspi | |
168 | %defattr(644,root,root,755) | |
169 | %dir %{py_sitedir}/pyatspi | |
170 | %{py_sitedir}/pyatspi/*.py[co] |