File gtkspellmm3.spec of Package gtkspellmm3
#
# spec file for package gtkspellmm3
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013-2019 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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 https://bugs.opensuse.org/
#
%define soname 0
Name: gtkspellmm3
Version: 3.0.5
Release: 0
Summary: GTK3 Spell Checker Interface Library -- C++ bindings
License: GPL-2.0-or-later
URL: http://gtkspell.sourceforge.net/
Source0: http://sourceforge.net/projects/gtkspell/files/gtkspellmm/gtkspellmm-3.0.5.tar.xz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(gtkspell3-3.0)
%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 devel
Summary: GTK3 Spell Checker Interface Library -- C++ bindings
License: GPL-2.0-only
Requires: libgtkspellmm-3_0-%{soname} = %{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.
%package doc
Summary: GTK3 Spell Checker Interface Library -- Documentation
License: GPL-2.0-only
%description doc
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 libgtkspellmm-3_0-%{soname}
Summary: GTK3 Spell Checker Interface Library -- C++ bindings
License: GPL-2.0-only
%description -n libgtkspellmm-3_0-%{soname}
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.
%prep
%setup -q -n gtkspellmm-%{version}
%build
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}/%{_prefix}
%post -n libgtkspellmm-3_0-%{soname} -p /sbin/ldconfig
%postun -n libgtkspellmm-3_0-%{soname} -p /sbin/ldconfig
%files -n libgtkspellmm-3_0-%{soname}
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libgtkspellmm-3.0.so.0*
%files devel
%{_includedir}/gtkspellmm-3.0
%{_libdir}/libgtkspellmm-3.0.so
%{_libdir}/pkgconfig/gtkspellmm-3.0.pc
%{_libdir}/gtkspellmm-3.0
%files doc
%{_datadir}/devhelp/books/gtkspellmm-3.0
%{_datadir}/doc/gtkspellmm-3.0
%changelog