2007-03-14 12:25:45 +01:00
|
|
|
#
|
2011-09-19 16:45:51 +02:00
|
|
|
# spec file for package docbook_5
|
2007-03-14 12:25:45 +01:00
|
|
|
#
|
2017-10-12 11:00:23 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-03-14 12:25:45 +01:00
|
|
|
#
|
2009-06-18 17:11:48 +02: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.
|
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-03-06 19:45:12 +01:00
|
|
|
|
2017-10-12 11:00:23 +02:00
|
|
|
%define schemaversions 5.0 5.1
|
|
|
|
%define lastschemaversion 5.1
|
|
|
|
#
|
2007-03-14 12:25:45 +01:00
|
|
|
Name: docbook_5
|
2017-10-12 11:00:23 +02:00
|
|
|
Version: 5.1.0
|
|
|
|
Release: 0
|
2007-03-14 12:25:45 +01:00
|
|
|
Summary: DocBook Schemas (DTD, RELAX NG, W3C Schema) for Version 5.x
|
2013-03-18 13:51:24 +01:00
|
|
|
License: SUSE-Oasis-Specification-Notice
|
2007-03-14 12:25:45 +01:00
|
|
|
Group: Productivity/Publishing/DocBook
|
2017-10-12 11:00:23 +02:00
|
|
|
Url: http://www.oasis-open.org/docbook/
|
2016-06-21 15:51:11 +02:00
|
|
|
# XML Catalog Entry
|
|
|
|
Source1: docbook_5.xml
|
2015-02-19 11:43:37 +01:00
|
|
|
Source2: docbook_5-README.SUSE
|
2017-10-12 11:00:23 +02:00
|
|
|
# DocBook Sources
|
|
|
|
Source3: docbook-5.0-docs.tar.bz2
|
|
|
|
Source4: docbook-5.1-docs.tar.bz2
|
|
|
|
Source5: Makefile
|
2007-03-23 22:36:37 +01:00
|
|
|
# DB 5.0
|
2015-02-19 13:06:55 +01:00
|
|
|
Source500: docbook-5.0.tar.bz2
|
2017-10-12 11:00:23 +02:00
|
|
|
# DB 5.1
|
|
|
|
Source510: docbook-5.1.tar.bz2
|
|
|
|
#
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
Requires: sgml-skel >= 0.7
|
|
|
|
Requires(post): sgml-skel >= 0.7
|
|
|
|
Requires(postun): sgml-skel >= 0.7
|
2008-02-15 01:08:30 +01:00
|
|
|
BuildArch: noarch
|
2015-02-19 11:43:37 +01:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%description
|
2017-10-12 11:00:23 +02:00
|
|
|
DocBook is a schema. It is particularly well-suited to books and papers
|
|
|
|
about computer hardware and software (though it is not limited to these
|
|
|
|
applications at all).
|
|
|
|
|
|
|
|
The version is a complete rewrite of DocBook in RELAX NG.
|
2007-03-14 12:25:45 +01:00
|
|
|
The intent of this rewrite is to produce a schema that is true to the
|
|
|
|
spirit of DocBook while simultaneously removing inconsistencies that
|
|
|
|
have arisen as a natural consequence of DocBook's long, slow evolution.
|
|
|
|
|
2016-06-21 15:51:11 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2017-10-12 11:00:23 +02:00
|
|
|
The documentation for the DocBook 5.x specification (%{schemaversions})
|
2016-06-21 15:51:11 +02:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%define xml_dir %{_datadir}/xml
|
|
|
|
%define xml_docbook_dir %{xml_dir}/docbook
|
2015-02-19 11:43:37 +01:00
|
|
|
%define xml_schema_dir %{xml_dir}/docbook/schema
|
|
|
|
%define xml_docbook_dtd_dir %{xml_schema_dir}/dtd
|
|
|
|
%define xml_docbook_rng_dir %{xml_schema_dir}/rng
|
|
|
|
%define xml_docbook_sch_dir %{xml_schema_dir}/sch
|
|
|
|
%define xml_docbook_xsd_dir %{xml_schema_dir}/xsd
|
2017-10-12 11:00:23 +02:00
|
|
|
%define xml_docbook_nvdl_dir %{xml_schema_dir}/nvdl
|
2007-03-14 12:25:45 +01:00
|
|
|
%define xml_docbook_custom_dir %{xml_docbook_dir}/custom
|
|
|
|
%define xml_docbook_style_dir %{xml_docbook_dir}/stylesheet
|
2017-10-12 11:00:23 +02:00
|
|
|
%define xml_config_dir %{_localstatedir}/lib/xml
|
2007-03-14 12:25:45 +01:00
|
|
|
%define xml_sysconf_dir %{_sysconfdir}/xml
|
2008-02-15 01:08:30 +01:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%prep
|
2017-10-12 11:00:23 +02:00
|
|
|
%setup -q -n %{name} -c -T
|
|
|
|
# Copy catalog, README, and Makefile
|
|
|
|
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE5} .
|
2015-02-19 11:43:37 +01:00
|
|
|
|
2017-10-12 11:00:23 +02:00
|
|
|
# Unpack the sources:
|
|
|
|
tar -xf %{SOURCE500}
|
|
|
|
tar -xf %{SOURCE510}
|
|
|
|
# Unpack the documentation:
|
|
|
|
tar -xf %{SOURCE3}
|
|
|
|
tar -xf %{SOURCE4}
|
2015-05-12 15:05:07 +02:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
chmod -R a+rX,g-w,o-w .
|
|
|
|
find . -type f | xargs chmod a-x
|
|
|
|
|
|
|
|
%build
|
2017-10-12 11:00:23 +02:00
|
|
|
# Nothing to build
|
2015-02-19 11:43:37 +01:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%install
|
2017-10-12 11:00:23 +02:00
|
|
|
make DESTDIR=%{buildroot}
|
2007-03-14 12:25:45 +01:00
|
|
|
|
2015-02-19 11:43:37 +01:00
|
|
|
# cleanup
|
2017-10-12 11:00:23 +02:00
|
|
|
%fdupes %{buildroot}
|
2015-02-19 11:43:37 +01:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%post
|
2016-06-21 15:51:11 +02:00
|
|
|
update-xml-catalog
|
2007-03-14 12:25:45 +01:00
|
|
|
|
|
|
|
%postun
|
2016-06-21 15:51:11 +02:00
|
|
|
update-xml-catalog
|
2007-03-14 12:25:45 +01:00
|
|
|
|
|
|
|
%files
|
2016-06-21 15:51:11 +02:00
|
|
|
%config %{xml_sysconf_dir}/catalog.d/docbook_5.xml
|
2015-02-19 11:43:37 +01:00
|
|
|
%doc *README*
|
2017-10-12 11:00:23 +02:00
|
|
|
#
|
2007-03-14 12:25:45 +01:00
|
|
|
%dir %{xml_docbook_dir}/schema
|
|
|
|
%dir %{xml_docbook_dtd_dir}
|
|
|
|
%dir %{xml_docbook_rng_dir}
|
|
|
|
%dir %{xml_docbook_sch_dir}
|
|
|
|
%dir %{xml_docbook_xsd_dir}
|
2017-10-12 11:00:23 +02:00
|
|
|
%dir %{xml_docbook_nvdl_dir}
|
2007-03-14 12:25:45 +01:00
|
|
|
%dir %{xml_docbook_style_dir}
|
2007-03-23 22:36:37 +01:00
|
|
|
# 5.0
|
2015-02-19 11:43:37 +01:00
|
|
|
%{xml_docbook_dtd_dir}/5.0
|
|
|
|
%{xml_docbook_rng_dir}/5.0
|
|
|
|
%{xml_docbook_sch_dir}/5.0
|
|
|
|
%{xml_docbook_xsd_dir}/5.0
|
2017-10-12 11:00:23 +02:00
|
|
|
%{xml_docbook_nvdl_dir}/5.0
|
|
|
|
# 5.1
|
2015-05-12 15:05:07 +02:00
|
|
|
%{xml_docbook_rng_dir}/%{lastschemaversion}
|
|
|
|
%{xml_docbook_sch_dir}/%{lastschemaversion}
|
2017-10-12 11:00:23 +02:00
|
|
|
%{xml_docbook_nvdl_dir}/%{lastschemaversion}
|
|
|
|
# Upgrade stylesheet
|
|
|
|
%{xml_docbook_style_dir}/upgrade
|
|
|
|
#
|
2007-03-14 12:25:45 +01:00
|
|
|
%{_bindir}/db4-entities.pl
|
|
|
|
|
2016-06-21 15:51:11 +02:00
|
|
|
%files doc
|
2017-10-12 11:00:23 +02:00
|
|
|
%doc docbook*spec-cd-01.{pdf,html,xml}
|
|
|
|
%doc docbook*-os.{pdf,html,xml}
|
2016-06-21 15:51:11 +02:00
|
|
|
|
2007-03-14 12:25:45 +01:00
|
|
|
%changelog
|