]>
Commit | Line | Data |
---|---|---|
2d29eafb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: gspell - a spell-checking library for GTK+ | |
6 | Summary(pl.UTF-8): gspell - biblioteka sprawdzania pisowni dla GTK+ | |
7 | Name: gspell | |
5f4cbdd6 | 8 | Version: 1.12.1 |
a74695b9 | 9 | Release: 2 |
a9e12d79 | 10 | License: LGPL v2.1+ |
2d29eafb | 11 | Group: X11/Libraries |
7d16de09 | 12 | Source0: https://download.gnome.org/sources/gspell/1.12/%{name}-%{version}.tar.xz |
5f4cbdd6 | 13 | # Source0-md5: 6c1145a0d2a40c2266337a3975e0e8d5 |
2d29eafb | 14 | URL: https://wiki.gnome.org/Projects/gspell |
64921e15 | 15 | BuildRequires: enchant2-devel >= 2.1.3 |
631241dd | 16 | BuildRequires: gettext-tools >= 0.19.6 |
2d29eafb JB |
17 | BuildRequires: glib2-devel >= 1:2.44 |
18 | BuildRequires: gobject-introspection-devel >= 1.42.0 | |
72161317 | 19 | BuildRequires: gtk+3-devel >= 3.20 |
ede0e8fc | 20 | BuildRequires: gtk-doc >= 1.25 |
631241dd | 21 | BuildRequires: libicu-devel |
2d29eafb | 22 | BuildRequires: pkgconfig |
631241dd JB |
23 | BuildRequires: rpm-build >= 4.6 |
24 | BuildRequires: rpmbuild(macros) >= 1.98 | |
2d29eafb | 25 | BuildRequires: tar >= 1:1.22 |
6391fed4 | 26 | BuildRequires: vala |
2d29eafb | 27 | BuildRequires: xz |
64921e15 | 28 | Requires: enchant2 >= 2.1.3 |
72161317 MB |
29 | Requires: glib2 >= 1:2.44.0 |
30 | Requires: gtk+3 >= 3.20 | |
2d29eafb JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | gspell is a spell-checking library for GTK+. It provides a flexible | |
35 | API to implement the spell checking in a GTK+ application. | |
36 | ||
37 | ||
38 | %description -l pl.UTF-8 | |
39 | gspell to biblioteka do sprawdzania pisowni dla GTK+. Udostępnia | |
40 | elastyczne API do implementowania sprawdzania pisowni w aplikacjach | |
41 | GTK+. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for gspell library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gspell | |
46 | Group: X11/Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
64921e15 | 48 | Requires: enchant2-devel >= 2.1.3 |
2d29eafb | 49 | Requires: glib2-devel >= 1:2.44 |
72161317 | 50 | Requires: gtk+3-devel >= 3.20 |
631241dd | 51 | Requires: libicu-devel |
2d29eafb JB |
52 | |
53 | %description devel | |
54 | Header files for gspell library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki gspell. | |
58 | ||
59 | %package static | |
60 | Summary: Static gspell library | |
61 | Summary(pl.UTF-8): Statyczna biblioteka gspell | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static gspell library. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczna biblioteka gspell. | |
70 | ||
71 | %package apidocs | |
72 | Summary: API documentation for gspell library | |
73 | Summary(pl.UTF-8): Dokumentacja API biblioteki gspell | |
74 | Group: Documentation | |
54722b38 | 75 | BuildArch: noarch |
2d29eafb JB |
76 | |
77 | %description apidocs | |
78 | API documentation for gspell library. | |
79 | ||
80 | %description apidocs -l pl.UTF-8 | |
81 | Dokumentacja API biblioteki gspell. | |
82 | ||
83 | %package -n vala-gspell | |
84 | Summary: Vala API for gspell library | |
85 | Summary(pl.UTF-8): API języka Vala do biblioteki gspell | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-devel = %{version}-%{release} | |
88 | Requires: vala | |
6391fed4 | 89 | BuildArch: noarch |
2d29eafb JB |
90 | |
91 | %description -n vala-gspell | |
92 | Vala API for gspell library. | |
93 | ||
94 | %description -n vala-gspell -l pl.UTF-8 | |
95 | API języka Vala do biblioteki gspell. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
99 | ||
100 | %build | |
101 | %configure \ | |
102 | --disable-silent-rules \ | |
103 | %{?with_static_libs:--enable-static} \ | |
104 | --with-html-dir=%{_gtkdocdir} | |
105 | ||
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | # obsoleted by pkg-config | |
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgspell-1.la | |
116 | ||
a74695b9 KM |
117 | # not supported by glibc yet |
118 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
119 | ||
2d29eafb JB |
120 | %find_lang gspell-1 |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
128 | %files -f gspell-1.lang | |
129 | %defattr(644,root,root,755) | |
130 | %doc AUTHORS NEWS README | |
02c911ee | 131 | %attr(755,root,root) %{_bindir}/gspell-app1 |
2d29eafb | 132 | %attr(755,root,root) %{_libdir}/libgspell-1.so.*.*.* |
64921e15 | 133 | %attr(755,root,root) %ghost %{_libdir}/libgspell-1.so.2 |
2d29eafb JB |
134 | %{_libdir}/girepository-1.0/Gspell-1.typelib |
135 | ||
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_libdir}/libgspell-1.so | |
139 | %{_includedir}/gspell-1 | |
140 | %{_datadir}/gir-1.0/Gspell-1.gir | |
141 | %{_pkgconfigdir}/gspell-1.pc | |
142 | ||
143 | %if %{with static_libs} | |
144 | %files static | |
145 | %defattr(644,root,root,755) | |
146 | %{_libdir}/libgspell-1.a | |
147 | %endif | |
148 | ||
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
ab6c43bd | 151 | %{_gtkdocdir}/gspell-1.0 |
2d29eafb JB |
152 | |
153 | %files -n vala-gspell | |
154 | %defattr(644,root,root,755) | |
155 | %{_datadir}/vala/vapi/gspell-1.deps | |
156 | %{_datadir}/vala/vapi/gspell-1.vapi |