daps/daps.spec

195 lines
5.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package daps
#
# Copyright (c) 2022 SUSE LLC
#
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
Version 1.1.6 (Bugfix release): * General: - reducing code by adding MAIN to the list of DOCFILES, by generating the list of ENTITY files globally and by using HTML_DIR for HTML. HTML-SINGLE and JSP * EPUB: - fixed critical error: a single tmp dir was used to generate different EPUB books - EPUB zip file is now generated from a file list extracted from OEBPS/content.opf. This ensures that only files referenced in the content.opf are packaged - Added fix for bug in DocBook stylesheets which generates an empty date entry in content.opf which causes a validation error - Improved CSS handling: - if no CSS file is specified on the command line or in the DC-file, the _first_ one found in <STYLEDIR>/epub/ is automatically used - --css now requires a parameter - if you do not want any CSS file to be used, specify "none": --css=none - EPUBs now validate with epubcheck 3.0 * HTML: - if using the DocBook standard layout for resources <STYLEDIR>/images <STYLEDIR>/<FOO>.css it is no longer manfdatory to specify a CSS file on the command line or in the DC-file. DAPS will automatically use the _first_ *.css file in <STYLDIR>/ if none is specified - if using a static dir for resources <STYLEDIR>/static |-css |-js |-images you can now specify an alternative css file with --css or an alternative static dir with --statdir - this makes it possible to switch between stylsheets using the two different resource directory approaches without having to modify a DC-file - the --css parameter now requires an argument. If you want to use no stylesheet at all, specify --css=none NOTE: This update requires to run the first HTML, HTML-Single and JSP build after the update with the --clean switch in order to create a clean result directory. - if both variants (<STYLEDIR>/images and <STYLEDIR>/static exist, the static directory is automatically used * LOCDROP: - DC-files are delivered with a locdrop if --def-file is specified - NO_TRANS_FILES was not correctly computed - entity files were missing in packages * PACKAGE-SRC: - entity files were missing in packages * ONLINE-DOCS: - generating a uniquely named graphics tarball for each book (when export-dir is set) instead of one that gets overwritten with each build OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=122
2013-05-02 17:54:21 +02:00
Name: daps
Version: 3.3.1
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
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
Patch0: daps-fix-build-against-libxslt-1.1.36+.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: ImageMagick
BuildRequires: automake
BuildRequires: bash >= 4
BuildRequires: dia
BuildRequires: docbook-xsl-stylesheets >= 1.77
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
BuildRequires: docbook_4
BuildRequires: docbook_5
BuildRequires: fdupes
BuildRequires: inkscape
BuildRequires: jing
BuildRequires: libxml2-tools
BuildRequires: libxslt
New release DAPS 2.0~rc5 (releases rc3 and rc4 have not been made available as SUSE builds) - Full support for DocBook 5 now (finally) - various fixes for ePUB (again): -ePUB 2 builds without warnings/errors in epubcheck -ePUB3 shows a few warnings/errors in epubcheck resulting from errors in the stylesheets -make sure ePUB gets a correct date format (YYYY-MM-DD) - Moved DAPS user config directory to ~/.config/daps/. The config file has been renamed to dapsrc (the user will be notified and DAPS will automatically do the move if the user agrees) - all of DocBook's profiling attributes are no supported - Various build fixes to make it work on Debian Wheezy, Fedora 20/21 openSUSE 13.x, SLE 12, and Ubuntu 14.10 - tested DAPS on Debian Wheezy, Fedora 20/21 and Ubuntu 14.10 - Added script and stylesheets to migrate DocBook4 projects to DocBook 5 (libexec/daps-migrate) - various fixes and improvements for bin/daps-init (incl. man page) - Added support for local static/ directories - Established new locdrop workflow - Fixed daps-init - strings passed with --xsltparam no longer need to be uoted with double and single quotes--only use double quotes now - Definied DAPS version for major, minor, and micro (configure.ac) - Introduced daps_version_{major,minor,micro} substitutions - Corrected URL from SourceForge to GitHub - Used DAPS version in AC_MSG_NOTICE - Unified copyright statements - Let configure change the Version in entity-decl.ent - Created DOCTYPE and PI node manually for daps-xslt/profiling/ OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=164
2015-04-21 15:18:10 +02:00
BuildRequires: libxslt-tools
BuildRequires: poppler-tools
BuildRequires: python3-lxml
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
BuildRequires: suse-xsl-stylesheets
BuildRequires: svg-dtd
BuildRequires: xerces-j2
BuildRequires: xml-apis
BuildRequires: xmlgraphics-fop >= 0.94
New release DAPS 2.0~rc5 (releases rc3 and rc4 have not been made available as SUSE builds) - Full support for DocBook 5 now (finally) - various fixes for ePUB (again): -ePUB 2 builds without warnings/errors in epubcheck -ePUB3 shows a few warnings/errors in epubcheck resulting from errors in the stylesheets -make sure ePUB gets a correct date format (YYYY-MM-DD) - Moved DAPS user config directory to ~/.config/daps/. The config file has been renamed to dapsrc (the user will be notified and DAPS will automatically do the move if the user agrees) - all of DocBook's profiling attributes are no supported - Various build fixes to make it work on Debian Wheezy, Fedora 20/21 openSUSE 13.x, SLE 12, and Ubuntu 14.10 - tested DAPS on Debian Wheezy, Fedora 20/21 and Ubuntu 14.10 - Added script and stylesheets to migrate DocBook4 projects to DocBook 5 (libexec/daps-migrate) - various fixes and improvements for bin/daps-init (incl. man page) - Added support for local static/ directories - Established new locdrop workflow - Fixed daps-init - strings passed with --xsltparam no longer need to be uoted with double and single quotes--only use double quotes now - Definied DAPS version for major, minor, and micro (configure.ac) - Introduced daps_version_{major,minor,micro} substitutions - Corrected URL from SourceForge to GitHub - Used DAPS version in AC_MSG_NOTICE - Unified copyright statements - Let configure change the Version in entity-decl.ent - Created DOCTYPE and PI node manually for daps-xslt/profiling/ OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=164
2015-04-21 15:18:10 +02:00
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
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
Requires: ImageMagick
Requires: bash >= 4
Requires: dia
Requires: docbook-xsl-stylesheets >= 1.77
Requires: docbook5-xsl-stylesheets >= 1.77
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
Requires: docbook_4
Requires: docbook_5
Requires: inkscape
Requires: java >= 1.8.0
Requires: jing
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
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
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
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
New release DAPS 2.0~rc5 (releases rc3 and rc4 have not been made available as SUSE builds) - Full support for DocBook 5 now (finally) - various fixes for ePUB (again): -ePUB 2 builds without warnings/errors in epubcheck -ePUB3 shows a few warnings/errors in epubcheck resulting from errors in the stylesheets -make sure ePUB gets a correct date format (YYYY-MM-DD) - Moved DAPS user config directory to ~/.config/daps/. The config file has been renamed to dapsrc (the user will be notified and DAPS will automatically do the move if the user agrees) - all of DocBook's profiling attributes are no supported - Various build fixes to make it work on Debian Wheezy, Fedora 20/21 openSUSE 13.x, SLE 12, and Ubuntu 14.10 - tested DAPS on Debian Wheezy, Fedora 20/21 and Ubuntu 14.10 - Added script and stylesheets to migrate DocBook4 projects to DocBook 5 (libexec/daps-migrate) - various fixes and improvements for bin/daps-init (incl. man page) - Added support for local static/ directories - Established new locdrop workflow - Fixed daps-init - strings passed with --xsltparam no longer need to be uoted with double and single quotes--only use double quotes now - Definied DAPS version for major, minor, and micro (configure.ac) - Introduced daps_version_{major,minor,micro} substitutions - Corrected URL from SourceForge to GitHub - Used DAPS version in AC_MSG_NOTICE - Unified copyright statements - Let configure change the Version in entity-decl.ent - Created DOCTYPE and PI node manually for daps-xslt/profiling/ OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=164
2015-04-21 15:18:10 +02:00
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}
%autopatch -p1
# 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
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
%configure --docdir=%{_defaultdocdir}/%{name} --disable-edit-rootcatalog
%__make %{?_smp_mflags}
#--------------------------------------------------------------------------
%install
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
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}
#----------------------
Version 1.0beta1: * Rebuild large parts to make DAPS distribution-independent. - rewrote Makefile for automake/autoconf => configure; make; make install is now supported - thorough cross-distribution testing is still needed, basic tests have been run on RedHat, Debian and Ubuntu * removal of custom stylesheets DAPS no longer uses the SUSE stylesheets as a default. It even no longer contains the SUSE stylesheets - they are now available as a separate package (suse-xsl-stylesheets in Documentation:Tools). - By default DAPS uses the generic DocBook stylesheets now - Custom stylesheets such as the SUSE stylesheets can be used by specifying up to four parameters on the command line/the config files: * Styleroot: Directory containing the custom stylesheets. Must have the same directory structure as the original DocBook stylesheet root directory. Does _not_ need to contain stylesheets for all output formats. If stylesheets are not found, DAPS will automatically fall back to the DocBook stylesheets. - Variable: STYLEROOT - Parameter: --styleroot - Value: absolute path to directory * Fallback styleroot Custom fallback styleroot. If DAPS cannot find styles for the given output format, it will automatically fall back to the DocBook stylesheets. This config option will add a custom fallback directory with higher priority. The DocBook stylesheets will remain as a last resort, however. - Variable: FALLBACK_STYLEROOT OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=79
2012-03-08 12:17:04 +01:00
%changelog