2 # - gtk+2 bindings possible besides gtk+3 as well
5 %bcond_without vala # do not build Vala API
7 Summary: GTK+ Spell Checker Interface Library
8 Summary(pl.UTF-8): Biblioteka z interfejsem do narzędzia sprawdzającego pisownię dla GTK+
14 Source0: http://gtkspell.sourceforge.net/download/%{name}-%{version}.tar.gz
15 # Source0-md5: f15a7c29b71d6ae343c783af3571c8d2
16 URL: http://gtkspell.sourceforge.net/
17 BuildRequires: autoconf >= 2.62
18 BuildRequires: automake
19 BuildRequires: docbook-dtd42-xml
20 BuildRequires: enchant-devel >= 0.4.0
21 BuildRequires: gettext-tools
22 BuildRequires: gobject-introspection-devel >= 1.30.0
23 BuildRequires: gtk+3-devel >= 3
24 BuildRequires: gtk-doc >= 1.14
25 BuildRequires: intltool >= 0.35.0
26 BuildRequires: iso-codes
27 BuildRequires: libtool
28 BuildRequires: pango-devel >= 1:1.13.3
29 BuildRequires: pkgconfig
30 %{?with_vala:BuildRequires: vala >= 2:0.18.0}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words
35 in a GtkTextView widget. Right-clicking a misspelled word pops up a
36 menu of suggested replacements.
38 %description -l pl.UTF-8
39 GtkSpell udostępnia podobne do MS Worda lub MacOSX podświetlanie
40 błędnie napisanych słów w widgecie GtkTextView. Kliknięcie prawym
41 przyciskiem na błędne słowo otwiera menu z sugerowanymi poprawkami.
44 Summary: Header files for GtkSpell API version 3.0
45 Summary(pl.UTF-8): Pliki nagłówkowe dla gtkspella
46 Group: X11/Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: enchant-devel >= 0.4.0
49 Requires: gtk+3-devel >= 3
52 Header files for GtkSpell API version 3.0.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe dla gtkspella.
58 Summary: Static libraries for GtkSpell
59 Summary(pl.UTF-8): Biblioteki statyczne dla gtkspella
60 Group: X11/Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static libraries for GtkSpell.
66 %description static -l pl.UTF-8
67 Biblioteki statyczne dla gtkspella.
70 Summary: GtkSpell API documentation
71 Summary(pl.UTF-8): Dokumentacja API gtkspell
73 Requires: gtk-doc-common
74 %if "%{_rpmversion}" >= "5"
79 GtkSpell API documentation.
81 %description apidocs -l pl.UTF-8
82 Dokumentacja API gtkspell.
84 %package -n vala-%{name}
85 Summary: GtkSpell API for Vala language
86 Summary(pl.UTF-8): API GtkSpell dla języka Vala
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
89 Requires: vala >= 2:0.18.0
90 %if "%{_rpmversion}" >= "5"
94 %description -n vala-%{name}
95 GtkSpell API for Vala language.
97 %description -n vala-%{name} -l pl.UTF-8
98 API GtkSpell dla języka Vala.
111 --disable-silent-rules \
113 --with-html-dir=%{_gtkdocdir}
117 rm -rf $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT \
120 pkgconfigdir=%{_pkgconfigdir}
122 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkspell3-3.la
124 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/son
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
134 %files -f %{name}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog README
137 %attr(755,root,root) %{_libdir}/libgtkspell3-3.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libgtkspell3-3.so.0
139 %{_libdir}/girepository-1.0/GtkSpell-3.0.typelib
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libgtkspell3-3.so
144 %{_includedir}/gtkspell-3.0
145 %{_pkgconfigdir}/gtkspell3-3.0.pc
146 %{_datadir}/gir-1.0/GtkSpell-3.0.gir
149 %defattr(644,root,root,755)
150 %{_libdir}/libgtkspell3-3.a
153 %defattr(644,root,root,755)
154 %{_gtkdocdir}/gtkspell3
157 %files -n vala-%{name}
158 %defattr(644,root,root,755)
159 %{_datadir}/vala/vapi/gtkspell3-3.0.deps
160 %{_datadir}/vala/vapi/gtkspell3-3.0.vapi