geekodoc/geekodoc.spec

186 lines
5.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package geekodoc
#
# Copyright (c) 2023 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.
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without tests
#
Name: geekodoc
Version: 2.3.0
Release: 0
Summary: DocBook based RNG Schema for SUSE Documentation
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
License: GPL-3.0-only
Group: Productivity/Publishing/DocBook
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
URL: https://github.com/openSUSE/geekodoc/archive/%{name}-%{version}.tar.gz
Source: %{name}-%{version}.tar.bz2
# Taken from maintenance/novdoc-2019-02-01
# Created with:
# $ git archive --prefix=novdoc-20190201/ \
# --output=/tmp/novdoc-20190201.tar.bz2 \
# --format=tar HEAD novdoc/ catalog.d/
Source10: novdoc-20190201.tar.bz2
BuildRequires: docbook_5 >= 5.2
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
BuildRequires: fdupes
BuildRequires: jing
BuildRequires: libxml2-tools
BuildRequires: make
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
%if 0%{?is_opensuse}
BuildRequires: openSUSE-release
%else
BuildRequires: sles-release
%endif
BuildRequires: python3-importlib_metadata
BuildRequires: python3-rnginline
BuildRequires: python3-setuptools
BuildRequires: trang
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
Requires: sgml-skel >= 0.7
Requires(post): sgml-skel >= 0.7
Requires(postun):sgml-skel >= 0.7
Conflicts: suse-xsl-stylesheets < 2.0.6
BuildArch: noarch
%description
GeekoDoc is a RELAX NG schema used for current SUSE documentation.
%package -n novdoc
Version: 1.0_%{version}
Release: 0
Summary: DocBook based Schema for older SUSE Documentation
Group: Productivity/Publishing/DocBook
Conflicts: suse-xsl-stylesheets < 2.0.6
%description -n novdoc
NovDoc is a DTD/RELAX NG schema used for older SUSE documentation.
%prep
%autosetup
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
tar -xf %{SOURCE10}
mv novdoc-20190201/novdoc .
mv novdoc-20190201/catalog.d/novdoc.xml catalog.d/
%build
touch geekodoc/rng/geekodoc5.rnc
# GeekoDoc
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
./build.sh -vv
# Novdoc
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
%make_build -C novdoc/rng
%install
docbookxi_rnc="$(xmlcatalog /etc/xml/catalog http://www.docbook.org/xml/5.2/rng/docbookxi.rnc)"
docbookxi_rng="$(xmlcatalog /etc/xml/catalog http://www.docbook.org/xml/5.2/rng/docbookxi.rng)"
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
install -d %{buildroot}%{_datadir}/xml/{geekodoc/rng/{1_5.1,2_5.2},novdoc/rng} \
%{buildroot}%{_sysconfdir}/xml/catalog.d
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
# Fix include for "lonely" schema:
sed -i "s#include \"docbookxi.rnc\"#include \"$docbookxi_rnc\"#" \
build/geekodoc/rng/1_5.1/geekodoc-v1.rnc
sed -i "s#<include href=\"docbookxi.rng\">#<include href=\"$docbookxi_rng\">#" \
build/geekodoc/rng/1_5.1/geekodoc-v1.rng
#### Install flat GeekoDoc:
cp -a build/geekodoc/rng/ %{buildroot}%{_datadir}/xml/geekodoc/
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
pushd %{buildroot}%{_datadir}/xml/geekodoc/rng
# For compatibility reasons:
ln -s 1_5.1/geekodoc-v1-flat.rnc geekodoc5-flat.rnc
ln -s 1_5.1/geekodoc-v1-flat.rng geekodoc5-flat.rng
pushd 1_5.1/
ln -s geekodoc-v1-flat.rnc geekodoc5-flat.rnc
ln -s geekodoc-v1-flat.rng geekodoc5-flat.rng
popd
popd
#### Install Novdoc:
cp -a novdoc/dtd %{buildroot}%{_datadir}/xml/novdoc
cp novdoc/rng/novdocxi-flat.rn? novdoc/rng/novell.ent %{buildroot}%{_datadir}/xml/novdoc/rng
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
#### Install catalogs:
cp catalog.d/* %{buildroot}%{_sysconfdir}/xml/catalog.d/
# Fixup catalog paths
sed -i 's#"\.\./#"%{_datadir}/xml/#' %{buildroot}%{_sysconfdir}/xml/catalog.d/*
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
# Deal with duplicates
%fdupes %{buildroot}%{_datadir}/xml/
%post
update-xml-catalog
%postun
update-xml-catalog
%post -n novdoc
update-xml-catalog
if [ ! -f %{_sysconfdir}/xml/suse-catalog.xml -a -x %{_bindir}/edit-xml-catalog ] ; then
# susexsl entry
edit-xml-catalog --group --catalog %{_sysconfdir}/xml/suse-catalog.xml \
--del suse_schemas
edit-xml-catalog --group --catalog %{_sysconfdir}/xml/suse-catalog.xml \
--del novdoc-1.0
fi
exit 0
%postun -n novdoc
update-xml-catalog
%if 0%{with tests}
%check
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
./tests/run-tests.sh -V xmllint
./tests/run-tests.sh -V jing
echo "### Checking catalog entries..."
for uri in \
urn:x-suse:rnc:v1:geekodoc-flat \
urn:x-suse:rng:v1:geekodoc-flat \
urn:x-suse:rnc:v2:geekodoc-flat \
urn:x-suse:rng:v2:geekodoc-flat \
urn:x-suse:rng:geekodoc5-flat.rng \
urn:x-suse:rng:geekodoc5-flat.rnc \
https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/geekodoc5-flat.rnc \
https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/geekodoc5-flat.rng \
;
do
xmlcatalog %{buildroot}%{_sysconfdir}/xml/catalog.d/geekodoc.xml $uri || exit $?
done
%endif
%files
%license LICENSE ChangeLog
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
%config %{_sysconfdir}/xml/catalog.d/geekodoc*.xml
%dir %{_datadir}/xml/geekodoc
%{_datadir}/xml/geekodoc/*
# These files are just build artifacts that need to be excluded:
%exclude %{_datadir}/xml/geekodoc/rng/*/docbook*
%exclude %{_datadir}/xml/geekodoc/rng/*/db*
%exclude %{_datadir}/xml/geekodoc/rng/*/its*
%exclude %{_datadir}/xml/geekodoc/rng/*/trans*
%exclude %{_datadir}/xml/geekodoc/rng/*/xinclude*
%exclude %{_datadir}/xml/geekodoc/rng/*/*.rni
%exclude %{_datadir}/xml/geekodoc/rng/*/geekodoc-v[12].rn[cg]
%exclude %{_datadir}/xml/geekodoc/rng/*/geekodoc5.rnc
%files -n novdoc
%license LICENSE
%config %{_sysconfdir}/xml/catalog.d/novdoc.xml
Accepting request 917002 from home:thomas-schraitle:branches:Documentation:Tools - Release 2.0.0 - Introduce external directory in source dir - Update ChangeLog - Add test cases for both GeekoDoc versions - Catalog changes Remove old non-flat URIs as this was not really needed Keep URIs with flat - Introduce new directory structure under /usr/share/xml/geekodoc/rng/ - Add new catalog URIs: - urn:x-suse:rnc:v1:geekodoc-flat - urn:x-suse:rnc:v2:geekodoc-flat - urn:x-suse:rng:v1:geekodoc-flat - urn:x-suse:rng:v2:geekodoc-flat - The old URIs are still available: - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rng - https://github.com/openSUSE/geekodoc/raw/master/geekodoc/rng/v1/geekodoc5-flat.rnc - urn:x-suse:rng:geekodoc5-flat.rng - GeekoDoc v2: - Base it on DocBook 5.2b10a5 (dbitsxi) - Identify GeekoDoc as "5.2-subset GeekoDoc-2" - Incorporate all the changes from GeekoDoc v1 - Fix #73: Restrict xml:id/linkend to alphanum + "-" (#75) - Release GeekoDoc 2.0.0 (#76) - Use dbits.rnc as a basis, instead of docbookxi.rnc for GeekoDoc v1. This is needed for translation purposes. - GeekoDoc v1: - Describe installation on Debian/Ubuntu (#85) - Fix #69: reduce content model of replaceable (#71) - Fix #64: disallow empty sections (#72) - Fix #59: Reduce content model of command (#66) - Fix #63: restrict content model of book - Fix #61: remove depth attribute on imagedata - Prepare 2.0.0 beta1 (WIP) - Base GeekoDoc v2 on dbits - From version 2, only the flat file is packaged as the normal one is not really used. - See ChangeLog for further details OBS-URL: https://build.opensuse.org/request/show/917002 OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=26
2021-09-06 07:39:36 +00:00
%dir %{_datadir}/xml/novdoc
%{_datadir}/xml/novdoc/*
%changelog