]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: Assistive Technology Service Provider Interface | |
6 | Summary(pl.UTF-8): Interfejs pozwalający na korzystanie z urządzeń wspomagających | |
7 | Name: at-spi | |
8 | Version: 1.24.0 | |
9 | Release: 2 | |
10 | License: LGPL v2+ | |
11 | Group: X11/Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi/1.24/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: e546a35e21d127b502a3c57550a189a0 | |
14 | URL: http://developer.gnome.org/projects/gap/ | |
15 | BuildRequires: GConf2-devel >= 2.24.0 | |
16 | BuildRequires: ORBit2-devel >= 2.14.10 | |
17 | BuildRequires: atk-devel >= 1:1.24.0 | |
18 | BuildRequires: autoconf | |
19 | BuildRequires: automake | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: gnome-common >= 2.20.0 | |
22 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
23 | BuildRequires: gtk-doc >= 1.8 | |
24 | BuildRequires: intltool >= 0.36.2 | |
25 | BuildRequires: libbonobo-devel >= 2.24.0 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: popt-devel | |
29 | BuildRequires: rpm-build >= 4.1-10 | |
30 | BuildRequires: rpmbuild(macros) >= 1.219 | |
31 | BuildRequires: xorg-lib-libXevie-devel | |
32 | BuildRequires: xorg-lib-libXft-devel >= 2.1 | |
33 | BuildRequires: xorg-lib-libXtst-devel | |
34 | Requires(post,postun): /sbin/ldconfig | |
35 | Requires(post,preun): GConf2 | |
36 | Obsoletes: libat-spi1 | |
37 | # sr@Latn vs. sr@latin | |
38 | Conflicts: glibc-misc < 6:2.7 | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | AT-SPI allows assistive technologies to access GTK-based applications. | |
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. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | AT-SPI pozwala na korzystanie z urządzeń wspomagających w celu dostępu | |
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. | |
53 | ||
54 | %package devel | |
55 | Summary: AT-SPI development files | |
56 | Summary(pl.UTF-8): Pliki programistyczne AT-SPI | |
57 | Group: X11/Development/Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Requires: ORBit2-devel >= 2.14.10 | |
60 | Requires: atk-devel >= 1:1.24.0 | |
61 | Requires: gtk+2-devel >= 2:2.14.0 | |
62 | Requires: libbonobo-devel >= 2.24.0 | |
63 | Obsoletes: libat-spi1-devel | |
64 | ||
65 | %description devel | |
66 | AT-SPI development files. | |
67 | ||
68 | %description devel -l pl.UTF-8 | |
69 | Pliki programistyczne AT-SPI. | |
70 | ||
71 | %package static | |
72 | Summary: AT-SPI static library | |
73 | Summary(pl.UTF-8): Statyczna biblioteka AT-SPI | |
74 | Group: X11/Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | AT-SPI static library. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Statyczna biblioteka AT-SPI. | |
82 | ||
83 | %package apidocs | |
84 | Summary: AT-SPI API documentation | |
85 | Summary(pl.UTF-8): Dokumentacja API AT-SPI | |
86 | Group: Documentation | |
87 | Requires: gtk-doc-common | |
88 | ||
89 | %description apidocs | |
90 | AT-SPI API documentation. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
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. | |
106 | ||
107 | %prep | |
108 | %setup -q | |
109 | ||
110 | %build | |
111 | %{__glib_gettextize} | |
112 | %{__intltoolize} | |
113 | %{__libtoolize} | |
114 | %{__aclocal} | |
115 | %{__automake} | |
116 | %{__autoconf} | |
117 | %configure \ | |
118 | %{!?with_static_libs:--disable-static} \ | |
119 | --enable-gtk-doc \ | |
120 | --enable-static \ | |
121 | --with-html-dir=%{_gtkdocdir} | |
122 | %{__make} | |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT \ | |
129 | HTML_DIR=%{_gtkdocdir} | |
130 | ||
131 | # no static modules | |
132 | rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a} | |
133 | ||
134 | mv $RPM_BUILD_ROOT%{_datadir}/locale/nds{_DE,} | |
135 | ||
136 | %py_postclean | |
137 | ||
138 | %find_lang %{name} | |
139 | ||
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %gconf_schema_install at-spi.schemas | |
145 | /sbin/ldconfig | |
146 | ||
147 | %preun | |
148 | %gconf_schema_uninstall at-spi.schemas | |
149 | ||
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %files -f %{name}.lang | |
153 | %defattr(644,root,root,755) | |
154 | %attr(755,root,root) %{_libdir}/libcspi.so.*.*.* | |
155 | %attr(755,root,root) %ghost %{_libdir}/libcspi.so.0 | |
156 | %attr(755,root,root) %{_libdir}/libloginhelper.so.*.*.* | |
157 | %attr(755,root,root) %ghost %{_libdir}/libloginhelper.so.0 | |
158 | %attr(755,root,root) %{_libdir}/libspi.so.*.*.* | |
159 | %attr(755,root,root) %ghost %{_libdir}/libspi.so.0 | |
160 | %attr(755,root,root) %{_libexecdir}/at-spi-registryd | |
161 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_LoginHelper_module.so | |
162 | %attr(755,root,root) %{_libdir}/orbit-2.0/Accessibility_module.so | |
163 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so | |
164 | %{_sysconfdir}/gconf/schemas/at-spi.schemas | |
165 | %{_libdir}/bonobo/servers/Accessibility_Registry.server | |
166 | %{_datadir}/idl/at-spi-1.0 | |
167 | ||
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_libdir}/libcspi.so | |
171 | %attr(755,root,root) %{_libdir}/libloginhelper.so | |
172 | %attr(755,root,root) %{_libdir}/libspi.so | |
173 | %{_includedir}/at-spi-1.0 | |
174 | %{_libdir}/libcspi.la | |
175 | %{_libdir}/libloginhelper.la | |
176 | %{_libdir}/libspi.la | |
177 | %{_pkgconfigdir}/cspi-1.0.pc | |
178 | %{_pkgconfigdir}/libloginhelper-1.0.pc | |
179 | %{_pkgconfigdir}/libspi-1.0.pc | |
180 | ||
181 | %if %{with static_libs} | |
182 | %files static | |
183 | %defattr(644,root,root,755) | |
184 | %{_libdir}/libcspi.a | |
185 | %{_libdir}/libloginhelper.a | |
186 | %{_libdir}/libspi.a | |
187 | %endif | |
188 | ||
189 | %files apidocs | |
190 | %defattr(644,root,root,755) | |
191 | %{_gtkdocdir}/at-spi-cspi | |
192 | %{_docdir}/%{name}-%{version} | |
193 | ||
194 | %files -n python-pyatspi | |
195 | %defattr(644,root,root,755) | |
196 | %dir %{py_sitedir}/pyatspi | |
197 | %{py_sitedir}/pyatspi/*.py[co] |