2011-07-02 01:12:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package daps
|
|
|
|
#
|
2022-02-07 18:55:33 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2020-01-07 07:40:41 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-02 01:12:32 +02:00
|
|
|
#
|
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
|
2022-02-07 18:55:33 +01:00
|
|
|
Version: 3.3.0
|
2012-03-08 12:17:04 +01:00
|
|
|
Release: 0
|
2011-09-10 00:40:06 +02:00
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
%define docbuilddir %{_datadir}/daps
|
|
|
|
|
|
|
|
Summary: DocBook Authoring and Publishing Suite
|
2020-01-07 07:40:41 +01:00
|
|
|
License: GPL-2.0-only OR GPL-3.0-only
|
2011-07-02 01:12:32 +02:00
|
|
|
Group: Productivity/Publishing/XML
|
2020-01-07 07:40:41 +01: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
|
|
|
|
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
|
2021-05-11 15:26:24 +02:00
|
|
|
BuildRequires: docbook_5
|
2011-07-02 01:12:32 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
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
|
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
|
2016-06-14 12:46:02 +02:00
|
|
|
BuildRequires: xerces-j2
|
2020-01-07 07:40:41 +01:00
|
|
|
BuildRequires: xml-apis
|
2011-09-08 17:27:58 +02:00
|
|
|
BuildRequires: xmlgraphics-fop >= 0.94
|
2015-04-21 15:18:10 +02:00
|
|
|
BuildRequires: xmlstarlet
|
2018-10-23 17:16:26 +02:00
|
|
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
|
|
|
|
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-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
|
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
|
2016-06-14 12:46:02 +02:00
|
|
|
Requires: xerces-j2
|
2020-01-07 07:40:41 +01:00
|
|
|
Requires: xml-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
|
2021-05-11 15:26:24 +02:00
|
|
|
Requires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
2011-07-02 01:12:32 +02:00
|
|
|
|
2016-06-14 12:46:02 +02:00
|
|
|
Recommends: aspell-en
|
|
|
|
Recommends: calibre
|
2021-05-11 15:26:24 +02:00
|
|
|
Recommends: ditaa
|
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:
|
2021-05-11 15:26:24 +02:00
|
|
|
Suggests: xep
|
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:
|
2021-05-11 15:26:24 +02:00
|
|
|
validator, link checker, spellchecker, editor macros and stylesheets for
|
2011-07-02 01:12:32 +02:00
|
|
|
converting DocBook XML.
|
|
|
|
|
|
|
|
|
2022-02-07 18:55:33 +01:00
|
|
|
|
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
#--------------------------------------------------------------------------
|
2022-02-07 18:55:33 +01:00
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
%prep
|
2021-05-11 15:26:24 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2011-07-02 01:12:32 +02:00
|
|
|
|
2018-10-19 17:15:44 +02:00
|
|
|
# Correct shebang line as suggested in
|
|
|
|
# https://lists.opensuse.org/opensuse-packaging/2018-03/msg00017.html
|
2021-06-10 12:53:43 +02:00
|
|
|
sed -i '1 s|/usr/bin/env python|/usr/bin/python|' libexec/daps-xmlwellformed \
|
|
|
|
libexec/getentityname.py \
|
|
|
|
libexec/validate-tables.py
|
2018-10-19 17:15:44 +02:00
|
|
|
|
2011-07-02 01:12:32 +02:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
%build
|
2012-03-08 12:17:04 +01:00
|
|
|
%configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog
|
2021-05-11 15:26:24 +02:00
|
|
|
%__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}/*
|
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
|