File gspell.spec of Package gspell

#
# spec file for package gspell
#
# Copyright (c) 2016 SUSE LINUX 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/
#


%define shlib lib%{name}-1-1

Name:           gspell
Version:        1.0.3
Release:        0
Summary:        A spell checker library for gtk+ applications
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            https://wiki.gnome.org/Projects/gspell
Source:         http://download.gnome.org/sources/gspell/1.0/%{name}-%{version}.tar.xz
BuildRequires:  gtk-doc >= 1.24
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(enchant) >= 1.6.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.44
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.42.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.19.11
BuildRequires:  pkgconfig(iso-codes) >= 0.35
BuildRequires:  pkgconfig(vapigen)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gspell provides a flexible API to implement the spell checking in a GTK+
application.

%package -n %{shlib}
Summary:        Spell checker library for gtk+
Group:          System/Libraries
Provides:       %{name} = %{version}
Recommends:     %{name}-lang

%description -n %{shlib}
gspell provides a flexible API to implement the spell checking in a GTK+
application.

This package provides the shared libraries for gspell.

%package -n typelib-1_0-Gspell-1_0
Summary:        Spell checker library for gtk+ -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Gspell-1_0
gspell provides a flexible API to implement the spell checking in a GTK+
application.

This package provides the GObject Introspection bindings for gspell.

%package devel
Summary:        Spell checker library for gtk+ -- Development files
Group:          Development/Libraries/GNOME
Requires:       %{shlib} = %{version}
Requires:       typelib-1_0-Gspell-1_0 = %{version}

%description devel
gspell provides a flexible API to implement the spell checking in a GTK+
application.

This package provides the files necessary for developing software using
gspell.

%lang_package
%prep
%setup -q

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

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name}-1 %{?no_lang_C}

%post -n %{shlib} -p /sbin/ldconfig

%postun -n %{shlib} -p /sbin/ldconfig

%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog README COPYING NEWS
%doc %{_datadir}/gtk-doc/html/gspell-1.0/
%{_includedir}/gspell-1/
%{_libdir}/lib%{name}-1.so
%{_libdir}/pkgconfig/gspell-1.pc
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gspell-1.*

%files -n %{shlib}
%defattr(-,root,root)
%{_libdir}/lib%{name}-1.so.*

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

%files lang -f %{name}-1.lang

%changelog
openSUSE Build Service is sponsored by