2016-08-19 12:40:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package geekodoc
|
|
|
|
#
|
2018-01-30 07:49:14 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-08-19 12:40:37 +00: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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-09 09:09:02 +00:00
|
|
|
%bcond_without tests
|
|
|
|
|
2018-02-07 12:58:28 +00:00
|
|
|
#
|
2016-08-19 12:40:37 +00:00
|
|
|
Name: geekodoc
|
2018-02-09 12:31:31 +00:00
|
|
|
Version: 1.0.2.1
|
2016-08-19 12:40:37 +00:00
|
|
|
Release: 0
|
2017-09-15 08:59:52 +00:00
|
|
|
Summary: DocBook based RNG Schema for SUSE Documentation
|
2016-08-19 12:40:37 +00:00
|
|
|
License: GPL-3.0
|
|
|
|
Group: Productivity/Publishing/DocBook
|
2016-11-24 15:27:30 +00:00
|
|
|
Url: https://github.com/openSUSE/geekodoc/archive/%{name}-%{version}.tar.gz
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2017-09-15 08:59:52 +00:00
|
|
|
BuildRequires: docbook_5 >= 5.1
|
2018-02-09 09:09:02 +00:00
|
|
|
BuildRequires: jing
|
|
|
|
BuildRequires: libxml2-tools
|
2016-08-19 12:40:37 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: python3-rnginline
|
2016-11-24 15:27:30 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2017-09-15 08:59:52 +00:00
|
|
|
BuildRequires: trang
|
2016-08-19 12:40:37 +00:00
|
|
|
Requires: sgml-skel >= 0.7
|
|
|
|
Requires(post): sgml-skel >= 0.7
|
|
|
|
Requires(postun): sgml-skel >= 0.7
|
2016-08-19 13:28:25 +00:00
|
|
|
Conflicts: suse-xsl-stylesheets < 2.0.6
|
2017-09-19 11:08:57 +00:00
|
|
|
BuildArch: noarch
|
2016-08-19 12:40:37 +00:00
|
|
|
|
|
|
|
%description
|
2016-09-16 08:35:08 +00:00
|
|
|
GeekoDoc is a RELAX NG schema used for current SUSE documentation.
|
2016-08-19 12:40:37 +00:00
|
|
|
|
2016-08-19 13:28:25 +00:00
|
|
|
%package -n novdoc
|
|
|
|
Version: 1.0_%{version}
|
2017-09-15 08:59:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: DocBook based Schema for older SUSE Documentation
|
2016-08-19 12:40:37 +00:00
|
|
|
Group: Productivity/Publishing/DocBook
|
2016-08-19 13:28:25 +00:00
|
|
|
Conflicts: suse-xsl-stylesheets < 2.0.6
|
2016-08-19 12:40:37 +00:00
|
|
|
|
2016-08-19 13:28:25 +00:00
|
|
|
%description -n novdoc
|
2016-09-16 08:35:08 +00:00
|
|
|
NovDoc is a DTD/RELAX NG schema used for older SUSE documentation.
|
2016-08-19 12:40:37 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-11-24 15:27:30 +00:00
|
|
|
touch geekodoc/rng/geekodoc5.rnc
|
|
|
|
# GeekoDoc
|
2016-08-19 12:40:37 +00:00
|
|
|
make %{?_smp_mflags} VERBOSE=1 -C geekodoc/rng
|
2018-02-07 12:12:54 +00:00
|
|
|
make %{?_smp_mflags} VERBOSE=1 -C geekodoc/rng geekodoc5-flat.rng
|
2016-11-24 15:27:30 +00:00
|
|
|
|
|
|
|
# Novdoc
|
|
|
|
make %{?_smp_mflags} VERBOSE=1 -C novdoc/rng
|
|
|
|
|
2016-08-19 12:40:37 +00:00
|
|
|
%install
|
2018-02-07 12:12:54 +00:00
|
|
|
install -d %{buildroot}%{_datadir}/xml/{geekodoc/rng,novdoc/rng} \
|
|
|
|
%{buildroot}%{_sysconfdir}/xml/catalog.d
|
|
|
|
|
|
|
|
# Install GeekoDoc:
|
|
|
|
cp geekodoc/rng/geekodoc5-flat.rn? %{buildroot}%{_datadir}/xml/geekodoc/rng
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Install catalogs:
|
2016-08-19 12:40:37 +00:00
|
|
|
cp catalog.d/* %{buildroot}%{_sysconfdir}/xml/catalog.d/
|
|
|
|
|
|
|
|
# Fixup catalog paths
|
2018-02-07 12:58:28 +00:00
|
|
|
sed -i 's#"\.\./#"%{_datadir}/xml/#' %{buildroot}%{_sysconfdir}/xml/catalog.d/*
|
2016-08-19 12:40:37 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
update-xml-catalog
|
|
|
|
|
|
|
|
%postun
|
|
|
|
update-xml-catalog
|
|
|
|
|
2016-08-23 11:17:02 +00:00
|
|
|
%post -n novdoc
|
|
|
|
update-xml-catalog
|
|
|
|
|
2016-11-24 15:27:30 +00:00
|
|
|
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
|
|
|
|
|
2016-08-23 11:17:02 +00:00
|
|
|
%postun -n novdoc
|
|
|
|
update-xml-catalog
|
|
|
|
|
2018-02-07 12:58:28 +00:00
|
|
|
%if 0%{with tests}
|
|
|
|
%check
|
|
|
|
cd geekodoc/tests
|
|
|
|
./run-tests.sh -V xmllint
|
|
|
|
./run-tests.sh -V jing
|
|
|
|
%endif
|
|
|
|
|
2016-08-19 12:40:37 +00:00
|
|
|
%files
|
2018-02-09 12:31:31 +00:00
|
|
|
%license LICENSE ChangeLog
|
2016-08-19 12:40:37 +00:00
|
|
|
%config %{_sysconfdir}/xml/catalog.d/geekodoc.xml
|
|
|
|
%{_datadir}/xml/geekodoc
|
|
|
|
%{_datadir}/xml/geekodoc/*
|
|
|
|
|
2016-08-19 13:28:25 +00:00
|
|
|
%files -n novdoc
|
2017-06-01 09:59:27 +00:00
|
|
|
%license LICENSE
|
2016-08-19 12:40:37 +00:00
|
|
|
%config %{_sysconfdir}/xml/catalog.d/novdoc.xml
|
|
|
|
%{_datadir}/xml/novdoc
|
|
|
|
%{_datadir}/xml/novdoc/*
|
|
|
|
|
|
|
|
%changelog
|