]>
Commit | Line | Data |
---|---|---|
228a8a33 ŁK |
1 | # |
2 | # Conditional build: | |
6874cc51 JB |
3 | %bcond_without gtk2 # GTK+ 2.x variant |
4 | %bcond_without gtk3 # GTK+ 3.x variant | |
5 | %bcond_without vala # Vala API | |
896ba3d7 | 6 | |
6874cc51 JB |
7 | Summary: GTK+ 3 Spell Checker Interface Library |
8 | Summary(pl.UTF-8): Biblioteka z interfejsem do narzędzia sprawdzającego pisownię dla GTK+ 3 | |
85efd45e | 9 | Name: gtkspell3 |
6874cc51 JB |
10 | Version: 3.0.9 |
11 | Release: 1 | |
60100baa | 12 | License: GPL |
60100baa | 13 | Group: X11/Libraries |
6874cc51 JB |
14 | Source0: http://downloads.sourceforge.net/gtkspell/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 22c6c44c7cbebfc02e6255cc151a7967 | |
60100baa | 16 | URL: http://gtkspell.sourceforge.net/ |
b9f8f7a7 | 17 | BuildRequires: autoconf >= 2.62 |
2b19a29c | 18 | BuildRequires: automake |
fa9f2026 | 19 | BuildRequires: docbook-dtd42-xml |
9269cfa5 | 20 | BuildRequires: enchant-devel >= 0.4.0 |
6ee44940 | 21 | BuildRequires: gettext-tools |
b9f8f7a7 | 22 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
6874cc51 JB |
23 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 1:2.0} |
24 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
b9f8f7a7 | 25 | BuildRequires: gtk-doc >= 1.14 |
9269cfa5 | 26 | BuildRequires: intltool >= 0.35.0 |
228a8a33 | 27 | BuildRequires: iso-codes |
2b19a29c | 28 | BuildRequires: libtool |
9269cfa5 | 29 | BuildRequires: pango-devel >= 1:1.13.3 |
e2cc735d | 30 | BuildRequires: pkgconfig |
451ec87e | 31 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
6874cc51 JB |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
34 | Requires: %{name}-common = %{version}-%{release} | |
60100baa | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
60100baa | 37 | %description |
2b19a29c JB |
38 | GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words |
39 | in a GtkTextView widget. Right-clicking a misspelled word pops up a | |
40 | menu of suggested replacements. | |
41 | ||
6874cc51 JB |
42 | This package contains GtkSpell3 version for GTK+ 3. |
43 | ||
c5b299db JR |
44 | %description -l pl.UTF-8 |
45 | GtkSpell udostępnia podobne do MS Worda lub MacOSX podświetlanie | |
46 | błędnie napisanych słów w widgecie GtkTextView. Kliknięcie prawym | |
47 | przyciskiem na błędne słowo otwiera menu z sugerowanymi poprawkami. | |
60100baa | 48 | |
6874cc51 JB |
49 | Ten pakiet zawiera wersję biblioteki GtkSpell3 dla GTK+ 3. |
50 | ||
60100baa | 51 | %package devel |
6874cc51 JB |
52 | Summary: Development files for GtkSpell3 for GTK+ 3 |
53 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 3 | |
60100baa | 54 | Group: X11/Development/Libraries |
85efd45e | 55 | Requires: %{name} = %{version}-%{release} |
6874cc51 | 56 | Requires: %{name}-common-devel = %{version}-%{release} |
9269cfa5 | 57 | Requires: enchant-devel >= 0.4.0 |
6874cc51 | 58 | Requires: gtk+3-devel >= 3.0 |
60100baa | 59 | |
60 | %description devel | |
6874cc51 | 61 | Development files for GtkSpell3 for GTK+ 3. |
60100baa | 62 | |
c5b299db | 63 | %description devel -l pl.UTF-8 |
6874cc51 | 64 | Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 3. |
60100baa | 65 | |
66 | %package static | |
6874cc51 JB |
67 | Summary: Static GtkSpell3 library for GTK+ 3 |
68 | Summary(pl.UTF-8): Biblioteka statyczna GtkSpell3 dla GTK+ 3 | |
60100baa | 69 | Group: X11/Development/Libraries |
85efd45e | 70 | Requires: %{name}-devel = %{version}-%{release} |
60100baa | 71 | |
72 | %description static | |
6874cc51 | 73 | Static GtkSpell3 library for GTK+ 3. |
60100baa | 74 | |
c5b299db | 75 | %description static -l pl.UTF-8 |
6874cc51 JB |
76 | Biblioteka statyczna GtkSpell3 dla GTK+ 3. |
77 | ||
78 | %package -n vala-%{name} | |
79 | Summary: GtkSpell3 API for Vala language (GTK+ 3 variant) | |
80 | Summary(pl.UTF-8): API GtkSpell3 dla języka Vala (wersja dla GTK+ 3) | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | Requires: vala >= 2:0.18.0 | |
84 | %if "%{_rpmversion}" >= "5" | |
85 | BuildArch: noarch | |
86 | %endif | |
87 | ||
88 | %description -n vala-%{name} | |
89 | GtkSpell3 API for Vala language (GTK+ 3 variant). | |
90 | ||
91 | %description -n vala-%{name} -l pl.UTF-8 | |
92 | API GtkSpell3 dla języka Vala (wersja dla GTK+ 3). | |
93 | ||
94 | %package gtk2 | |
95 | Summary: GTK+ 2 Spell Checker Interface Library | |
96 | Summary(pl.UTF-8): Biblioteka z interfejsem do narzędzia sprawdzającego pisownię dla GTK+ 2 | |
97 | Group: X11/Libraries | |
98 | Requires: %{name}-common = %{version}-%{release} | |
99 | ||
100 | %description gtk2 | |
101 | GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words | |
102 | in a GtkTextView widget. Right-clicking a misspelled word pops up a | |
103 | menu of suggested replacements. | |
104 | ||
105 | This package contains GtkSpell3 version for GTK+ 2. | |
106 | ||
107 | %description gtk2 -l pl.UTF-8 | |
108 | GtkSpell udostępnia podobne do MS Worda lub MacOSX podświetlanie | |
109 | błędnie napisanych słów w widgecie GtkTextView. Kliknięcie prawym | |
110 | przyciskiem na błędne słowo otwiera menu z sugerowanymi poprawkami. | |
111 | ||
112 | Ten pakiet zawiera wersję biblioteki GtkSpell3 dla GTK+ 2. | |
113 | ||
114 | %package gtk2-devel | |
115 | Summary: Development files for GtkSpell3 for GTK+ 2 | |
116 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 2 | |
117 | Group: X11/Development/Libraries | |
118 | Requires: %{name}-common-devel = %{version}-%{release} | |
119 | Requires: %{name}-gtk2 = %{version}-%{release} | |
120 | Requires: enchant-devel >= 0.4.0 | |
121 | Requires: gtk+2-devel >= 1:2.0 | |
122 | ||
123 | %description gtk2-devel | |
124 | Development files for GtkSpell3 for GTK+ 2. | |
125 | ||
126 | %description gtk2-devel -l pl.UTF-8 | |
127 | Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 2. | |
128 | ||
129 | %package gtk2-static | |
130 | Summary: Static GtkSpell3 library for GTK+ 2 | |
131 | Summary(pl.UTF-8): Biblioteka statyczna GtkSpell3 dla GTK+ 2 | |
132 | Group: X11/Development/Libraries | |
133 | Requires: %{name}-gtk2-devel = %{version}-%{release} | |
134 | ||
135 | %description gtk2-static | |
136 | Static GtkSpell3 library for GTK+ 2. | |
137 | ||
138 | %description gtk2-static -l pl.UTF-8 | |
139 | Biblioteka statyczna GtkSpell3 dla GTK+ 2. | |
140 | ||
141 | %package -n vala-%{name}-gtk2 | |
142 | Summary: GtkSpell3 API for Vala language (GTK+ 2 variant) | |
143 | Summary(pl.UTF-8): API GtkSpell3 dla języka Vala (wersja dla GTK+ 2) | |
144 | Group: Development/Libraries | |
145 | Requires: %{name}-gtk2-devel = %{version}-%{release} | |
146 | Requires: vala >= 2:0.18.0 | |
147 | %if "%{_rpmversion}" >= "5" | |
148 | BuildArch: noarch | |
149 | %endif | |
150 | ||
151 | %description -n vala-%{name}-gtk2 | |
152 | GtkSpell3 API for Vala language (GTK+ 2 variant). | |
153 | ||
154 | %description -n vala-%{name}-gtk2 -l pl.UTF-8 | |
155 | API GtkSpell3 dla języka Vala (wersja dla GTK+ 2). | |
156 | ||
157 | %package common | |
158 | Summary: Common files for GtkSpell3 libraries | |
159 | Summary(pl.UTF-8): Pliki wspólne bibliotek GtkSpell3 | |
160 | Group: Libraries | |
161 | Conflicts: gtkspell3 < 3.0.9 | |
162 | %if "%{_rpmversion}" >= "5" | |
163 | BuildArch: noarch | |
164 | %endif | |
165 | ||
166 | %description common | |
167 | Common files for GtkSpell3 libraries. | |
168 | ||
169 | %description common -l pl.UTF-8 | |
170 | Pliki wspólne bibliotek GtkSpell3. | |
171 | ||
172 | %package common-devel | |
173 | Summary: Common headers for GtkSpell3 libraries | |
174 | Summary(pl.UTF-8): Wspólne pliki nagłówkowe bibliotek GtkSpell3 | |
175 | Group: Development/Libraries | |
176 | Requires: %{name}-common = %{version}-%{release} | |
177 | %if "%{_rpmversion}" >= "5" | |
178 | BuildArch: noarch | |
179 | %endif | |
180 | ||
181 | %description common-devel | |
182 | Common headers for GtkSpell3 libraries. | |
183 | ||
184 | %description common-devel -l pl.UTF-8 | |
185 | Wspólne pliki nagłówkowe bibliotek GtkSpell3. | |
60100baa | 186 | |
c3ac37ae | 187 | %package apidocs |
85efd45e | 188 | Summary: GtkSpell API documentation |
c3ac37ae MB |
189 | Summary(pl.UTF-8): Dokumentacja API gtkspell |
190 | Group: Documentation | |
191 | Requires: gtk-doc-common | |
5a82f50f ER |
192 | %if "%{_rpmversion}" >= "5" |
193 | BuildArch: noarch | |
194 | %endif | |
c3ac37ae MB |
195 | |
196 | %description apidocs | |
85efd45e | 197 | GtkSpell API documentation. |
c3ac37ae MB |
198 | |
199 | %description apidocs -l pl.UTF-8 | |
200 | Dokumentacja API gtkspell. | |
201 | ||
60100baa | 202 | %prep |
228a8a33 | 203 | %setup -q |
60100baa | 204 | |
205 | %build | |
c3ac37ae | 206 | %{__gtkdocize} |
60100baa | 207 | %{__libtoolize} |
71b90ce3 | 208 | %{__aclocal} |
60100baa | 209 | %{__autoconf} |
09860407 | 210 | %{__autoheader} |
60100baa | 211 | %{__automake} |
d51a94e7 | 212 | %configure \ |
85efd45e | 213 | --disable-silent-rules \ |
b9821767 | 214 | --enable-gtk-doc \ |
6874cc51 JB |
215 | %{?with_gtk2:--enable-gtk2} \ |
216 | %{!?with_gtk3:--disable-gtk2} \ | |
b9821767 | 217 | --with-html-dir=%{_gtkdocdir} |
60100baa | 218 | %{__make} |
219 | ||
220 | %install | |
221 | rm -rf $RPM_BUILD_ROOT | |
60100baa | 222 | %{__make} install \ |
223 | DESTDIR=$RPM_BUILD_ROOT \ | |
224 | pkgconfigdir=%{_pkgconfigdir} | |
225 | ||
6874cc51 | 226 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkspell3-*.la |
85efd45e | 227 | |
85efd45e | 228 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/son |
673523c2 | 229 | |
516b0cf1 | 230 | %find_lang %{name} |
231 | ||
60100baa | 232 | %clean |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
2b19a29c JB |
235 | %post -p /sbin/ldconfig |
236 | %postun -p /sbin/ldconfig | |
237 | ||
6874cc51 JB |
238 | %post gtk2 -p /sbin/ldconfig |
239 | %postun gtk2 -p /sbin/ldconfig | |
240 | ||
241 | %if %{with gtk3} | |
242 | %files | |
60100baa | 243 | %defattr(644,root,root,755) |
85efd45e ER |
244 | %attr(755,root,root) %{_libdir}/libgtkspell3-3.so.*.*.* |
245 | %attr(755,root,root) %ghost %{_libdir}/libgtkspell3-3.so.0 | |
246 | %{_libdir}/girepository-1.0/GtkSpell-3.0.typelib | |
60100baa | 247 | |
248 | %files devel | |
249 | %defattr(644,root,root,755) | |
b9f8f7a7 | 250 | %attr(755,root,root) %{_libdir}/libgtkspell3-3.so |
85efd45e ER |
251 | %{_pkgconfigdir}/gtkspell3-3.0.pc |
252 | %{_datadir}/gir-1.0/GtkSpell-3.0.gir | |
60100baa | 253 | |
254 | %files static | |
255 | %defattr(644,root,root,755) | |
85efd45e | 256 | %{_libdir}/libgtkspell3-3.a |
c3ac37ae | 257 | |
228a8a33 ŁK |
258 | %if %{with vala} |
259 | %files -n vala-%{name} | |
260 | %defattr(644,root,root,755) | |
261 | %{_datadir}/vala/vapi/gtkspell3-3.0.deps | |
262 | %{_datadir}/vala/vapi/gtkspell3-3.0.vapi | |
263 | %endif | |
6874cc51 JB |
264 | %endif |
265 | ||
266 | %if %{with gtk2} | |
267 | %files gtk2 | |
268 | %defattr(644,root,root,755) | |
269 | %attr(755,root,root) %{_libdir}/libgtkspell3-2.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libgtkspell3-2.so.0 | |
271 | %{_libdir}/girepository-1.0/GtkSpell-2.0.typelib | |
272 | ||
273 | %files gtk2-devel | |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libdir}/libgtkspell3-2.so | |
276 | %{_pkgconfigdir}/gtkspell3-2.0.pc | |
277 | %{_datadir}/gir-1.0/GtkSpell-2.0.gir | |
278 | ||
279 | %files gtk2-static | |
280 | %defattr(644,root,root,755) | |
281 | %{_libdir}/libgtkspell3-2.a | |
282 | ||
283 | %if %{with vala} | |
284 | %files -n vala-%{name}-gtk2 | |
285 | %defattr(644,root,root,755) | |
286 | %{_datadir}/vala/vapi/gtkspell3-2.0.deps | |
287 | %{_datadir}/vala/vapi/gtkspell3-2.0.vapi | |
288 | %endif | |
289 | %endif | |
290 | ||
291 | %files common -f %{name}.lang | |
292 | %defattr(644,root,root,755) | |
293 | %doc AUTHORS ChangeLog README | |
294 | ||
295 | %files common-devel | |
296 | %defattr(644,root,root,755) | |
297 | %{_includedir}/gtkspell-3.0 | |
298 | ||
299 | %files apidocs | |
300 | %defattr(644,root,root,755) | |
301 | %{_gtkdocdir}/gtkspell3 |