Accepting request 644005 from Documentation:Tools

update to 3.0.0

OBS-URL: https://build.opensuse.org/request/show/644005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/daps?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2018-11-06 12:59:55 +00:00 committed by Git OBS Bridge
commit 7eecf66081
4 changed files with 74 additions and 38 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d0f5e3434fa832e28e44c7afbb4b6755f963cf9870865e97b38df5bd4f9e4e3
size 2368834

3
daps-3.0.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:062eb5420d6995f4d179ed2faffbed265d9ae5055be3a9547d1084fe020a3501
size 2387786

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Tue Oct 23 10:07:12 UTC 2018 - sknorr@suse.com
- Workaround to make it possible to build things
-------------------------------------------------------------------
Fri Oct 19 14:02:11 UTC 2018 - rick.salevsky@suse.com
Stable release DAPS 3.0.0:
* New Features:
- added full support for Python3
- added SVG support for online-docs
- added support to build AsciiDoc documentation
- integrated hunspell and make aspell optional
- implement file not found for XIncludes
* Bugfixes:
- #419: HTML and PDF builds need different paths for Admonition
and Callout Images
- #322: Add --xmlonly / --imgonly switches to list-srcfiles
- #416: DAPS Won't Built With UTF-8 Characters in XML Filenames
- #397: Spaces in path problem
- #469: RPMLINT complains about permissions of XSLT stylesheet
- #464: xmlformat incorrectly formats variablelist terms
- #466: Build issues
- #475: Tab completion creates error
- PDF fails when static links in build/.tmp already exist
* Documentation:
- Various updates to reflect changes in the code
- Improve help text for daps-xslt
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 20 13:51:14 UTC 2017 - fsundermeyer@opensuse.org Tue Jun 20 13:51:14 UTC 2017 - fsundermeyer@opensuse.org
@ -15,6 +48,7 @@ Hotfix for 2.4.0:
Changelog: Changelog:
- merged SLE 12 and Factory Changelogs - merged SLE 12 and Factory Changelogs
- remove daps-dont-complain-about-deprecated-option.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 30 11:28:44 UTC 2017 - fsundermeyer@opensuse.org Tue May 30 11:28:44 UTC 2017 - fsundermeyer@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package daps # spec file for package daps
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: daps Name: daps
Version: 2.4.0 Version: 3.0.0
Release: 0 Release: 0
############################################################### ###############################################################
@ -42,7 +42,7 @@ Release: 0
%define daps_catalog for-catalog-%{name}.xml %define daps_catalog for-catalog-%{name}.xml
Summary: DocBook Authoring and Publishing Suite Summary: DocBook Authoring and Publishing Suite
License: GPL-2.0 or GPL-3.0 License: GPL-2.0-only OR GPL-3.0-only
Group: Productivity/Publishing/XML Group: Productivity/Publishing/XML
Url: https://github.com/openSUSE/daps Url: https://github.com/openSUSE/daps
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
@ -61,13 +61,13 @@ BuildRequires: docbook_4
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: ghostscript BuildRequires: ghostscript
BuildRequires: inkscape BuildRequires: inkscape
BuildRequires: jing
BuildRequires: libxml2-tools BuildRequires: libxml2-tools
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: libxslt-tools BuildRequires: libxslt-tools
BuildRequires: poppler-tools BuildRequires: poppler-tools
BuildRequires: python-lxml
BuildRequires: python-xml BuildRequires: python-xml
#BuildRequires: sgml-skel BuildRequires: python3-lxml
BuildRequires: suse-xsl-stylesheets BuildRequires: suse-xsl-stylesheets
BuildRequires: svg-dtd BuildRequires: svg-dtd
BuildRequires: transfig BuildRequires: transfig
@ -76,6 +76,19 @@ BuildRequires: xml-commons-jaxp-1.3-apis
BuildRequires: xmlgraphics-fop >= 0.94 BuildRequires: xmlgraphics-fop >= 0.94
BuildRequires: xmlstarlet BuildRequires: xmlstarlet
# Asciidoctor is not available on Leap 42.3
# If we have asciidoctor we build the asciidoc manual
# for which we need docbook_5 and jing
#
%if 0%{?sle_version} == 120300
Recommends: rubygem(%{rb_default_ruby_abi}:asciidoctor)
%else
Requires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
BuildRequires: docbook_5
BuildRequires: jing
BuildRequires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
%endif
# #
# In order to keep the requirements list as short as possible, only packages # In order to keep the requirements list as short as possible, only packages
# needed to build EPUB, HTML and PDF are really required # needed to build EPUB, HTML and PDF are really required
@ -94,13 +107,14 @@ Requires: docbook_4
Requires: docbook_5 Requires: docbook_5
Requires: ghostscript-library Requires: ghostscript-library
Requires: inkscape Requires: inkscape
Requires: java >= 1.8.0
Requires: jing Requires: jing
Requires: libreoffice-draw
Requires: libxslt Requires: libxslt
Requires: make Requires: make
Requires: poppler-tools Requires: poppler-tools
Requires: python-lxml
Requires: python-xml Requires: python-xml
#Requires: sgml-skel Requires: python3-lxml
Requires: suse-xsl-stylesheets Requires: suse-xsl-stylesheets
Requires: svg-schema Requires: svg-schema
Requires: transfig Requires: transfig
@ -118,10 +132,12 @@ Recommends: optipng
Recommends: perl-checkbot Recommends: perl-checkbot
Recommends: remake Recommends: remake
Recommends: suse-doc-style-checker Recommends: suse-doc-style-checker
Recommends: suse-documentation-dicts-en
Recommends: w3m Recommends: w3m
Recommends: xmlformat
# Internal XEP package: # Internal XEP package:
Recommends: xep Recommends: xep
Recommends: xmlformat
Obsoletes: susedoc < 4.3.32 Obsoletes: susedoc < 4.3.32
Provides: susedoc = 4.3.32 Provides: susedoc = 4.3.32
@ -148,6 +164,10 @@ for upgrade instructions.
%setup -q -n %{name} %setup -q -n %{name}
#%%patch1 -p1 #%%patch1 -p1
# Correct shebang line as suggested in
# https://lists.opensuse.org/opensuse-packaging/2018-03/msg00017.html
sed -i '1 s|/usr/bin/env python|/usr/bin/python|' libexec/daps-xmlwellformed
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
%build %build
%configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog %configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog
@ -162,35 +182,12 @@ make install DESTDIR=$RPM_BUILD_ROOT
#---------------------- #----------------------
%post %post
# update-xml-catalog
# XML Catalog entries for daps profiling
#
# remove existing entries first (if existing) - needed for
# zypper in, since it does not call postun
#
# delete in case of an update, which $1=2
if [ "2" = "$1" ]; then
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--del %{name} || true
fi
# ... and readd it again
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--add /etc/xml/%{daps_catalog}
exit 0 exit 0
#---------------------- #----------------------
%postun %postun
# update-xml-catalog
# delete catalog entry for daps profiling
# only run if package is really uninstalled ($1 = 0) and not
# in case of an update
#
if [ 0 = $1 ]; then
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--del %{name}
fi
exit 0 exit 0
#---------------------- #----------------------
@ -200,6 +197,7 @@ exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%dir %{_defaultdocdir}/%{name} %dir %{_defaultdocdir}/%{name}
@ -209,14 +207,18 @@ exit 0
%dir %{_datadir}/xml/%{name} %dir %{_datadir}/xml/%{name}
%dir %{_datadir}/xml/%{name}/schema %dir %{_datadir}/xml/%{name}/schema
%config %{_sysconfdir}/xml/*.xml # Catalogs
%config %{_sysconfdir}/xml/catalog.d/%{name}.xml
# Config files
%config %{_sysconfdir}/%{name}/* %config %{_sysconfdir}/%{name}/*
# Man/Doc
%doc %{_mandir}/man1/*.1%{ext_man} %doc %{_mandir}/man1/*.1%{ext_man}
%doc %{_defaultdocdir}/%{name}/* %doc %{_defaultdocdir}/%{name}/*
%{_bindir}/* %{_bindir}/*
%{_datadir}/%{name}/* %attr(644, root, root) %{_datadir}/%{name}/libexec/*.xsl
%{_datadir}/bash-completion/completions/%{name} %{_datadir}/bash-completion/completions/%{name}
%{_datadir}/emacs/site-lisp/docbook_macros.el %{_datadir}/emacs/site-lisp/docbook_macros.el
%{_datadir}/xml/daps/schema/* %{_datadir}/xml/daps/schema/*