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:
parent
1c9b2991b7
commit
ed6a3c904a
@ -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>
|
Mon Sep 2 18:59:35 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
45
gtk-doc.spec
45
gtk-doc.spec
@ -19,7 +19,7 @@
|
|||||||
Name: gtk-doc
|
Name: gtk-doc
|
||||||
Version: 1.32
|
Version: 1.32
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: GTK+ DocBook Documentation Generator
|
Summary: GTK+ Documentation Generator
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: Productivity/Publishing/SGML
|
Group: Productivity/Publishing/SGML
|
||||||
URL: http://www.gtk.org/gtk-doc/
|
URL: http://www.gtk.org/gtk-doc/
|
||||||
@ -47,10 +47,20 @@ Provides: gtkdoc = %{version}
|
|||||||
Obsoletes: gtkdoc
|
Obsoletes: gtkdoc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Gtkdoc is a set of Perl scripts that generate API reference
|
Gtkdoc is a set of Python scripts that generates API reference
|
||||||
documentation in DocBook format. It can extract documentation from
|
documentation in e.g DocBook, HTML or PDF format. It can extract
|
||||||
source code comments in a manner similar to Java-doc. It is used to
|
documentation from source code comments in a manner similar to
|
||||||
generate the documentation for GLib, Gtk+, and GNOME.
|
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
|
%lang_package
|
||||||
|
|
||||||
@ -58,32 +68,37 @@ generate the documentation for GLib, Gtk+, and GNOME.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure PYTHON=%{_bindir}/python3
|
%configure PYTHON=%{_bindir}/python3 \
|
||||||
|
DBLATEX=%{_bindir}/dblatex
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_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
|
mkdir -p %{buildroot}%{_datadir}/gtk-doc/html
|
||||||
mv -v doc/README doc/doc.README
|
mv -v doc/README doc/doc.README
|
||||||
%find_lang %{name}-manual %{?no_lang_C}
|
%find_lang %{name}-manual %{?no_lang_C}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING COPYING-DOCS
|
||||||
%doc AUTHORS COPYING-DOCS ChangeLog NEWS README TODO doc/*
|
%doc AUTHORS NEWS README TODO doc/*
|
||||||
%{_bindir}/gtkdoc-*
|
%{_bindir}/gtkdoc-*
|
||||||
%{_bindir}/gtkdocize
|
%{_bindir}/gtkdocize
|
||||||
|
%exclude %{_bindir}/gtkdoc-mkpdf
|
||||||
%dir %{_datadir}/aclocal
|
%dir %{_datadir}/aclocal
|
||||||
%{_datadir}/aclocal/gtk-doc.m4
|
%{_datadir}/aclocal/gtk-doc.m4
|
||||||
%{_datadir}/gtk-doc/
|
%{_datadir}/gtk-doc/
|
||||||
|
%exclude %{_datadir}/gtk-doc/python/gtkdoc/mkpdf*
|
||||||
%{_datadir}/pkgconfig/gtk-doc.pc
|
%{_datadir}/pkgconfig/gtk-doc.pc
|
||||||
%doc %{_datadir}/help/C/gtk-doc-manual/
|
%doc %{_datadir}/help/C/gtk-doc-manual/
|
||||||
%dir /usr/share/cmake
|
%dir %{_datadir}/cmake
|
||||||
%dir /usr/share/cmake/GtkDoc
|
%dir %{_datadir}/cmake/GtkDoc
|
||||||
/usr/share/cmake/GtkDoc/GtkDocConfig.cmake
|
%{_datadir}/cmake/GtkDoc/GtkDocConfig.cmake
|
||||||
/usr/share/cmake/GtkDoc/GtkDocConfigVersion.cmake
|
%{_datadir}/cmake/GtkDoc/GtkDocConfigVersion.cmake
|
||||||
/usr/share/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
|
%{_datadir}/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
|
||||||
|
|
||||||
|
%files mkpdf
|
||||||
|
%{_bindir}/gtkdoc-mkpdf
|
||||||
|
%{_datadir}/gtk-doc/python/gtkdoc/mkpdf*
|
||||||
|
|
||||||
%files lang -f %{name}-manual.lang
|
%files lang -f %{name}-manual.lang
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user