]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # Valadoc documentation | |
4 | ||
5 | Summary: On-screen keyboard | |
6 | Summary(pl.UTF-8): Klawiatura ekranowa | |
7 | Name: caribou | |
8 | Version: 0.4.21 | |
9 | Release: 1 | |
10 | License: LGPL v2+ | |
11 | Group: X11/Applications/Accessibility | |
12 | Source0: https://download.gnome.org/sources/caribou/0.4/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 16b76cd7453b99e2871e8d4da88bf976 | |
14 | Patch0: %{name}-docs.patch | |
15 | URL: https://wiki.gnome.org/Projects/Caribou | |
16 | BuildRequires: at-spi2-core-devel >= 2 | |
17 | BuildRequires: autoconf >= 2.63 | |
18 | BuildRequires: automake >= 1:1.11 | |
19 | BuildRequires: clutter-devel >= 1.6.0 | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glib2-devel >= 1:2.30.0 | |
22 | BuildRequires: gobject-introspection-devel >= 0.10.7 | |
23 | BuildRequires: gtk+2-devel >= 2.0.0 | |
24 | BuildRequires: gtk+3-devel >= 3.0.0 | |
25 | BuildRequires: intltool >= 0.40.0 | |
26 | BuildRequires: libgee-devel >= 0.8 | |
27 | BuildRequires: libxklavier-devel | |
28 | BuildRequires: libxml2-devel | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: python >= 1:2.4 | |
31 | BuildRequires: python-pygobject3-devel >= 3.0.0 | |
32 | BuildRequires: rpmbuild(macros) >= 1.752 | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: vala >= 2:0.14.0 | |
35 | BuildRequires: vala-libgee >= 0.8 | |
36 | # -devel is just for .pc file | |
37 | %{?with_apidocs:BuildRequires: valadoc-devel >= 0.3.1} | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libXtst-devel | |
40 | BuildRequires: xz | |
41 | Requires(post,postun): glib2 >= 1:2.30.0 | |
42 | Requires: clutter >= 1.6.0 | |
43 | Requires: glib2 >= 1:2.30.0 | |
44 | Requires: gobject-introspection >= 0.10.7 | |
45 | Requires: python-caribou = %{version}-%{release} | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | Caribou is an on-screen keyboard suitable for people who can use a | |
50 | mouse but not a hardware keyboard. This on-screen keyboard may also be | |
51 | useful for touch screen or tablet users. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Caribou jest klawiaturą ekranową odpowiednią dla ludzi, którzy nie | |
55 | mogą użyć zwykłej klawiatury, a tylko mysz. Może być również pomocna | |
56 | dla użytkowników ekranów dotykowych oraz tabletów. | |
57 | ||
58 | %package libs | |
59 | Summary: Caribou virtual on-screen keyboard library | |
60 | Summary(pl.UTF-8): Biblioteka wirtualnej klawiatury na ekranie Caribou | |
61 | Group: X11/Libraries | |
62 | Conflicts: caribou < 0.4.19 | |
63 | ||
64 | %description libs | |
65 | Caribou virtual on-screen keyboard library. | |
66 | ||
67 | %description libs -l pl.UTF-8 | |
68 | Biblioteka wirtualnej klawiatury na ekranie Caribou. | |
69 | ||
70 | %package devel | |
71 | Summary: Development files for Caribou | |
72 | Summary(pl.UTF-8): Pliki programistyczne dla Caribou | |
73 | Group: X11/Development/Libraries | |
74 | Requires: %{name}-libs = %{version}-%{release} | |
75 | Requires: gtk+3-devel | |
76 | Requires: libgee-devel >= 0.8 | |
77 | Requires: libxklavier-devel | |
78 | Requires: libxml2-devel >= 2.0 | |
79 | Requires: xorg-lib-libXtst-devel | |
80 | ||
81 | %description devel | |
82 | This package provides development files for Caribou. | |
83 | ||
84 | %description devel -l pl.UTF-8 | |
85 | Ten pakiet dostarcza pliki programistyczne dla Caribou. | |
86 | ||
87 | %package apidocs | |
88 | Summary: API documentation for Caribou library | |
89 | Summary(pl.UTF-8): Dokumentacja API biblioteki Caribou | |
90 | Group: Documentation | |
91 | BuildArch: noarch | |
92 | ||
93 | %description apidocs | |
94 | API documentation for Caribou library. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API biblioteki Caribou. | |
98 | ||
99 | %package -n python-caribou | |
100 | Summary: Keyboard UI for Caribou | |
101 | Summary(pl.UTF-8): Interfejs użytkownika klawiatury dla Caribou | |
102 | Group: Development/Languages/Python | |
103 | Requires: %{name}-libs = %{version}-%{release} | |
104 | Requires: python-modules >= 1:2.4 | |
105 | Requires: python-pyatspi >= 2.2.0 | |
106 | Requires: python-pygobject3 >= 3.0.0 | |
107 | ||
108 | %description -n python-caribou | |
109 | This package contains Caribou Python GUI. | |
110 | ||
111 | %description -n python-caribou -l pl.UTF-8 | |
112 | Ten pakiet zawiera graficzny interfejs użytkownika Caribou w Pythonie. | |
113 | ||
114 | %package -n vala-caribou | |
115 | Summary: Vala API for Caribou library | |
116 | Summary(pl.UTF-8): API języka Vala do biblioteki Caribou | |
117 | Group: Development/Libraries | |
118 | Requires: %{name}-devel = %{version}-%{release} | |
119 | Requires: vala >= 2:0.14.0 | |
120 | Requires: vala-libgee >= 0.8 | |
121 | BuildArch: noarch | |
122 | ||
123 | %description -n vala-caribou | |
124 | Vala API for Caribou library. | |
125 | ||
126 | %description -n vala-caribou -l pl.UTF-8 | |
127 | API języka Vala do biblioteki Caribou. | |
128 | ||
129 | %package gtk2-module | |
130 | Summary: Caribou IM module for GTK+ 2 | |
131 | Summary(pl.UTF-8): Moduł IM Caribou dla GTK+ 2 | |
132 | Group: Libraries | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | Requires: gtk+2 >= 2.0.0 | |
135 | ||
136 | %description gtk2-module | |
137 | This package contains Caribou IM module for GTK+ 2. | |
138 | ||
139 | %description gtk2-module -l pl.UTF-8 | |
140 | Ten pakiet zawiera moduł IM Caribou dla GTK+ 2. | |
141 | ||
142 | %package gtk3-module | |
143 | Summary: Caribou IM module for GTK+ 3 | |
144 | Summary(pl.UTF-8): Moduł IM Caribou dla GTK+ 3 | |
145 | Group: Libraries | |
146 | Requires: %{name} = %{version}-%{release} | |
147 | Requires: gtk+3 >= 3.0.0 | |
148 | ||
149 | %description gtk3-module | |
150 | This package contains Caribou IM module for GTK+ 3. | |
151 | ||
152 | %description gtk3-module -l pl.UTF-8 | |
153 | Ten pakiet zawiera moduł IM Caribou dla GTK+ 3. | |
154 | ||
155 | %package antler | |
156 | Summary: Keyboard implementation for Caribou | |
157 | Summary(pl.UTF-8): Implementacja klawiatury dla Caribou | |
158 | Group: X11/Applications | |
159 | Requires: %{name} = %{version}-%{release} | |
160 | Requires: python-caribou = %{version}-%{release} | |
161 | ||
162 | %description antler | |
163 | This package contains Caribou keyboard implementation. | |
164 | ||
165 | %description antler -l pl.UTF-8 | |
166 | Ten pakiet zawiera implementację klawiatury Caribou. | |
167 | ||
168 | %prep | |
169 | %setup -q | |
170 | %patch0 -p1 | |
171 | ||
172 | %build | |
173 | %{__libtoolize} | |
174 | %{__aclocal} -I m4 | |
175 | %{__autoconf} | |
176 | %{__automake} | |
177 | %configure \ | |
178 | %{?with_apidocs:--enable-docs} \ | |
179 | --disable-silent-rules \ | |
180 | --disable-static | |
181 | %{__make} | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT \ | |
188 | caribougtkdocdir=%{_gtkdocdir}/caribou | |
189 | ||
190 | %find_lang %{name} | |
191 | ||
192 | %py_postclean | |
193 | ||
194 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-*/modules/libcaribou-gtk-module.la | |
195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
196 | ||
197 | %clean | |
198 | rm -rf $RPM_BUILD_ROOT | |
199 | ||
200 | %postun | |
201 | if [ $1 -eq 0 ] ; then | |
202 | %glib_compile_schemas | |
203 | fi | |
204 | ||
205 | %posttrans | |
206 | %glib_compile_schemas | |
207 | ||
208 | %post libs -p /sbin/ldconfig | |
209 | %postun libs -p /sbin/ldconfig | |
210 | ||
211 | %files -f %{name}.lang | |
212 | %defattr(644,root,root,755) | |
213 | %doc AUTHORS ChangeLog NEWS README | |
214 | %attr(755,root,root) %{_bindir}/caribou-preferences | |
215 | %attr(755,root,root) %{_libexecdir}/caribou | |
216 | %{_datadir}/caribou | |
217 | %{_datadir}/dbus-1/services/org.gnome.Caribou.Daemon.service | |
218 | %{_datadir}/glib-2.0/schemas/org.gnome.caribou.gschema.xml | |
219 | %{_sysconfdir}/xdg/autostart/caribou-autostart.desktop | |
220 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/caribou-gtk-module.desktop | |
221 | ||
222 | %files libs | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/libcaribou.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libcaribou.so.0 | |
226 | %{_libdir}/girepository-1.0/Caribou-1.0.typelib | |
227 | ||
228 | %files devel | |
229 | %defattr(644,root,root,755) | |
230 | %attr(755,root,root) %{_libdir}/libcaribou.so | |
231 | %{_includedir}/libcaribou | |
232 | %{_datadir}/gir-1.0/Caribou-1.0.gir | |
233 | %{_pkgconfigdir}/caribou-1.0.pc | |
234 | ||
235 | %if %{with apidocs} | |
236 | %files apidocs | |
237 | %defattr(644,root,root,755) | |
238 | %{_gtkdocdir}/caribou | |
239 | %{_datadir}/devhelp/references/caribou | |
240 | %endif | |
241 | ||
242 | %files -n python-caribou | |
243 | %defattr(644,root,root,755) | |
244 | %{py_sitescriptdir}/caribou | |
245 | ||
246 | %files -n vala-caribou | |
247 | %defattr(644,root,root,755) | |
248 | %{_datadir}/vala/vapi/caribou-1.0.deps | |
249 | %{_datadir}/vala/vapi/caribou-1.0.vapi | |
250 | ||
251 | %files gtk2-module | |
252 | %defattr(644,root,root,755) | |
253 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libcaribou-gtk-module.so | |
254 | ||
255 | %files gtk3-module | |
256 | %defattr(644,root,root,755) | |
257 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libcaribou-gtk-module.so | |
258 | ||
259 | %files antler | |
260 | %defattr(644,root,root,755) | |
261 | %{_datadir}/antler | |
262 | %{_datadir}/dbus-1/services/org.gnome.Caribou.Antler.service | |
263 | %attr(755,root,root) %{_libexecdir}/antler-keyboard | |
264 | %{_datadir}/glib-2.0/schemas/org.gnome.antler.gschema.xml |