ced07a64b0
- BUGFIXES: * fixed misspelled variablename in fo generating target * remarks in HTML and PDF builds were only shown when comments were turned on, too. This had been fixed earlier but the fix seems to have been reverted by mistake. Re-enabled the fix in the inline.xslt stxlesheets for fo and html - -r/--remarls now implies draft mode - -m/--meta now implies draft mode but does not imply remarks anymore - new switch -m/--meta for pdf builds (adds same functionality as for the html builds) OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=68
301 lines
8.1 KiB
RPMSpec
301 lines
8.1 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
#
|
|
|
|
Name: daps
|
|
Version: 0.9.2
|
|
|
|
%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
|
|
%define root_catalog for-catalog-%{dtdname}-%{dtdversion}.xml
|
|
%define daps_catalog for-catalog-%{name}-%{version}.xml
|
|
|
|
Release: 1
|
|
Summary: DocBook Authoring and Publishing Suite
|
|
License: GPL-2.0+
|
|
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
|
|
%if 0%{?suse_version} > 1140
|
|
BuildRequires: perl-Image-ExifTool
|
|
%else
|
|
BuildRequires: exiftool
|
|
%endif
|
|
BuildRequires: fam
|
|
BuildRequires: fdupes
|
|
BuildRequires: ImageMagick
|
|
BuildRequires: inkscape
|
|
BuildRequires: libxslt
|
|
BuildRequires: optipng
|
|
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: ghostscript-library
|
|
BuildRequires: java
|
|
BuildRequires: liberation-fonts
|
|
BuildRequires: LinuxLibertine
|
|
BuildRequires: mplus-fonts
|
|
BuildRequires: opensp
|
|
BuildRequires: poppler-tools
|
|
BuildRequires: xalan-j2
|
|
BuildRequires: xml-commons-resolver
|
|
BuildRequires: xmlformat
|
|
BuildRequires: xmlstarlet
|
|
BuildRequires: zip
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
BuildRequires: perl-checkbot
|
|
BuildRequires: xmlgraphics-fop >= 0.94
|
|
%else
|
|
%if %{undefined sles_version}
|
|
BuildRequires: checkbot
|
|
%endif
|
|
BuildRequires: fop >= 0.94
|
|
BuildRequires: xerces-j2
|
|
%if 0%{?suse_version} == 1130
|
|
BuildRequires: xml-commons-jaxp-1.3-apis
|
|
%endif
|
|
%if 0%{?suse_version} < 1130
|
|
BuildRequires: xml-commons-apis-bootstrap
|
|
%endif
|
|
%endif
|
|
%if 0%{?suse_version} < 1120
|
|
BuildRequires: python-xml
|
|
%endif
|
|
|
|
|
|
PreReq: libxml2
|
|
PreReq: sgml-skel
|
|
|
|
Requires: dejavu
|
|
Requires: dia
|
|
Requires: docbook_4
|
|
Requires: docbook-xsl-stylesheets >= 1.75
|
|
Requires: exiftool
|
|
Requires: fam
|
|
Requires: freefont
|
|
Requires: ghostscript-library
|
|
Requires: ImageMagick
|
|
Requires: inkscape
|
|
Requires: java
|
|
Requires: libxslt
|
|
Requires: liberation-fonts
|
|
Requires: LinuxLibertine
|
|
Requires: make
|
|
Requires: mplus-fonts
|
|
Requires: opensp
|
|
Requires: optipng
|
|
Requires: poppler-tools
|
|
Requires: sgml-skel
|
|
Requires: svg-dtd
|
|
Requires: transfig
|
|
Requires: unzip
|
|
Requires: xalan-j2
|
|
Requires: xml-commons-resolver
|
|
Requires: xmlformat
|
|
Requires: xmlstarlet
|
|
Requires: zip
|
|
%if 0%{?suse_version} >= 1140
|
|
Requires: perl-checkbot
|
|
Requires: xmlgraphics-fop >= 0.94
|
|
%else
|
|
%if %{undefined sles_version}
|
|
Requires: checkbot
|
|
%else
|
|
Recommends: checkbot
|
|
%endif
|
|
Requires: fop >= 0.94
|
|
Requires: xerces-j2
|
|
%if 0%{?suse_version} == 1130
|
|
Requires: xml-commons-jaxp-1.3-apis
|
|
%endif
|
|
%if 0%{?suse_version} < 1130
|
|
Requires: xml-commons-apis-bootstrap
|
|
%endif
|
|
%endif
|
|
%if 0%{?suse_version} < 1120
|
|
BuildRequires: python-xml
|
|
%endif
|
|
|
|
Recommends: agfa-fonts
|
|
Recommends: aspell aspell-en aspell-en-huge
|
|
Recommends: daps-docmanager
|
|
Recommends: emacs psgml
|
|
# Split of ttf-founder-simplified and ttf-founder-traditional
|
|
Recommends: FZFangSong FZHeiTi FZSongTi
|
|
Recommends: fifth-leg-font
|
|
Recommends: remake
|
|
# needed to create ePUBs
|
|
Recommends: ruby
|
|
# Japanese Fonts:
|
|
Recommends: sazanami-fonts
|
|
# Chinese
|
|
Recommends: ttf-arphic
|
|
# Korean Fonts:
|
|
Recommends: unfonts
|
|
# Internal XEP package:
|
|
Recommends: xep
|
|
|
|
#Obsoletes: susedoc <= 4.3.27
|
|
Provides: susedoc < 4.4
|
|
|
|
|
|
%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.
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
%prep
|
|
%setup -q -n %{name}
|
|
#%%patch1 -p1
|
|
|
|
#--------------------------------------------------------------------------
|
|
%build
|
|
# specifying VERSION is manadatory!!
|
|
%__make %{?_smp_mflags} VERSION=%{version}
|
|
|
|
#--------------------------------------------------------------------------
|
|
%install
|
|
# specifying VERSION is manadatory!!
|
|
make install DESTDIR=$RPM_BUILD_ROOT VERSION=%{version}
|
|
|
|
# make_install macro does not have a DESTDIR in 11.1/SLE 11 !!
|
|
#%#make_install VERSION=%{version}
|
|
|
|
# create symlinks:
|
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
|
|
|
#----------------------
|
|
%post
|
|
# SGM CATALOG
|
|
#
|
|
if [ -x %{regcat} ]; then
|
|
for CATALOG in CATALOG.%{dtdname}-%{dtdversion}; do
|
|
%{regcat} -a %{_datadir}/sgml/$CATALOG >/dev/null 2>&1 || true
|
|
done
|
|
fi
|
|
# XML Catalog
|
|
#
|
|
# remove existing entries first (if existing) - needed for
|
|
# zypper in, since it does not call postun
|
|
#
|
|
# The first two ones are only there for campatibility reasons and
|
|
# can be removed in the future
|
|
#
|
|
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}
|
|
#
|
|
# These two entries need to stay
|
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
|
--del %{dtdname}-%{dtdversion}
|
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
|
--del %{name}-%{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/%{daps_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
|
|
# XML Catalog
|
|
#
|
|
# The first two ones are only there for campatibility reasons and
|
|
# can be removed in the future
|
|
#
|
|
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}
|
|
#
|
|
# These two entries need to stay
|
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
|
--del %{dtdname}-%{dtdversion}
|
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
|
--del %{name}-%{version}
|
|
fi
|
|
|
|
%run_suseconfig_fonts
|
|
exit 0
|
|
|
|
|
|
#----------------------
|
|
%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%{ext_man}
|
|
%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
|