File gnome-dictionary.spec of Package gnome-dictionary
#
# spec file for package gnome-dictionary
#
# Copyright (c) 2014 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: gnome-dictionary
Version: 3.14.1
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.14/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: intltool >= 0.40.0
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(glib-2.0) >= 2.39.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.0
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-6
Summary: Library to look up words in dictionary sources
License: LGPL-2.1+
Group: System/Libraries
# The library has translated strings
Recommends: %{name}-lang
%description -n libgdict-1_0-6
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-6 = %{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
%build
%configure --enable-ipv6
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{name}
%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-6 -p /sbin/ldconfig
%postun -n libgdict-1_0-6 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.docs NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml
%{_datadir}/applications/%{name}.desktop
%doc %{_datadir}/help/C/%{name}/
%{_datadir}/appdata/gnome-dictionary.appdata.xml
%files lang -f %{name}.lang
%files -n libgdict-1_0-6
%defattr(-,root,root)
%doc COPYING.libs
%{_datadir}/gdict-1.0/
%{_libdir}/libgdict-1.0.so.*
%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