2011-07-02 01:12:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package daps
|
|
|
|
#
|
2018-10-19 17:15:44 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-02 01:12:32 +02:00
|
|
|
#
|
2012-03-08 12:17:04 +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.
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-03-08 12:17:04 +01:00
|
|
|
|
2013-05-02 17:54:21 +02:00
|
|
|
|
2011-09-10 00:40:06 +02:00
|
|
|
Name: daps
|
2018-10-19 17:15:44 +02:00
|
|
|
Version: 3.0.0
|
2012-03-08 12:17:04 +01:00
|
|
|
Release: 0
|
2011-09-10 00:40:06 +02:00
|
|
|
|
2013-01-17 16:37:41 +01:00
|
|
|
###############################################################
|
2015-07-02 18:31:53 +02:00
|
|
|
#
|
2013-01-17 16:37:41 +01:00
|
|
|
# ATTENTION: Do NOT edit this file outside of
|
2016-06-14 12:46:02 +02:00
|
|
|
# https://github.com/openSUSE/daps/blob/develop/packaging/daps.spec
|
2013-01-17 16:37:41 +01:00
|
|
|
#
|
|
|
|
# Your changes will be lost on the next update
|
2016-06-14 12:46:02 +02:00
|
|
|
# If you do not have access to the GitHub repository, notify
|
Version DAPS 2.0~beta1:
- First beta for a new major release
Output targets:
---------------
* the number of subcommands has been significantly reduced, see
"daps --commands", "daps help" and "daps help <SUBCOMMAND>" for
more information
- "html-single" has been replaced by "html --single"
- "jsp" has been replaced with "html --jsp"
- "color-pdf" has been replaced by "pdf" (now produces color PDFS)
- "pdf" has been replaced by "pdf --grayscale --cropmarks"
- "projectfiles" and "projectgraphics" have been replaced with
"list-srcfiles" (see daps help "list-srcfiles" for more options)
- all dist-* commands have been removed
- when calling deprecated targets, an error message hinting at a
valid alternative (is existing) is shown
* subcommand bigfile now generates a bigfile for the given rootid
(rather than for the complate set); target bigfile-reduced has been
dropped
* subbcommands package-pdf and package-html now have switches
--dcoumentfiles, --desktopfiles and --pagefiles which generate
the resource files for GNOME and KDE
* new subcommands
- "clean-package" removes all generated package data for the given
DC-file. Generated images and profiled sources will _not_ be
deleted.
- "dapsenv" shows a list of the most important make variables
and their values
- "images" generates images only for a given rootid. Intended for
debugging purposes
- "package-src" (creates a tarball with profiled XML sources and
images); switch --set-date allows to specify a build date (default
date is "now")
* ePUB generation has been completely rewritten (pure make solution,
no longer uses the ruby script from upstream); generated ePUBs
now validate with epubcheck3.
- added support for .mobi (Amzon Kindle format). Requires calibre.
(ticket #98)
* replaced support for HTML4 with support for HTML5 (--html5)
xhtml remains the default, html4 is no longer supported
* to nullify a CSS-file definition for HTML or EPUB (HTML_CSS or
EPUB_CSS) from the DC-file, specify "--css none"
Miscellaneous:
--------------
* now supports XSLT processor saxon6 (in addition to xsltproc),
specify with --xsltprocessor (default: xsltproc)
* improved verbosity handling:
- if output is not a terminal (e.g. pipe) only prints the
resulting filename (-v0)
- default verbosity shows a result message plus filename (-v1)
- -v2 shows additional messages
- -v3 shows the complete make output from make -j1 (commands are
executed successively, not parallel)
- --debug shows the complete make output from make -j1+x
(commands are executed parallel; this also shows in the debug
output)
* added support for JPG images (ticket #101)
* added support for a "static/" directory in STYLEROOT containing
css, js and images taht are reference in the CSS and the
stylesheets for HTML
* New general switch --commands shows all available subcommands
* if the XML sources are not well-formed, a meaningful error
message is shown
* xsltparameters have to be submitted as --param PARAM=VALUE or
--stringparam PARAM=VALUE (the "=" is mandatory, used to be
a "space2 with DAPS 1.x)
* output formats are only re-generated when the source files
(xml, entity files or images) have changed. To force a rebuild
run DAPS with --force or run a suitable clean command
* added switches --author and --productname switches to daps-init
Config file changes:
--------------------
* New config file variables:
COVERT_OPS_JPG: command-line options for "convert" for converting
jpg images to grayscale
FOP_STACKSIZE: set stacksize for fop (ticket #82)
META, META_STR: permanently run html and PDF builds with
--meta
STATIC_DIR: custom static directory
XML_USER_CATALOGS: add custom catalogs to XML_CATALOG_FILES
(ticket #99)
XSLTPROCESSOR: Use the specified XSLT processor
(saxon6 or xsltproc)
Code changes:
-------------
* big makefile (common.mk) has been split into several small files
- easier to maintain
- improved performance by only loading makefiles that are needed
for the given subcommand
* added a comprehensive test suite to ensure better quality when
releasing
* no longer requires Bash 4--Bash 3 is sufficient
Documentation:
--------------
* Quickstart has been updated to cover DAPS 2.0
* Update of User Guide is WIP
* new Tutorial "How to Write an Article with DocBook and DAPS"
Bugfixes:
---------
Numerous bugfixes and improvements, among them:
* #64 Split Makefiles
* #66 daps: DC Files and Platform Dependant Paths
* #73 Create PDFs for target locdrop if --def-file is specified
* #82 Add config parameter for FOP (XEP?) stacksize
* #85 Set a fixed <date/> date with package-src target
* #98 Adjust EPUB Stylesheet to Suppot Kindle
* #99 Support User Definied Catalogs by Setting XML_CATALOG_FILES...
* #101 DAPS should support JPEG as a source file format
* #103 Exit target package-source when there are missing images
* #105 DAPS's sub-commands are somewhat inconsistent
* #106 Enable overwriting xsltproc params
* #108 Support FOP 1.1
* #115 --css/HTML_CSS parameter is completely ignored if styleroot...
* #116 Move font requirements from daps specfile to ...
* #126 Add --show switch to checklink
* #127 productinfo sometimes fails and is slow
* #129 Get rid of native xsltproc calls
* #136 daps Ignores Language in Document for Spell Checking
* #138 DAPS makes it easier to create black/white PDFs than ...
* #139 When trying to create a PDF file with malformed XSLT files...
* #142 Saxon seems to have problems with NovDoc documents
* #146 EPUB CRITICAL Error: No manual specific tmp dir
* #147 EPUB validation error on callouts
* #148 --meta only works when profiling
* #159 Fatal Error in ePUB stylesheets
* #163 JSP Stylesheets fail with saxon6
* #165 FOP config file is unnecessary
* #166 Reduce Logging Output of Apache's FOP
* #171 Remove unnecessary "eval" statements in the DAPS code
* #192 Create filenames in a single place
* #196 EPUB does not build with saxon
Known Issues:
-------------
* the webhelp code hasn't been touched at all; webhelp will most
likely not work
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=133
2013-12-11 10:05:58 +01:00
|
|
|
# <fsundermeyer@opensuse.org> or <toms@opensuse.org>
|
2013-01-17 16:37:41 +01:00
|
|
|
# or send a patch
|
|
|
|
#
|
|
|
|
################################################################
|
|
|
|
#
|
2016-06-14 12:46:02 +02:00
|
|
|
# Please submit bugfixes or comments via
|
|
|
|
# https://github.com/openSUSE/daps/issues
|
2013-01-17 16:37:41 +01:00
|
|
|
#
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
%define docbuilddir %{_datadir}/daps
|
|
|
|
%define regcat %{_bindir}/sgml-register-catalog
|
|
|
|
%define dbstyles %{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
2012-03-08 12:17:04 +01:00
|
|
|
%define daps_catalog for-catalog-%{name}.xml
|
2011-07-02 01:12:32 +02:00
|
|
|
|
|
|
|
Summary: DocBook Authoring and Publishing Suite
|
2018-11-30 16:19:08 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-02 01:12:32 +02:00
|
|
|
Group: Productivity/Publishing/XML
|
2017-05-30 13:32:43 +02:00
|
|
|
Url: https://github.com/openSUSE/daps
|
2014-01-13 16:52:09 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2011-07-02 01:12:32 +02:00
|
|
|
Source1: %{name}.rpmlintrc
|
2016-10-05 18:07:19 +02:00
|
|
|
Source2: %{name}-fetch-source-git
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-21 13:18:10 +01:00
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2012-12-21 13:18:10 +01:00
|
|
|
BuildRequires: ImageMagick
|
2014-05-21 17:32:19 +02:00
|
|
|
BuildRequires: automake
|
2016-07-16 21:13:07 +02:00
|
|
|
BuildRequires: bash >= 4
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: dia
|
2013-03-22 16:15:00 +01:00
|
|
|
BuildRequires: docbook-xsl-stylesheets >= 1.77
|
2012-03-08 12:17:04 +01:00
|
|
|
BuildRequires: docbook_4
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: fdupes
|
2015-04-21 15:18:10 +02:00
|
|
|
BuildRequires: ghostscript
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: inkscape
|
2018-10-23 17:16:26 +02:00
|
|
|
BuildRequires: jing
|
2012-12-21 13:18:10 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: libxslt
|
2015-04-21 15:18:10 +02:00
|
|
|
BuildRequires: libxslt-tools
|
2012-12-21 13:18:10 +01:00
|
|
|
BuildRequires: poppler-tools
|
2012-03-08 12:17:04 +01:00
|
|
|
BuildRequires: python-xml
|
2018-10-22 14:58:41 +02:00
|
|
|
BuildRequires: python3-lxml
|
2012-03-08 12:17:04 +01:00
|
|
|
BuildRequires: suse-xsl-stylesheets
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: svg-dtd
|
|
|
|
BuildRequires: transfig
|
2016-06-14 12:46:02 +02:00
|
|
|
BuildRequires: xerces-j2
|
2012-12-21 13:18:10 +01:00
|
|
|
BuildRequires: xml-commons-jaxp-1.3-apis
|
2011-09-08 17:27:58 +02:00
|
|
|
BuildRequires: xmlgraphics-fop >= 0.94
|
2015-04-21 15:18:10 +02:00
|
|
|
BuildRequires: xmlstarlet
|
2012-03-08 12:17:04 +01:00
|
|
|
|
2018-10-23 17:16:26 +02:00
|
|
|
# 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
|
|
|
|
#
|
2018-11-09 11:10:17 +01:00
|
|
|
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
|
2018-10-23 17:16:26 +02:00
|
|
|
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
|
|
|
|
|
2012-12-21 13:18:10 +01:00
|
|
|
#
|
|
|
|
# In order to keep the requirements list as short as possible, only packages
|
2016-06-14 12:46:02 +02:00
|
|
|
# needed to build EPUB, HTML and PDF are really required
|
2012-12-21 13:18:10 +01:00
|
|
|
# All other packages required for editing or more exotic output formats
|
|
|
|
# are recommended rather than required
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
PreReq: libxml2
|
|
|
|
PreReq: sgml-skel
|
|
|
|
|
2012-03-08 12:17:04 +01:00
|
|
|
Requires: ImageMagick
|
2016-07-16 21:13:07 +02:00
|
|
|
Requires: bash >= 4
|
2011-07-02 01:12:32 +02:00
|
|
|
Requires: dia
|
2013-03-22 16:15:00 +01:00
|
|
|
Requires: docbook-xsl-stylesheets >= 1.77
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: docbook5-xsl-stylesheets >= 1.77
|
2012-03-08 12:17:04 +01:00
|
|
|
Requires: docbook_4
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: docbook_5
|
2011-09-15 22:47:13 +02:00
|
|
|
Requires: ghostscript-library
|
2011-07-02 01:12:32 +02:00
|
|
|
Requires: inkscape
|
2018-10-19 17:15:44 +02:00
|
|
|
Requires: java >= 1.8.0
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: jing
|
2012-03-08 12:17:04 +01:00
|
|
|
Requires: libxslt
|
2011-07-02 01:12:32 +02:00
|
|
|
Requires: make
|
2011-09-15 22:47:13 +02:00
|
|
|
Requires: poppler-tools
|
2012-12-21 13:18:10 +01:00
|
|
|
Requires: python-xml
|
2018-10-22 14:58:41 +02:00
|
|
|
Requires: python3-lxml
|
2012-12-21 15:20:52 +01:00
|
|
|
Requires: suse-xsl-stylesheets
|
2014-03-14 17:27:51 +01:00
|
|
|
Requires: svg-schema
|
2011-07-02 01:12:32 +02:00
|
|
|
Requires: transfig
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: xerces-j2
|
2012-12-21 13:18:10 +01:00
|
|
|
Requires: xml-commons-jaxp-1.3-apis
|
2011-09-08 17:27:58 +02:00
|
|
|
Requires: xmlgraphics-fop >= 0.94
|
2014-03-14 17:27:51 +01:00
|
|
|
Requires: xmlstarlet
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: zip
|
2011-07-02 01:12:32 +02:00
|
|
|
|
2016-06-14 12:46:02 +02:00
|
|
|
Recommends: aspell-en
|
|
|
|
Recommends: calibre
|
2012-03-08 12:17:04 +01:00
|
|
|
Recommends: epubcheck
|
2012-12-21 13:18:10 +01:00
|
|
|
Recommends: exiftool
|
2018-11-21 16:24:51 +01:00
|
|
|
%ifarch aarch64 %{ix86} x86_64
|
|
|
|
Recommends: libreoffice-draw
|
|
|
|
%endif
|
2012-12-21 13:18:10 +01:00
|
|
|
Recommends: optipng
|
|
|
|
Recommends: perl-checkbot
|
2011-07-02 01:12:32 +02:00
|
|
|
Recommends: remake
|
2014-04-24 22:06:40 +02:00
|
|
|
Recommends: suse-doc-style-checker
|
2018-10-19 17:15:44 +02:00
|
|
|
Recommends: suse-documentation-dicts-en
|
2015-04-21 15:18:10 +02:00
|
|
|
Recommends: w3m
|
2018-10-19 17:15:44 +02:00
|
|
|
Recommends: xmlformat
|
|
|
|
|
2012-12-21 13:18:10 +01:00
|
|
|
# Internal XEP package:
|
|
|
|
Recommends: xep
|
|
|
|
|
2013-02-13 15:52:00 +01:00
|
|
|
Obsoletes: susedoc < 4.3.32
|
|
|
|
Provides: susedoc = 4.3.32
|
2011-07-02 01:12:32 +02:00
|
|
|
|
|
|
|
%description
|
2011-07-26 12:46:29 +02:00
|
|
|
DocBook Authoring and Publishing Suite (DAPS)
|
2011-07-02 01:12:32 +02:00
|
|
|
|
2011-07-26 12:46:29 +02:00
|
|
|
DAPS contains a set of stylesheets, scripts and makefiles that enable
|
2011-07-02 01:12:32 +02:00
|
|
|
you to create HTML, PDF, EPUB and other formats from DocBook XML with a
|
|
|
|
single command. It also contains tools to generate profiled source
|
|
|
|
tarballs for distributing your XML sources for translation or review.
|
|
|
|
|
2011-07-26 12:46:29 +02:00
|
|
|
DAPS also includes tools that assist you when writing DocBook XML:
|
2011-07-02 01:12:32 +02:00
|
|
|
linkchecker, validator, spellchecker, editor macros and stylesheets for
|
|
|
|
converting DocBook XML.
|
|
|
|
|
2011-07-26 12:46:29 +02:00
|
|
|
DAPS is the successor of susedoc. See
|
2011-07-02 01:12:32 +02:00
|
|
|
/usr/share/doc/packages/daps/README.upgrade_from_susedoc_4.x
|
|
|
|
for upgrade instructions.
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
#%%patch1 -p1
|
|
|
|
|
2018-10-19 17:15:44 +02:00
|
|
|
# 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
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
%build
|
2012-03-08 12:17:04 +01:00
|
|
|
%configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog
|
|
|
|
%__make %{?_smp_mflags}
|
2011-07-02 01:12:32 +02:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
%install
|
2012-03-08 12:17:04 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2011-07-02 01:12:32 +02:00
|
|
|
|
|
|
|
# create symlinks:
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
|
|
|
|
|
|
|
#----------------------
|
|
|
|
%post
|
2018-10-19 17:15:44 +02:00
|
|
|
update-xml-catalog
|
2011-07-02 01:12:32 +02:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
#----------------------
|
|
|
|
%postun
|
2018-10-19 17:15:44 +02:00
|
|
|
update-xml-catalog
|
2011-07-02 01:12:32 +02:00
|
|
|
exit 0
|
|
|
|
|
2013-01-17 16:37:41 +01:00
|
|
|
#----------------------
|
|
|
|
%posttrans
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
#----------------------
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2018-10-19 17:15:44 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2011-07-02 01:12:32 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
|
2016-07-16 21:13:07 +02:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
2016-06-14 12:46:02 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2016-07-16 21:13:07 +02:00
|
|
|
%dir %{_datadir}/xml/%{name}
|
|
|
|
%dir %{_datadir}/xml/%{name}/schema
|
2015-06-10 16:04:46 +02:00
|
|
|
|
2018-10-19 17:15:44 +02:00
|
|
|
# Catalogs
|
|
|
|
%config %{_sysconfdir}/xml/catalog.d/%{name}.xml
|
|
|
|
|
|
|
|
# Config files
|
2011-07-02 01:12:32 +02:00
|
|
|
%config %{_sysconfdir}/%{name}/*
|
|
|
|
|
2018-10-19 17:15:44 +02:00
|
|
|
# Man/Doc
|
2011-09-19 13:47:06 +02:00
|
|
|
%doc %{_mandir}/man1/*.1%{ext_man}
|
2011-07-02 01:12:32 +02:00
|
|
|
%doc %{_defaultdocdir}/%{name}/*
|
|
|
|
|
|
|
|
%{_bindir}/*
|
2018-10-19 17:15:44 +02:00
|
|
|
%attr(644, root, root) %{_datadir}/%{name}/libexec/*.xsl
|
2016-07-16 21:13:07 +02:00
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
2011-07-02 01:12:32 +02:00
|
|
|
%{_datadir}/emacs/site-lisp/docbook_macros.el
|
2015-06-10 16:04:46 +02:00
|
|
|
%{_datadir}/xml/daps/schema/*
|
2011-07-02 01:12:32 +02:00
|
|
|
%{docbuilddir}
|
|
|
|
#----------------------
|
2012-03-08 12:17:04 +01:00
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
%changelog
|