]> git.pld-linux.org Git - packages/gtkspell3.git/blame - gtkspell3.spec
- updated to 3.0.9
[packages/gtkspell3.git] / gtkspell3.spec
CommitLineData
228a8a33
ŁK
1#
2# Conditional build:
6874cc51
JB
3%bcond_without gtk2 # GTK+ 2.x variant
4%bcond_without gtk3 # GTK+ 3.x variant
5%bcond_without vala # Vala API
896ba3d7 6
6874cc51
JB
7Summary: GTK+ 3 Spell Checker Interface Library
8Summary(pl.UTF-8): Biblioteka z interfejsem do narzędzia sprawdzającego pisownię dla GTK+ 3
85efd45e 9Name: gtkspell3
6874cc51
JB
10Version: 3.0.9
11Release: 1
60100baa 12License: GPL
60100baa 13Group: X11/Libraries
6874cc51
JB
14Source0: http://downloads.sourceforge.net/gtkspell/%{name}-%{version}.tar.xz
15# Source0-md5: 22c6c44c7cbebfc02e6255cc151a7967
60100baa 16URL: http://gtkspell.sourceforge.net/
b9f8f7a7 17BuildRequires: autoconf >= 2.62
2b19a29c 18BuildRequires: automake
fa9f2026 19BuildRequires: docbook-dtd42-xml
9269cfa5 20BuildRequires: enchant-devel >= 0.4.0
6ee44940 21BuildRequires: gettext-tools
b9f8f7a7 22BuildRequires: gobject-introspection-devel >= 1.30.0
6874cc51
JB
23%{?with_gtk2:BuildRequires: gtk+2-devel >= 1:2.0}
24%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
b9f8f7a7 25BuildRequires: gtk-doc >= 1.14
9269cfa5 26BuildRequires: intltool >= 0.35.0
228a8a33 27BuildRequires: iso-codes
2b19a29c 28BuildRequires: libtool
9269cfa5 29BuildRequires: pango-devel >= 1:1.13.3
e2cc735d 30BuildRequires: pkgconfig
451ec87e 31%{?with_vala:BuildRequires: vala >= 2:0.18.0}
6874cc51
JB
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz
34Requires: %{name}-common = %{version}-%{release}
60100baa 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
60100baa 37%description
2b19a29c
JB
38GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words
39in a GtkTextView widget. Right-clicking a misspelled word pops up a
40menu of suggested replacements.
41
6874cc51
JB
42This package contains GtkSpell3 version for GTK+ 3.
43
c5b299db
JR
44%description -l pl.UTF-8
45GtkSpell udostępnia podobne do MS Worda lub MacOSX podświetlanie
46błędnie napisanych słów w widgecie GtkTextView. Kliknięcie prawym
47przyciskiem na błędne słowo otwiera menu z sugerowanymi poprawkami.
60100baa 48
6874cc51
JB
49Ten pakiet zawiera wersję biblioteki GtkSpell3 dla GTK+ 3.
50
60100baa 51%package devel
6874cc51
JB
52Summary: Development files for GtkSpell3 for GTK+ 3
53Summary(pl.UTF-8): Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 3
60100baa 54Group: X11/Development/Libraries
85efd45e 55Requires: %{name} = %{version}-%{release}
6874cc51 56Requires: %{name}-common-devel = %{version}-%{release}
9269cfa5 57Requires: enchant-devel >= 0.4.0
6874cc51 58Requires: gtk+3-devel >= 3.0
60100baa 59
60%description devel
6874cc51 61Development files for GtkSpell3 for GTK+ 3.
60100baa 62
c5b299db 63%description devel -l pl.UTF-8
6874cc51 64Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 3.
60100baa 65
66%package static
6874cc51
JB
67Summary: Static GtkSpell3 library for GTK+ 3
68Summary(pl.UTF-8): Biblioteka statyczna GtkSpell3 dla GTK+ 3
60100baa 69Group: X11/Development/Libraries
85efd45e 70Requires: %{name}-devel = %{version}-%{release}
60100baa 71
72%description static
6874cc51 73Static GtkSpell3 library for GTK+ 3.
60100baa 74
c5b299db 75%description static -l pl.UTF-8
6874cc51
JB
76Biblioteka statyczna GtkSpell3 dla GTK+ 3.
77
78%package -n vala-%{name}
79Summary: GtkSpell3 API for Vala language (GTK+ 3 variant)
80Summary(pl.UTF-8): API GtkSpell3 dla języka Vala (wersja dla GTK+ 3)
81Group: Development/Libraries
82Requires: %{name}-devel = %{version}-%{release}
83Requires: vala >= 2:0.18.0
84%if "%{_rpmversion}" >= "5"
85BuildArch: noarch
86%endif
87
88%description -n vala-%{name}
89GtkSpell3 API for Vala language (GTK+ 3 variant).
90
91%description -n vala-%{name} -l pl.UTF-8
92API GtkSpell3 dla języka Vala (wersja dla GTK+ 3).
93
94%package gtk2
95Summary: GTK+ 2 Spell Checker Interface Library
96Summary(pl.UTF-8): Biblioteka z interfejsem do narzędzia sprawdzającego pisownię dla GTK+ 2
97Group: X11/Libraries
98Requires: %{name}-common = %{version}-%{release}
99
100%description gtk2
101GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words
102in a GtkTextView widget. Right-clicking a misspelled word pops up a
103menu of suggested replacements.
104
105This package contains GtkSpell3 version for GTK+ 2.
106
107%description gtk2 -l pl.UTF-8
108GtkSpell udostępnia podobne do MS Worda lub MacOSX podświetlanie
109błędnie napisanych słów w widgecie GtkTextView. Kliknięcie prawym
110przyciskiem na błędne słowo otwiera menu z sugerowanymi poprawkami.
111
112Ten pakiet zawiera wersję biblioteki GtkSpell3 dla GTK+ 2.
113
114%package gtk2-devel
115Summary: Development files for GtkSpell3 for GTK+ 2
116Summary(pl.UTF-8): Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 2
117Group: X11/Development/Libraries
118Requires: %{name}-common-devel = %{version}-%{release}
119Requires: %{name}-gtk2 = %{version}-%{release}
120Requires: enchant-devel >= 0.4.0
121Requires: gtk+2-devel >= 1:2.0
122
123%description gtk2-devel
124Development files for GtkSpell3 for GTK+ 2.
125
126%description gtk2-devel -l pl.UTF-8
127Pliki programistyczne biblioteki GtkSpell3 dla GTK+ 2.
128
129%package gtk2-static
130Summary: Static GtkSpell3 library for GTK+ 2
131Summary(pl.UTF-8): Biblioteka statyczna GtkSpell3 dla GTK+ 2
132Group: X11/Development/Libraries
133Requires: %{name}-gtk2-devel = %{version}-%{release}
134
135%description gtk2-static
136Static GtkSpell3 library for GTK+ 2.
137
138%description gtk2-static -l pl.UTF-8
139Biblioteka statyczna GtkSpell3 dla GTK+ 2.
140
141%package -n vala-%{name}-gtk2
142Summary: GtkSpell3 API for Vala language (GTK+ 2 variant)
143Summary(pl.UTF-8): API GtkSpell3 dla języka Vala (wersja dla GTK+ 2)
144Group: Development/Libraries
145Requires: %{name}-gtk2-devel = %{version}-%{release}
146Requires: vala >= 2:0.18.0
147%if "%{_rpmversion}" >= "5"
148BuildArch: noarch
149%endif
150
151%description -n vala-%{name}-gtk2
152GtkSpell3 API for Vala language (GTK+ 2 variant).
153
154%description -n vala-%{name}-gtk2 -l pl.UTF-8
155API GtkSpell3 dla języka Vala (wersja dla GTK+ 2).
156
157%package common
158Summary: Common files for GtkSpell3 libraries
159Summary(pl.UTF-8): Pliki wspólne bibliotek GtkSpell3
160Group: Libraries
161Conflicts: gtkspell3 < 3.0.9
162%if "%{_rpmversion}" >= "5"
163BuildArch: noarch
164%endif
165
166%description common
167Common files for GtkSpell3 libraries.
168
169%description common -l pl.UTF-8
170Pliki wspólne bibliotek GtkSpell3.
171
172%package common-devel
173Summary: Common headers for GtkSpell3 libraries
174Summary(pl.UTF-8): Wspólne pliki nagłówkowe bibliotek GtkSpell3
175Group: Development/Libraries
176Requires: %{name}-common = %{version}-%{release}
177%if "%{_rpmversion}" >= "5"
178BuildArch: noarch
179%endif
180
181%description common-devel
182Common headers for GtkSpell3 libraries.
183
184%description common-devel -l pl.UTF-8
185Wspólne pliki nagłówkowe bibliotek GtkSpell3.
60100baa 186
c3ac37ae 187%package apidocs
85efd45e 188Summary: GtkSpell API documentation
c3ac37ae
MB
189Summary(pl.UTF-8): Dokumentacja API gtkspell
190Group: Documentation
191Requires: gtk-doc-common
5a82f50f
ER
192%if "%{_rpmversion}" >= "5"
193BuildArch: noarch
194%endif
c3ac37ae
MB
195
196%description apidocs
85efd45e 197GtkSpell API documentation.
c3ac37ae
MB
198
199%description apidocs -l pl.UTF-8
200Dokumentacja API gtkspell.
201
60100baa 202%prep
228a8a33 203%setup -q
60100baa 204
205%build
c3ac37ae 206%{__gtkdocize}
60100baa 207%{__libtoolize}
71b90ce3 208%{__aclocal}
60100baa 209%{__autoconf}
09860407 210%{__autoheader}
60100baa 211%{__automake}
d51a94e7 212%configure \
85efd45e 213 --disable-silent-rules \
b9821767 214 --enable-gtk-doc \
6874cc51
JB
215 %{?with_gtk2:--enable-gtk2} \
216 %{!?with_gtk3:--disable-gtk2} \
b9821767 217 --with-html-dir=%{_gtkdocdir}
60100baa 218%{__make}
219
220%install
221rm -rf $RPM_BUILD_ROOT
60100baa 222%{__make} install \
223 DESTDIR=$RPM_BUILD_ROOT \
224 pkgconfigdir=%{_pkgconfigdir}
225
6874cc51 226%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtkspell3-*.la
85efd45e 227
85efd45e 228%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/son
673523c2 229
516b0cf1 230%find_lang %{name}
231
60100baa 232%clean
233rm -rf $RPM_BUILD_ROOT
234
2b19a29c
JB
235%post -p /sbin/ldconfig
236%postun -p /sbin/ldconfig
237
6874cc51
JB
238%post gtk2 -p /sbin/ldconfig
239%postun gtk2 -p /sbin/ldconfig
240
241%if %{with gtk3}
242%files
60100baa 243%defattr(644,root,root,755)
85efd45e
ER
244%attr(755,root,root) %{_libdir}/libgtkspell3-3.so.*.*.*
245%attr(755,root,root) %ghost %{_libdir}/libgtkspell3-3.so.0
246%{_libdir}/girepository-1.0/GtkSpell-3.0.typelib
60100baa 247
248%files devel
249%defattr(644,root,root,755)
b9f8f7a7 250%attr(755,root,root) %{_libdir}/libgtkspell3-3.so
85efd45e
ER
251%{_pkgconfigdir}/gtkspell3-3.0.pc
252%{_datadir}/gir-1.0/GtkSpell-3.0.gir
60100baa 253
254%files static
255%defattr(644,root,root,755)
85efd45e 256%{_libdir}/libgtkspell3-3.a
c3ac37ae 257
228a8a33
ŁK
258%if %{with vala}
259%files -n vala-%{name}
260%defattr(644,root,root,755)
261%{_datadir}/vala/vapi/gtkspell3-3.0.deps
262%{_datadir}/vala/vapi/gtkspell3-3.0.vapi
263%endif
6874cc51
JB
264%endif
265
266%if %{with gtk2}
267%files gtk2
268%defattr(644,root,root,755)
269%attr(755,root,root) %{_libdir}/libgtkspell3-2.so.*.*.*
270%attr(755,root,root) %ghost %{_libdir}/libgtkspell3-2.so.0
271%{_libdir}/girepository-1.0/GtkSpell-2.0.typelib
272
273%files gtk2-devel
274%defattr(644,root,root,755)
275%attr(755,root,root) %{_libdir}/libgtkspell3-2.so
276%{_pkgconfigdir}/gtkspell3-2.0.pc
277%{_datadir}/gir-1.0/GtkSpell-2.0.gir
278
279%files gtk2-static
280%defattr(644,root,root,755)
281%{_libdir}/libgtkspell3-2.a
282
283%if %{with vala}
284%files -n vala-%{name}-gtk2
285%defattr(644,root,root,755)
286%{_datadir}/vala/vapi/gtkspell3-2.0.deps
287%{_datadir}/vala/vapi/gtkspell3-2.0.vapi
288%endif
289%endif
290
291%files common -f %{name}.lang
292%defattr(644,root,root,755)
293%doc AUTHORS ChangeLog README
294
295%files common-devel
296%defattr(644,root,root,755)
297%{_includedir}/gtkspell-3.0
298
299%files apidocs
300%defattr(644,root,root,755)
301%{_gtkdocdir}/gtkspell3
This page took 0.163883 seconds and 4 git commands to generate.