2007-01-16 00:16:00 +01:00
|
|
|
#
|
2011-04-20 13:19:29 +02:00
|
|
|
# spec file for package gtk-doc
|
2007-01-16 00:16:00 +01:00
|
|
|
#
|
2019-12-16 13:52:55 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
2007-01-16 00:16:00 +01:00
|
|
|
#
|
2009-02-06 18:34:28 +01:00
|
|
|
# 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.
|
|
|
|
|
2019-10-04 17:51:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:16:00 +01:00
|
|
|
#
|
|
|
|
|
2012-02-26 14:30:25 +01:00
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "doc"
|
|
|
|
%bcond_without doc
|
|
|
|
%define psuffix -manual
|
|
|
|
%else
|
|
|
|
%bcond_with doc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: gtk-doc%{?psuffix}
|
2019-10-04 17:51:13 +02:00
|
|
|
Version: 1.32
|
2011-12-22 21:34:59 +01:00
|
|
|
Release: 0
|
2019-12-16 13:52:55 +01:00
|
|
|
%if "%{flavor}" == ""
|
2019-11-12 13:08:10 +01:00
|
|
|
Summary: GTK+ Documentation Generator
|
2018-03-05 14:51:49 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-02-22 00:14:45 +01:00
|
|
|
Group: Productivity/Publishing/SGML
|
2019-12-16 13:52:55 +01:00
|
|
|
%else
|
|
|
|
Summary: Manual for Gtkdoc
|
|
|
|
License: GFDL-1.1-or-later
|
|
|
|
Group: Documentation/HTML
|
|
|
|
%endif
|
2018-03-05 14:51:49 +01:00
|
|
|
URL: http://www.gtk.org/gtk-doc/
|
2017-10-27 15:12:59 +02:00
|
|
|
# When updating this package, please don't forget to update the gtk-doc.m4 Source in glib2.
|
2019-12-16 13:52:55 +01:00
|
|
|
Source0: https://download.gnome.org/sources/gtk-doc/1.32/gtk-doc-%{version}.tar.xz
|
2018-09-26 18:49:03 +02:00
|
|
|
|
2009-02-06 18:34:28 +01:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2017-10-27 15:12:59 +02:00
|
|
|
BuildRequires: libtool
|
2012-02-26 14:30:25 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2017-09-04 14:48:25 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-10-30 15:38:29 +01:00
|
|
|
BuildRequires: python3-base
|
2009-02-06 18:34:28 +01:00
|
|
|
BuildRequires: sgml-skel
|
2019-12-16 13:52:55 +01:00
|
|
|
%if %{with doc}
|
|
|
|
BuildRequires: fdupes
|
2013-06-23 15:45:36 +02:00
|
|
|
BuildRequires: yelp-tools
|
2019-12-16 13:52:55 +01:00
|
|
|
# gtk-doc-manual was split from the main package
|
|
|
|
Provides: gtk-doc:%{_datadir}/help/C/gtk-doc-manual/index.docbook
|
|
|
|
Conflicts: gtk-doc < %{version}-%{release}
|
|
|
|
Conflicts: gtk-doc-lang < %{version}-%{release}
|
|
|
|
Recommends: gtk-doc-manual-lang
|
|
|
|
%else
|
|
|
|
BuildRequires: python3-pygments
|
|
|
|
BuildRequires: xsltproc
|
2011-02-22 00:14:45 +01:00
|
|
|
Requires: docbook-xsl-stylesheets
|
|
|
|
Requires: docbook_4
|
2017-09-04 14:48:25 +02:00
|
|
|
Requires: glib2-devel
|
2012-02-26 14:30:25 +01:00
|
|
|
Requires: libxml2-tools
|
2019-10-04 17:51:13 +02:00
|
|
|
Requires: python3-pygments
|
2016-06-14 16:57:22 +02:00
|
|
|
Requires: xsltproc
|
2019-12-16 13:52:55 +01:00
|
|
|
Recommends: gtk-doc-manual
|
2007-01-16 00:16:00 +01:00
|
|
|
# Old for <= 10.2 & CODE10
|
|
|
|
Provides: gtkdoc = %{version}
|
|
|
|
Obsoletes: gtkdoc
|
2019-12-16 13:52:55 +01:00
|
|
|
%endif
|
|
|
|
BuildArch: noarch
|
2007-01-16 00:16:00 +01:00
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%if "%{flavor}" == ""
|
2007-01-16 00:16:00 +01:00
|
|
|
%description
|
2019-11-12 13:08:10 +01:00
|
|
|
Gtkdoc is a set of Python scripts that generates API reference
|
|
|
|
documentation in e.g DocBook, HTML or PDF format. It can extract
|
|
|
|
documentation from source code comments in a manner similar to
|
|
|
|
Java-doc. It is used to generate the documentation for GLib,
|
|
|
|
Gtk+, and GNOME.
|
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%else
|
|
|
|
%description
|
|
|
|
User manual for Gtkdoc
|
|
|
|
%endif
|
|
|
|
|
2019-11-12 13:08:10 +01:00
|
|
|
%package mkpdf
|
|
|
|
Summary: Gtkdoc PDF Generator
|
|
|
|
Supplements: packageand(gtk-doc:dblatex)
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: dblatex
|
|
|
|
|
|
|
|
%description mkpdf
|
|
|
|
PDF generator for Gtkdoc.
|
2007-01-16 00:16:00 +01:00
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%lang_package -n gtk-doc-manual
|
2017-09-04 14:48:25 +02:00
|
|
|
|
2007-01-16 00:16:00 +01:00
|
|
|
%prep
|
2019-12-16 13:52:55 +01:00
|
|
|
%autosetup -p1 -n gtk-doc-%{version}
|
2007-01-16 00:16:00 +01:00
|
|
|
|
|
|
|
%build
|
2019-12-16 13:52:55 +01:00
|
|
|
autoreconf
|
2019-11-12 13:08:10 +01:00
|
|
|
%configure PYTHON=%{_bindir}/python3 \
|
|
|
|
DBLATEX=%{_bindir}/dblatex
|
2011-02-22 00:14:45 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:16:00 +01:00
|
|
|
|
|
|
|
%install
|
2019-12-16 13:52:55 +01:00
|
|
|
%if "%{flavor}" == ""
|
2011-02-22 00:14:45 +01:00
|
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gtk-doc/html
|
2019-12-16 13:52:55 +01:00
|
|
|
%endif
|
2007-01-16 00:16:00 +01:00
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%if %{with doc}
|
|
|
|
%make_install -C help
|
|
|
|
%fdupes %{buildroot}%{_datadir}/help/[a-z]*
|
|
|
|
%find_lang gtk-doc-manual %{?no_lang_C}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{flavor}" == ""
|
2009-12-29 19:02:06 +01:00
|
|
|
%files
|
2019-12-16 13:52:55 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS README TODO
|
2011-12-22 21:34:59 +01:00
|
|
|
%{_bindir}/gtkdoc-*
|
|
|
|
%{_bindir}/gtkdocize
|
2019-11-12 13:08:10 +01:00
|
|
|
%exclude %{_bindir}/gtkdoc-mkpdf
|
2011-12-22 21:34:59 +01:00
|
|
|
%dir %{_datadir}/aclocal
|
|
|
|
%{_datadir}/aclocal/gtk-doc.m4
|
|
|
|
%{_datadir}/gtk-doc/
|
2019-11-12 13:08:10 +01:00
|
|
|
%exclude %{_datadir}/gtk-doc/python/gtkdoc/mkpdf*
|
2011-12-22 21:34:59 +01:00
|
|
|
%{_datadir}/pkgconfig/gtk-doc.pc
|
2019-11-12 13:08:10 +01:00
|
|
|
%dir %{_datadir}/cmake
|
|
|
|
%dir %{_datadir}/cmake/GtkDoc
|
|
|
|
%{_datadir}/cmake/GtkDoc/GtkDocConfig.cmake
|
|
|
|
%{_datadir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
|
|
|
|
%{_datadir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
|
|
|
|
|
|
|
|
%files mkpdf
|
|
|
|
%{_bindir}/gtkdoc-mkpdf
|
|
|
|
%{_datadir}/gtk-doc/python/gtkdoc/mkpdf*
|
2019-12-16 13:52:55 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with doc}
|
|
|
|
%files -n gtk-doc-manual
|
|
|
|
%license COPYING-DOCS
|
|
|
|
%doc %{_datadir}/help/C/gtk-doc-manual
|
2007-01-16 00:16:00 +01:00
|
|
|
|
2019-12-16 13:52:55 +01:00
|
|
|
%files -n gtk-doc-manual-lang -f gtk-doc-manual.lang
|
|
|
|
%endif
|
2007-01-16 00:16:00 +01:00
|
|
|
|
2007-03-22 12:09:51 +01:00
|
|
|
%changelog
|