Accepting request 746671 from home:StefanBruens:branches:GNOME:Factory

Fix broken gtkdoc-mkpdf (config.dblatex not set in config.py). 

- Move gtkdoc-mkpdf to a separate package, pulling in the required
  dblatex. Set dblatex path so configure puts it into config.py.
- Drop ChangeLog from doc (not updated since 2009), NEWS is sufficient.
- Update description, gtk-doc no longer uses perl but python.
- Spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/746671
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk-doc?expand=0&rev=71
This commit is contained in:
Dominique Leuenberger 2019-11-12 12:08:10 +00:00 committed by Git OBS Bridge
parent 1c9b2991b7
commit ed6a3c904a
2 changed files with 39 additions and 15 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Nov 8 17:40:31 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Move gtkdoc-mkpdf to a separate package, pulling in the required
dblatex. Set dblatex path so configure puts it into config.py.
- Drop ChangeLog from doc (not updated since 2009), NEWS is sufficient.
- Update description, gtk-doc no longer uses perl but python.
- Spec file cleanup
-------------------------------------------------------------------
Mon Sep 2 18:59:35 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -19,7 +19,7 @@
Name: gtk-doc
Version: 1.32
Release: 0
Summary: GTK+ DocBook Documentation Generator
Summary: GTK+ Documentation Generator
License: GPL-2.0-or-later
Group: Productivity/Publishing/SGML
URL: http://www.gtk.org/gtk-doc/
@ -47,10 +47,20 @@ Provides: gtkdoc = %{version}
Obsoletes: gtkdoc
%description
Gtkdoc is a set of Perl scripts that generate API reference
documentation in DocBook 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.
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.
%package mkpdf
Summary: Gtkdoc PDF Generator
Supplements: packageand(gtk-doc:dblatex)
Requires: %{name} = %{version}
Requires: dblatex
%description mkpdf
PDF generator for Gtkdoc.
%lang_package
@ -58,32 +68,37 @@ generate the documentation for GLib, Gtk+, and GNOME.
%autosetup -p1
%build
%configure PYTHON=%{_bindir}/python3
%configure PYTHON=%{_bindir}/python3 \
DBLATEX=%{_bindir}/dblatex
make %{?_smp_mflags}
%install
%make_install
# Do not install the cmake files for now - they need more clarification (1.25)
rm -rf %{buildroot}%{_libdir}/cmake
mkdir -p %{buildroot}%{_datadir}/gtk-doc/html
mv -v doc/README doc/doc.README
%find_lang %{name}-manual %{?no_lang_C}
%files
%license COPYING
%doc AUTHORS COPYING-DOCS ChangeLog NEWS README TODO doc/*
%license COPYING COPYING-DOCS
%doc AUTHORS NEWS README TODO doc/*
%{_bindir}/gtkdoc-*
%{_bindir}/gtkdocize
%exclude %{_bindir}/gtkdoc-mkpdf
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/gtk-doc.m4
%{_datadir}/gtk-doc/
%exclude %{_datadir}/gtk-doc/python/gtkdoc/mkpdf*
%{_datadir}/pkgconfig/gtk-doc.pc
%doc %{_datadir}/help/C/gtk-doc-manual/
%dir /usr/share/cmake
%dir /usr/share/cmake/GtkDoc
/usr/share/cmake/GtkDoc/GtkDocConfig.cmake
/usr/share/cmake/GtkDoc/GtkDocConfigVersion.cmake
/usr/share/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
%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*
%files lang -f %{name}-manual.lang