3 %bcond_without static_libs # static library
5 Summary: gspell - a spell-checking library for GTK+
6 Summary(pl.UTF-8): gspell - biblioteka sprawdzania pisowni dla GTK+
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/gspell/0.1/%{name}-%{version}.tar.xz
13 # Source0-md5: 053b9dc5833d3699a71f153ed41f4d89
14 URL: https://wiki.gnome.org/Projects/gspell
15 BuildRequires: enchant-devel >= 1.6.0
16 BuildRequires: gettext-tools >= 0.19.4
17 BuildRequires: glib2-devel >= 1:2.44
18 BuildRequires: gobject-introspection-devel >= 1.42.0
19 BuildRequires: gtk+3-devel >= 3.16
20 BuildRequires: gtk-doc >= 1.24
21 BuildRequires: gtksourceview3-devel >= 3.16
22 BuildRequires: iso-codes >= 0.35
23 BuildRequires: libxml2-devel >= 1:2.5.0
24 BuildRequires: pkgconfig
26 BuildRequires: tar >= 1:1.22
28 Requires: enchant >= 1.6.0
29 Requires: glib2 >= 1:2.36.0
30 Requires: gtk+3 >= 3.16
31 Requires: gtksourceview3 >= 3.16
32 Requires: iso-codes >= 0.35
33 Requires: libxml2 >= 1:2.5.0
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 gspell is a spell-checking library for GTK+. It provides a flexible
38 API to implement the spell checking in a GTK+ application.
41 %description -l pl.UTF-8
42 gspell to biblioteka do sprawdzania pisowni dla GTK+. Udostępnia
43 elastyczne API do implementowania sprawdzania pisowni w aplikacjach
47 Summary: Header files for gspell library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gspell
49 Group: X11/Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: enchant-devel >= 1.6.0
52 Requires: glib2-devel >= 1:2.44
53 Requires: gtk+3-devel >= 3.16
54 Requires: gtksourceview3-devel >= 3.16
55 Requires: libxml2-devel >= 1:2.5.0
58 Header files for gspell library.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki gspell.
64 Summary: Static gspell library
65 Summary(pl.UTF-8): Statyczna biblioteka gspell
66 Group: X11/Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
70 Static gspell library.
72 %description static -l pl.UTF-8
73 Statyczna biblioteka gspell.
76 Summary: API documentation for gspell library
77 Summary(pl.UTF-8): Dokumentacja API biblioteki gspell
81 API documentation for gspell library.
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API biblioteki gspell.
86 %package -n vala-gspell
87 Summary: Vala API for gspell library
88 Summary(pl.UTF-8): API języka Vala do biblioteki gspell
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 %description -n vala-gspell
94 Vala API for gspell library.
96 %description -n vala-gspell -l pl.UTF-8
97 API języka Vala do biblioteki gspell.
104 --disable-silent-rules \
105 %{?with_static_libs:--enable-static} \
106 --with-html-dir=%{_gtkdocdir}
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 # obsoleted by pkg-config
117 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgspell-1.la
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
127 %files -f gspell-1.lang
128 %defattr(644,root,root,755)
129 %doc AUTHORS NEWS README
130 %attr(755,root,root) %{_libdir}/libgspell-1.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libgspell-1.so.0
132 %{_libdir}/girepository-1.0/Gspell-1.typelib
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libgspell-1.so
137 %{_includedir}/gspell-1
138 %{_datadir}/gir-1.0/Gspell-1.gir
139 %{_pkgconfigdir}/gspell-1.pc
141 %if %{with static_libs}
143 %defattr(644,root,root,755)
144 %{_libdir}/libgspell-1.a
148 %defattr(644,root,root,755)
149 %{_gtkdocdir}/gspell-1.0
151 %files -n vala-gspell
152 %defattr(644,root,root,755)
153 %{_datadir}/vala/vapi/gspell-1.deps
154 %{_datadir}/vala/vapi/gspell-1.vapi