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/1.8/%{name}-%{version}.tar.xz
13 # Source0-md5: 378dee938c08c24b559953cbcad83942
14 URL: https://wiki.gnome.org/Projects/gspell
15 BuildRequires: enchant2-devel >= 2.1.3
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.20
20 BuildRequires: gtk-doc >= 1.25
21 BuildRequires: iso-codes >= 0.35
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
26 Requires: enchant2 >= 2.1.3
27 Requires: glib2 >= 1:2.44.0
28 Requires: gtk+3 >= 3.20
29 Requires: iso-codes >= 0.35
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 gspell is a spell-checking library for GTK+. It provides a flexible
34 API to implement the spell checking in a GTK+ application.
37 %description -l pl.UTF-8
38 gspell to biblioteka do sprawdzania pisowni dla GTK+. Udostępnia
39 elastyczne API do implementowania sprawdzania pisowni w aplikacjach
43 Summary: Header files for gspell library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gspell
45 Group: X11/Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: enchant2-devel >= 2.1.3
48 Requires: glib2-devel >= 1:2.44
49 Requires: gtk+3-devel >= 3.20
52 Header files for gspell library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki gspell.
58 Summary: Static gspell library
59 Summary(pl.UTF-8): Statyczna biblioteka gspell
60 Group: X11/Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static gspell library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka gspell.
70 Summary: API documentation for gspell library
71 Summary(pl.UTF-8): Dokumentacja API biblioteki gspell
76 API documentation for gspell library.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki gspell.
81 %package -n vala-gspell
82 Summary: Vala API for gspell library
83 Summary(pl.UTF-8): API języka Vala do biblioteki gspell
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
89 %description -n vala-gspell
90 Vala API for gspell library.
92 %description -n vala-gspell -l pl.UTF-8
93 API języka Vala do biblioteki gspell.
100 --disable-silent-rules \
101 %{?with_static_libs:--enable-static} \
102 --with-html-dir=%{_gtkdocdir}
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
112 # obsoleted by pkg-config
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgspell-1.la
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
123 %files -f gspell-1.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS NEWS README
126 %attr(755,root,root) %{_bindir}/gspell-app1
127 %attr(755,root,root) %{_libdir}/libgspell-1.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libgspell-1.so.2
129 %{_libdir}/girepository-1.0/Gspell-1.typelib
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libgspell-1.so
134 %{_includedir}/gspell-1
135 %{_datadir}/gir-1.0/Gspell-1.gir
136 %{_pkgconfigdir}/gspell-1.pc
138 %if %{with static_libs}
140 %defattr(644,root,root,755)
141 %{_libdir}/libgspell-1.a
145 %defattr(644,root,root,755)
146 %{_gtkdocdir}/gspell-1.0
148 %files -n vala-gspell
149 %defattr(644,root,root,755)
150 %{_datadir}/vala/vapi/gspell-1.deps
151 %{_datadir}/vala/vapi/gspell-1.vapi