First public beta of daps, the successor of susedoc
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=1
This commit is contained in:
commit
2f1e2955da
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
daps-0.9beta1.tar.bz2
Normal file
3
daps-0.9beta1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ef531a29aa19d7c009bdb01e8c38b79973788f6b3c78be0686a69d838ca18a8d
|
||||||
|
size 698001
|
23
daps.changes
Normal file
23
daps.changes
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 1 21:58:37 UTC 2011 - fsundermeyer@opensuse.org
|
||||||
|
|
||||||
|
First beta of the DocBook Authoring and Publishing Suite (daps),
|
||||||
|
the successor of susedoc. Major changes compared to susedoc:
|
||||||
|
|
||||||
|
* make calls have been replaced by central wrapper script daps
|
||||||
|
with svn/git style syntax
|
||||||
|
* Independent from shell environment
|
||||||
|
* All output generated by susedoc is placed in <wd>/build (default)
|
||||||
|
or in <BUILDDIR> (can be spcified on the copmmand line)
|
||||||
|
* Strict separation between generated content and source files
|
||||||
|
* Typical Linux configuration style hierarchy established:
|
||||||
|
- System wide configuration ( /etc/daps/config )
|
||||||
|
- User configuration ( ~/.daps/config )
|
||||||
|
- Book specific (ENVfile)
|
||||||
|
- Command line
|
||||||
|
* STDOUT output much less verbose, log file is written
|
||||||
|
* Debugging function
|
||||||
|
* bugfixes
|
||||||
|
|
||||||
|
|
||||||
|
|
5
daps.rpmlintrc
Normal file
5
daps.rpmlintrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
addFilter("explicit-lib-dependency libxml2")
|
||||||
|
addFilter("explicit-lib-dependency libxslt")
|
||||||
|
addFilter("explicit-lib-dependency liberation-fonts")
|
||||||
|
#addFilter("non-executable-script .*/bin/create_dm_docu.py")
|
||||||
|
#addFilter("non-executable-script .*/bin/dm/test_dm.py")
|
258
daps.spec
Normal file
258
daps.spec
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
#
|
||||||
|
# spec file for package daps
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# norootforbuild
|
||||||
|
%define dtdversion 1.0
|
||||||
|
%define dtdname novdoc
|
||||||
|
%define docbuilddir %{_datadir}/daps
|
||||||
|
%define regcat %{_bindir}/sgml-register-catalog
|
||||||
|
%define fontdir %{_datadir}/fonts/truetype
|
||||||
|
%define dbstyles %{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
||||||
|
|
||||||
|
Name: daps
|
||||||
|
Version: 0.9beta1
|
||||||
|
%define root_catalog for-catalog-%{dtdname}-%{version}.xml
|
||||||
|
%define xslt_catalog for-catalog-%{dtdname}xslt-%{version}.xml
|
||||||
|
|
||||||
|
Release: 1
|
||||||
|
Summary: DocBook Authoring and Publishing Suite
|
||||||
|
License: GPL
|
||||||
|
Group: Productivity/Publishing/XML
|
||||||
|
URL: http://svn.berlios.de/viewvc/opensuse-doc/trunk/tools/daps/
|
||||||
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
Source1: %{name}.rpmlintrc
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: dia
|
||||||
|
BuildRequires: docbook_4
|
||||||
|
BuildRequires: docbook-xsl-stylesheets >= 1.75
|
||||||
|
BuildRequires: exiftool
|
||||||
|
BuildRequires: fam
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: ImageMagick
|
||||||
|
BuildRequires: inkscape
|
||||||
|
BuildRequires: libxslt
|
||||||
|
BuildRequires: optipng
|
||||||
|
BuildRequires: python-xml
|
||||||
|
BuildRequires: sgml-skel
|
||||||
|
BuildRequires: svg-dtd
|
||||||
|
BuildRequires: trang
|
||||||
|
BuildRequires: transfig
|
||||||
|
BuildRequires: unzip
|
||||||
|
BuildRequires: xorg-x11-devel
|
||||||
|
|
||||||
|
# the following requirements are not really needed for building, but we add
|
||||||
|
# them nevertheless in order to see if the build target is able to fullfill
|
||||||
|
# the requirements for installation
|
||||||
|
BuildRequires: dejavu
|
||||||
|
BuildRequires: freefont
|
||||||
|
BuildRequires: java
|
||||||
|
BuildRequires: liberation-fonts
|
||||||
|
BuildRequires: LinuxLibertine
|
||||||
|
BuildRequires: mplus-fonts
|
||||||
|
BuildRequires: python-optcomplete
|
||||||
|
BuildRequires: opensp
|
||||||
|
BuildRequires: subversion
|
||||||
|
BuildRequires: xalan-j2
|
||||||
|
BuildRequires: xml-commons-resolver
|
||||||
|
BuildRequires: xmlformat
|
||||||
|
BuildRequires: xmlstarlet
|
||||||
|
BuildRequires: zip
|
||||||
|
%if %{suse_version} < 1140
|
||||||
|
BuildRequires: checkbot
|
||||||
|
BuildRequires: fop >= 0.94
|
||||||
|
BuildRequires: xerces-j2
|
||||||
|
BuildRequires: xml-commons-jaxp-1.3-apis
|
||||||
|
%else
|
||||||
|
BuildRequires: perl-checkbot
|
||||||
|
BuildRequires: xmlgraphics-fop >= 0.94
|
||||||
|
%endif
|
||||||
|
|
||||||
|
PreReq: libxml2
|
||||||
|
PreReq: sgml-skel
|
||||||
|
|
||||||
|
Requires: dejavu
|
||||||
|
Requires: dia
|
||||||
|
Requires: docbook_4
|
||||||
|
Requires: docbook-xsl-stylesheets >= 1.75
|
||||||
|
Requires: exiftool
|
||||||
|
Requires: freefont
|
||||||
|
Requires: ImageMagick
|
||||||
|
Requires: inkscape
|
||||||
|
Requires: java
|
||||||
|
Requires: libxslt
|
||||||
|
Requires: liberation-fonts
|
||||||
|
Requires: LinuxLibertine
|
||||||
|
Requires: make
|
||||||
|
Requires: mplus-fonts
|
||||||
|
Requires: python-optcomplete
|
||||||
|
Requires: opensp
|
||||||
|
Requires: optipng
|
||||||
|
Requires: python-xml
|
||||||
|
Requires: sgml-skel
|
||||||
|
Requires: subversion
|
||||||
|
Requires: svg-dtd
|
||||||
|
Requires: transfig
|
||||||
|
Requires: unzip
|
||||||
|
Requires: xalan-j2
|
||||||
|
Requires: xml-commons-resolver
|
||||||
|
Requires: xmlformat
|
||||||
|
Requires: xmlstarlet
|
||||||
|
Requires: zip
|
||||||
|
%if %{suse_version} < 1140
|
||||||
|
Requires: checkbot
|
||||||
|
Requires: fop >= 0.94
|
||||||
|
Requires: xerces-j2
|
||||||
|
Requires: xml-commons-jaxp-1.3-apis
|
||||||
|
%else
|
||||||
|
Requires: xmlgraphics-fop >= 0.94
|
||||||
|
Requires: perl-checkbot
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Recommends: agfa-fonts
|
||||||
|
Recommends: emacs psgml
|
||||||
|
# Split of ttf-founder-simplified and ttf-founder-traditional
|
||||||
|
Recommends: FZFangSong FZHeiTi FZSongTi
|
||||||
|
Recommends: fifth-leg-font
|
||||||
|
Recommends: remake
|
||||||
|
# Japanese Fonts:
|
||||||
|
Recommends: sazanami-fonts
|
||||||
|
# Chinese
|
||||||
|
Recommends: ttf-arphic
|
||||||
|
# Korean Fonts:
|
||||||
|
Recommends: unfonts
|
||||||
|
# Internal XEP package:
|
||||||
|
Recommends: xep
|
||||||
|
|
||||||
|
Provides: susedoc
|
||||||
|
|
||||||
|
|
||||||
|
%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:
|
||||||
|
linkchecker, validator, spellchecker, editor macros and stylesheets for
|
||||||
|
converting DocBook XML.
|
||||||
|
|
||||||
|
daps is the successor of susedoc. See
|
||||||
|
/usr/share/doc/packages/daps/README.upgrade_from_susedoc_4.x
|
||||||
|
for upgrade instructions.
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Frank Sundermeyer <fsundermeyer AT suse DOT de>
|
||||||
|
Thomas Schraitle <toms AT suse DOT de>
|
||||||
|
Berthold Gunreben
|
||||||
|
Karl Eichwalder
|
||||||
|
Curtis Graham
|
||||||
|
Berthold Gunreben
|
||||||
|
Jana Jaeger
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}
|
||||||
|
#%%patch1 -p1
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
%build
|
||||||
|
# specifying VERSION is manadatory!!
|
||||||
|
%__make VERSION=%{version}
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
%install
|
||||||
|
# specifying VERSION is manadatory!!
|
||||||
|
%make_install VERSION=%{version}
|
||||||
|
|
||||||
|
# create symlinks:
|
||||||
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
||||||
|
|
||||||
|
#----------------------
|
||||||
|
%post
|
||||||
|
if [ -x %{regcat} ]; then
|
||||||
|
for CATALOG in CATALOG.%{dtdname}-%{dtdversion}; do
|
||||||
|
%{regcat} -a %{_datadir}/sgml/$CATALOG >/dev/null 2>&1 || true
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# remove existing entries first (if existing) - needed for
|
||||||
|
# zypper in, since it does not call postun
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{dtdname}-%{version}
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{dtdname}xslt-%{version}
|
||||||
|
#
|
||||||
|
# now add new entries
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--add /etc/xml/%{root_catalog}
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--add /etc/xml/%{xslt_catalog}
|
||||||
|
|
||||||
|
%run_suseconfig_fonts
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
#----------------------
|
||||||
|
%postun
|
||||||
|
if [ ! -f %{_sysconfdir}/xml/%{root_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
||||||
|
for c in CATALOG.%{dtdname}-%{dtdversion}; do
|
||||||
|
%{regcat} -r %{_datadir}/sgml/$c >/dev/null 2>&1
|
||||||
|
done
|
||||||
|
#now XML catalog
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{dtdname}-%{version}
|
||||||
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
|
--del %{dtdname}xslt-%{version}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%run_suseconfig_fonts
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------
|
||||||
|
%clean
|
||||||
|
%__make clean
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
|
%dir %{fontdir}
|
||||||
|
%dir %{_sysconfdir}/%{name}
|
||||||
|
%dir %{_datadir}/xml/%{dtdname}
|
||||||
|
%dir %{_datadir}/xml/%{dtdname}/schema
|
||||||
|
%dir %{_datadir}/xml/%{dtdname}/schema/*
|
||||||
|
%dir %{_datadir}/xml/%{dtdname}/schema/*/1.0
|
||||||
|
%dir %{_defaultdocdir}/%{name}
|
||||||
|
|
||||||
|
%config /var/lib/sgml/CATALOG.*
|
||||||
|
%config %{_sysconfdir}/xml/*.xml
|
||||||
|
%config %{_sysconfdir}/%{name}/*
|
||||||
|
|
||||||
|
%doc %{_mandir}/man1/*.1.gz
|
||||||
|
%doc %{_defaultdocdir}/%{name}/*
|
||||||
|
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_datadir}/sgml/CATALOG.*
|
||||||
|
%{_datadir}/emacs/site-lisp/docbook_macros.el
|
||||||
|
%{fontdir}/*
|
||||||
|
%{docbuilddir}
|
||||||
|
%{_datadir}/xml/%{dtdname}/schema/dtd/%{dtdversion}/*
|
||||||
|
%{_datadir}/xml/%{dtdname}/schema/rng/%{dtdversion}/*
|
||||||
|
|
||||||
|
#----------------------
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user