File gnome-dictionary.spec of Package gnome-dictionary
#
# spec file for package gnome-dictionary
#
# Copyright (c) 2015 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/
#
Name: gnome-dictionary
Version: 3.16.2
Release: 0
Summary: Utility to look up words in dictionary sources
License: GPL-2.0+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-dictionary/3.16/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: intltool >= 0.40.0
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(glib-2.0) >= 2.39.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14
Recommends: %{name}-lang
Conflicts: gnome-utils < 3.3.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
The Dictionary application enables you to search words and terms on a
dictionary source.
%package -n libgdict-1_0-8
Summary: Library to look up words in dictionary sources
License: LGPL-2.1+
Group: System/Libraries
Requires: libgdict-data >= %{version}
# The library has translated strings
Recommends: %{name}-lang
%description -n libgdict-1_0-8
The Gdict library is an engine to look up words in dictionary sources.
%package -n libgdict-data
Summary: Library to look up words in dictionary sources
License: GPL-2.0+
Group: System/Libraries
# Obsoleting a library is not entirely correct, but libgdict is only used
# by gnome-dictionary. A further split of this package will happen in the future.
Obsoletes: libgdict-1_0-6
%description -n libgdict-data
The Gdict library is an engine to look up words in dictionary sources.
%package -n libgdict-devel
Summary: Library to look up words in dictionary sources -- Development Files
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: libgdict-1_0-8 = %{version}
Provides: gnome-utils-doc = %{version}
Obsoletes: gnome-utils-doc < %{version}
# gnome-utils-devel name changed during development of 11.4. Post 12.1, this package got split off gnome-utils.
Provides: gnome-utils-devel = %{version}
Obsoletes: gnome-utils-devel < %{version}
%description -n libgdict-devel
The Gdict library is an engine to look up words in dictionary sources.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --enable-ipv6
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file org.gnome.Dictionary
%fdupes %{buildroot}%{_datadir}/help
%find_lang %{name} %{?no_lang_C}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%post -n libgdict-1_0-8 -p /sbin/ldconfig
%postun -n libgdict-1_0-8 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.docs NEWS README
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.gnome.Dictionary.appdata.xml
%{_datadir}/applications/org.gnome.Dictionary.desktop
%{_datadir}/dbus-1/services/org.gnome.Dictionary.service
%{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml
%{_mandir}/man1/%{name}.1%{?ext_man}
%files lang -f %{name}.lang
%files -n libgdict-1_0-8
%defattr(-,root,root)
%doc COPYING.libs
%{_libdir}/libgdict-1.0.so.*
%files -n libgdict-data
%defattr(-,root,root)
%{_datadir}/gdict-1.0/
%files -n libgdict-devel
%defattr(-,root,root)
%{_includedir}/gdict-1.0/
%{_libdir}/libgdict-1.0.so
%{_libdir}/pkgconfig/gdict-1.0.pc
%doc %{_datadir}/gtk-doc/html/gdict/
%changelog