]>
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 | |
e83da9f4 | 8 | Version: 1.8.3 |
c0d989fe | 9 | Release: 1 |
a9e12d79 | 10 | License: LGPL v2.1+ |
2d29eafb | 11 | Group: X11/Libraries |
64921e15 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gspell/1.8/%{name}-%{version}.tar.xz |
e83da9f4 | 13 | # Source0-md5: d0892000d944e87fd74e8611ef400cdb |
2d29eafb | 14 | URL: https://wiki.gnome.org/Projects/gspell |
64921e15 | 15 | BuildRequires: enchant2-devel >= 2.1.3 |
2d29eafb JB |
16 | BuildRequires: gettext-tools >= 0.19.4 |
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 |
2d29eafb | 21 | BuildRequires: iso-codes >= 0.35 |
2d29eafb | 22 | BuildRequires: pkgconfig |
2d29eafb | 23 | BuildRequires: tar >= 1:1.22 |
6391fed4 | 24 | BuildRequires: vala |
2d29eafb | 25 | BuildRequires: xz |
64921e15 | 26 | Requires: enchant2 >= 2.1.3 |
72161317 MB |
27 | Requires: glib2 >= 1:2.44.0 |
28 | Requires: gtk+3 >= 3.20 | |
2d29eafb | 29 | Requires: iso-codes >= 0.35 |
2d29eafb JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | gspell is a spell-checking library for GTK+. It provides a flexible | |
34 | API to implement the spell checking in a GTK+ application. | |
35 | ||
36 | ||
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 | |
40 | GTK+. | |
41 | ||
42 | %package devel | |
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} | |
64921e15 | 47 | Requires: enchant2-devel >= 2.1.3 |
2d29eafb | 48 | Requires: glib2-devel >= 1:2.44 |
72161317 | 49 | Requires: gtk+3-devel >= 3.20 |
2d29eafb JB |
50 | |
51 | %description devel | |
52 | Header files for gspell library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki gspell. | |
56 | ||
57 | %package static | |
58 | Summary: Static gspell library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka gspell | |
60 | Group: X11/Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static gspell library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka gspell. | |
68 | ||
69 | %package apidocs | |
70 | Summary: API documentation for gspell library | |
71 | Summary(pl.UTF-8): Dokumentacja API biblioteki gspell | |
72 | Group: Documentation | |
54722b38 ER |
73 | %if "%{_rpmversion}" >= "5" |
74 | BuildArch: noarch | |
75 | %endif | |
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 ER |
89 | %if "%{_rpmversion}" >= "5" |
90 | BuildArch: noarch | |
91 | %endif | |
2d29eafb JB |
92 | |
93 | %description -n vala-gspell | |
94 | Vala API for gspell library. | |
95 | ||
96 | %description -n vala-gspell -l pl.UTF-8 | |
97 | API języka Vala do biblioteki gspell. | |
98 | ||
99 | %prep | |
100 | %setup -q | |
101 | ||
102 | %build | |
103 | %configure \ | |
104 | --disable-silent-rules \ | |
105 | %{?with_static_libs:--enable-static} \ | |
106 | --with-html-dir=%{_gtkdocdir} | |
107 | ||
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | # obsoleted by pkg-config | |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgspell-1.la | |
118 | ||
119 | %find_lang gspell-1 | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
127 | %files -f gspell-1.lang | |
128 | %defattr(644,root,root,755) | |
129 | %doc AUTHORS NEWS README | |
02c911ee | 130 | %attr(755,root,root) %{_bindir}/gspell-app1 |
2d29eafb | 131 | %attr(755,root,root) %{_libdir}/libgspell-1.so.*.*.* |
64921e15 | 132 | %attr(755,root,root) %ghost %{_libdir}/libgspell-1.so.2 |
2d29eafb JB |
133 | %{_libdir}/girepository-1.0/Gspell-1.typelib |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libgspell-1.so | |
138 | %{_includedir}/gspell-1 | |
139 | %{_datadir}/gir-1.0/Gspell-1.gir | |
140 | %{_pkgconfigdir}/gspell-1.pc | |
141 | ||
142 | %if %{with static_libs} | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libgspell-1.a | |
146 | %endif | |
147 | ||
148 | %files apidocs | |
149 | %defattr(644,root,root,755) | |
ab6c43bd | 150 | %{_gtkdocdir}/gspell-1.0 |
2d29eafb JB |
151 | |
152 | %files -n vala-gspell | |
153 | %defattr(644,root,root,755) | |
154 | %{_datadir}/vala/vapi/gspell-1.deps | |
155 | %{_datadir}/vala/vapi/gspell-1.vapi |