File gtkspell3.spec of Package gtkspell3

#
# spec file for package gtkspell3
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           gtkspell3
Version:        3.0.3
Release:        0
Summary:        GTK3 Spell Checker Interface Library
License:        GPL-2.0+
Group:          System/Libraries
Url:            http://gtkspell.sf.net/
Source:         http://gtkspell.sourceforge.net/download/%{name}-%{version}.tar.gz
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(enchant) >= 0.4.0
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.30.0
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(pango) >= 1.3.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GtkSpell provides MSWord-style and MacOSX-style highlighting of
misspelled words in a GtkTextView widget. Right-clicking a misspelled
word opens a menu of suggested replacements.

%package -n libgtkspell3-3-0
Summary:        GTK3 Spell Checker Interface Library
Group:          System/Libraries
Recommends:     %{name}-lang
# Needed to make lang package installable
Provides:       gtkspell3 = %{version}

%description -n libgtkspell3-3-0
GtkSpell provides MSWord-style and MacOSX-style highlighting of
misspelled words in a GtkTextView widget. Right-clicking a misspelled
word opens a menu of suggested replacements.

%package -n typelib-1_0-GtkSpell-3_0
Summary:        GTK3 Spell Checker Interface Library -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-GtkSpell-3_0
GtkSpell provides MSWord-style and MacOSX-style highlighting of
misspelled words in a GtkTextView widget. Right-clicking a misspelled
word opens a menu of suggested replacements.

%package devel
Summary:        GTK3 Spell Checker Interface Library -- Development Files
Group:          Development/Libraries/X11
Requires:       libgtkspell3-3-0 = %{version}
Requires:       typelib-1_0-GtkSpell-3_0 = %{version}

%description devel
GtkSpell provides MSWord-style and MacOSX-style highlighting of
misspelled words in a GtkTextView widget. Right-clicking a misspelled
word opens a menu of suggested replacements.

%lang_package
%prep
%setup -q -n %{name}-%{version}
translation-update-upstream

%build
%configure\
	--disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name} %{?no_lang_C}

%post -n libgtkspell3-3-0 -p /sbin/ldconfig

%postun -n libgtkspell3-3-0 -p /sbin/ldconfig

%files -n libgtkspell3-3-0
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libgtkspell3-3.so.*

%files -n typelib-1_0-GtkSpell-3_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GtkSpell-3.0.typelib

%files devel
%defattr(-, root, root)
%{_datadir}/gir-1.0/GtkSpell-3.0.gir
%{_includedir}/gtkspell-3.0/
%{_libdir}/libgtkspell3-3.so
%{_libdir}/pkgconfig/gtkspell3-3.0.pc
%doc %{_datadir}/gtk-doc/html/gtkspell3/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by