File gtkspell3.spec of Package gtkspell3

#
# spec file for package gtkspell3
#
# Copyright (c) 2011 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
%define _name gtkspell
Version:        2.99.1_pre3.0.0
Release:        1
%define _version 3.0.0
License:        GPL-2.0+
Summary:        GTK3 Spell Checker Interface Library
Url:            http://gtkspell.sf.net/
Group:          System/Libraries
# Tarball taken from http://sourceforge.net/mailarchive/message.php?msg_id=27947683 -- this is a pre-release tarball
Source:         %{name}-%{_version}.tar.gz
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  pkgconfig(enchant) >= 0.4.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 libgtkspell-3-0
License:        GPL-2.0+
Summary:        GTK3 Spell Checker Interface Library
Group:          System/Libraries
Recommends:     %{name}-lang
# Needed to make lang package installable
Provides:       gtkspell3 = %{version}

%description -n libgtkspell-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
License:        GPL-2.0+
Summary:        GTK3 Spell Checker Interface Library -- Development Files
Group:          Development/Libraries/X11
Requires:       libgtkspell-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 libgtkspell-3-0 -p /sbin/ldconfig

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

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

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by