]>
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 |
853a31c3 | 8 | Version: 1.20.1 |
677d4012 | 9 | Release: 2 |
31bcddeb | 10 | License: LGPL v2+ |
65c7fc20 | 11 | Group: X11/Libraries |
df177348 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.20/%{name}-%{version}.tar.bz2 |
853a31c3 | 13 | # Source0-md5: 9dc4ce96c17452cd285d006d03574e93 |
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 | 19 | BuildRequires: gail-devel >= 1.20.0 |
853a31c3 | 20 | BuildRequires: gnome-common >= 2.20.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 |
677d4012 | 34 | # sr@Latn vs. sr@latin |
35 | Conflicts: glibc-misc < 6:2.7 | |
f457a051 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1ed60eac | 37 | |
1ed60eac | 38 | %description |
8603da1f | 39 | AT-SPI allows assistive technologies to access GTK-based applications. |
0b8fc293 MB |
40 | Essentially it exposes the internals of applications for automation, |
41 | so tools such as screen readers, magnifiers, or even scripting | |
42 | interfaces can query and interact with GUI controls. | |
1ed60eac | 43 | |
89a18d38 | 44 | %description -l pl.UTF-8 |
8603da1f | 45 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu |
89a18d38 JR |
46 | do aplikacji bazujących na GTK. Przede wszystkim udostępnia wewnętrzne |
47 | interfejsy aplikacji dla automatyzacji, więc urządzenia takie jak | |
48 | czytniki ekranu, lupy, czy nawet interfejsy skryptowe mogą odpytywać i | |
49 | współpracować z kontrolkami interfejsu graficznego. | |
5747353d | 50 | |
1ed60eac | 51 | %package devel |
8603da1f MB |
52 | Summary: AT-SPI development files |
53 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
65c7fc20 | 54 | Group: X11/Development/Libraries |
28c0711b | 55 | Requires: %{name} = %{version}-%{release} |
8603da1f MB |
56 | Requires: ORBit2-devel >= 2.14.9 |
57 | Requires: atk-devel >= 1:1.20.0 | |
58 | Requires: gail-devel >= 1.20.0 | |
59 | Requires: gtk+2-devel >= 2:2.12.0 | |
60 | Requires: libbonobo-devel >= 2.20.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 | ||
8603da1f MB |
132 | %py_postclean |
133 | ||
677d4012 | 134 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
135 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
50b7342e | 136 | %find_lang %{name} |
137 | ||
1ed60eac AF |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
5aa4de25 | 141 | %post -p /sbin/ldconfig |
142 | %postun -p /sbin/ldconfig | |
1ed60eac | 143 | |
50b7342e | 144 | %files -f %{name}.lang |
1ed60eac | 145 | %defattr(644,root,root,755) |
dc4a0092 | 146 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
e0fa1993 | 147 | %attr(755,root,root) %{_libdir}/at-spi-registryd |
dc4a0092 | 148 | %attr(755,root,root) %{_libdir}/orbit-2.0/*.so |
e0fa1993 | 149 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so |
150 | %{_libdir}/bonobo/servers/* | |
151 | %{_datadir}/idl/* | |
1ed60eac AF |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
1ed60eac | 155 | %{_includedir}/* |
dc4a0092 | 156 | %attr(755,root,root) %{_libdir}/lib*.so |
157 | %{_libdir}/lib*.la | |
1ed60eac AF |
158 | %{_pkgconfigdir}/* |
159 | ||
8d2fd974 | 160 | %if %{with static_libs} |
1ed60eac AF |
161 | %files static |
162 | %defattr(644,root,root,755) | |
163 | %{_libdir}/*.a | |
8d2fd974 | 164 | %endif |
6b564294 | 165 | |
166 | %files apidocs | |
167 | %defattr(644,root,root,755) | |
168 | %{_gtkdocdir}/* | |
169 | %{_docdir}/%{name}-%{version} | |
8603da1f MB |
170 | |
171 | %files -n python-pyatspi | |
172 | %defattr(644,root,root,755) | |
173 | %dir %{py_sitedir}/pyatspi | |
174 | %{py_sitedir}/pyatspi/*.py[co] |