Sync from SUSE:SLFO:Main daps revision ac872f479a6d84aae8e95bf6c38f0edc

This commit is contained in:
Adrian Schröter 2024-05-03 11:58:07 +02:00
commit 9266a7226e
6 changed files with 2516 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="versionformat">3.3.2</param>
<param name="versionprefix"></param>
<param name="url">https://github.com/openSUSE/daps.git</param>
<param name="scm">git</param>
<param name="revision">3.3.2</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">bz2</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
daps-3.3.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

2268
daps.changes Normal file

File diff suppressed because it is too large Load Diff

11
daps.rpmlintrc Normal file
View File

@ -0,0 +1,11 @@
addFilter("explicit-lib-dependency libxml2")
addFilter("explicit-lib-dependency libxslt")
#addFilter("explicit-lib-dependency liberation-fonts")
#addFilter("non-executable-script .*/daps/lib/daps_functions")
#addFilter("non-executable-script .*/daps/lib/*")
# false positive
#addFilter("no-manual-page-for-binary daps-init")
# internally used only, no man page needed
#addFilter("no-manual-page-for-binary daps-auto.pl")
#addFilter("no-manual-page-for-binary daps-xmlformat")
#addFilter("no-manual-page-for-binary daps-check-deps")

197
daps.spec Normal file
View File

@ -0,0 +1,197 @@
#
# spec file for package daps
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: daps
Version: 3.3.2
Release: 0
%define docbuilddir %{_datadir}/daps
Summary: DocBook Authoring and Publishing Suite
License: GPL-2.0-only OR GPL-3.0-only
Group: Productivity/Publishing/XML
URL: https://github.com/openSUSE/daps
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: ImageMagick
BuildRequires: automake
BuildRequires: bash >= 4
BuildRequires: dia
BuildRequires: docbook-xsl-stylesheets >= 1.77
BuildRequires: docbook_4
BuildRequires: docbook_5
BuildRequires: fdupes
BuildRequires: inkscape
BuildRequires: jing
BuildRequires: libxml2-tools
BuildRequires: libxslt
BuildRequires: libxslt-tools
BuildRequires: poppler-tools
BuildRequires: python3-lxml
BuildRequires: suse-xsl-stylesheets
BuildRequires: svg-dtd
BuildRequires: xerces-j2
BuildRequires: xml-apis
BuildRequires: xmlgraphics-fop >= 0.94
BuildRequires: xmlstarlet
BuildRequires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
# In order to keep the requirements list as short as possible, only packages
# needed to build EPUB, HTML and PDF are really required
# All other packages required for editing or more exotic output formats
# are recommended rather than required
PreReq: libxml2
PreReq: sgml-skel
Requires: ImageMagick
Requires: bash >= 4
Requires: dia
Requires: docbook-xsl-stylesheets >= 1.77
Requires: docbook5-xsl-stylesheets >= 1.77
Requires: docbook_4
Requires: docbook_5
Requires: inkscape
Requires: java >= 1.8.0
Requires: jing
Requires: libxslt
Requires: make
Requires: poppler-tools
Requires: python3-lxml
Requires: suse-xsl-stylesheets
Requires: svg-schema
Requires: xerces-j2
Requires: xml-apis
Requires: xmlgraphics-fop >= 0.94
Requires: xmlstarlet
Requires: zip
Requires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
Recommends: aspell-en
Recommends: calibre
Recommends: ditaa
Recommends: epubcheck
Recommends: exiftool
%ifarch aarch64 %{ix86} x86_64
Recommends: libreoffice-draw
%endif
Recommends: optipng
Recommends: perl-checkbot
Recommends: remake
Recommends: suse-doc-style-checker
Recommends: suse-documentation-dicts-en
Recommends: w3m
Recommends: xmlformat
# Internal XEP package:
Suggests: xep
%description
DocBook Authoring and Publishing Suite (DAPS)
DAPS contains a set of stylesheets, scripts and makefiles that enable
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.
DAPS also includes tools that assist you when writing DocBook XML:
validator, link checker, spellchecker, editor macros and stylesheets for
converting DocBook XML.
#--------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}
# 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 \
libexec/getentityname.py \
libexec/validate-tables.py
#--------------------------------------------------------------------------
%build
%configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog
%__make %{?_smp_mflags}
#--------------------------------------------------------------------------
%install
make install DESTDIR=$RPM_BUILD_ROOT
# create symlinks:
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
#----------------------
%post
update-xml-catalog
exit 0
#----------------------
%postun
update-xml-catalog
exit 0
#----------------------
%posttrans
#----------------------
%files
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_defaultdocdir}/%{name}
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%dir %{_datadir}/%{name}
%dir %{_datadir}/xml/%{name}
%dir %{_datadir}/xml/%{name}/schema
# Catalogs
%config %{_sysconfdir}/xml/catalog.d/%{name}.xml
# Config files
%config %{_sysconfdir}/%{name}/*
# Man/Doc
%doc %{_mandir}/man1/*.1%{ext_man}
%doc %{_defaultdocdir}/%{name}/*
%{_bindir}/*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/emacs/site-lisp/docbook_macros.el
%{_datadir}/xml/daps/schema/*
%{docbuilddir}
#----------------------
%changelog