File yelp.spec of Package yelp
#
# spec file for package yelp
#
# Copyright (c) 2017 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: yelp
Version: 3.26.0
Release: 0
Summary: Help Browser for the GNOME Desktop
License: GPL-2.0+ and LGPL-2.1+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/yelp/3.26/%{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE yelp-lang-bundle.patch bnc#689979 vuntz@opensuse.org -- Support help documents shipped in bundles
Patch1: yelp-lang-bundle.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: itstool >= 1.2.0
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0) >= 3.13.3
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libxslt) >= 1.1.4
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.15.1
BuildRequires: pkgconfig(webkit2gtk-web-extension-4.0) >= 2.15.1
BuildRequires: pkgconfig(yelp-xsl) >= 3.12.0
# data/dtd/catalog references dtds from oasis-open.org, which we provide on docbook_4 package (bnc#770067)
Requires: docbook_4
# We need the stylesheets from yelp-xsl
Requires: yelp-xsl
Recommends: %{name}-lang
Provides: suse_help_viewer
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Yelp is the help viewer in GNOME (it's what happens when you press F1). With
gnome-doc-utils, Yelp serves as a DocBook viewer, a man page viewer and an
info page viewer.
%package -n libyelp0
Summary: Core library for the GNOME Desktop help browser
Group: System/Libraries
%description -n libyelp0
Yelp is the help viewer in GNOME (it's what happens when you press F1). With
gnome-doc-utils, Yelp serves as a DocBook viewer, a man page viewer and an
info page viewer.
This package provides Yelp's system shared libraries.
%package devel
Summary: Development files for libyelp
Group: Development/Libraries/GNOME
Requires: libyelp0 = %{version}
%description devel
Yelp is the help viewer in GNOME (it's what happens when you press F1). With
gnome-doc-utils, Yelp serves as a DocBook viewer, a man page viewer and an
info page viewer.
This package provides Yelp's development files.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch1 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}
%post -n libyelp0 -p /sbin/ldconfig
%postun -n libyelp0 -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gnome-help
%{_bindir}/yelp
%{_datadir}/applications/yelp.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml
%{_datadir}/yelp/
%{_datadir}/yelp-xsl/xslt/common/domains/yelp.xml
%files -n libyelp0
%defattr (-, root, root)
%{_libdir}/libyelp.so.0*
%dir %{_libdir}/yelp/
%dir %{_libdir}/yelp/web-extensions/
%{_libdir}/yelp/web-extensions/libyelpwebextension.so
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/libyelp/
%{_includedir}/libyelp/
%{_libdir}/libyelp.so
%changelog