forked from pool/docbook_4
b979cb58b0
using the xml-group-manager to manage the catalog entrys OBS-URL: https://build.opensuse.org/request/show/243693 OBS-URL: https://build.opensuse.org/package/show/Publishing/docbook_4?expand=0&rev=17
77 lines
2.4 KiB
RPMSpec
77 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package docbook_4
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: docbook_4
|
|
Version: 4.5
|
|
Release: 0
|
|
Summary: DocBook DTD Version 4.x
|
|
License: BSD-3-Clause and MIT
|
|
Group: Productivity/Publishing/DocBook
|
|
Url: http://www.oasis-open.org/docbook/
|
|
Source0: docbook-4.x.tar.bz2
|
|
Source1: core-catalog
|
|
Source2: docbook-4.xml
|
|
Source3: docbook-4.sgml
|
|
Patch1: docbook-4.3.patch
|
|
Patch2: docbook-4.4.patch
|
|
Requires: sgml-skel
|
|
Requires: xml-group-manager
|
|
Requires: xmlcharent
|
|
BuildRequires: fdupes
|
|
BuildRequires: sgml-skel
|
|
BuildRequires: xml-group-manager
|
|
BuildRequires: xmlcharent
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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). This package has SGML- and XML-DTD versions
|
|
included. Some versions of DocBook contain also a RELAX NG and W3C
|
|
Schema.
|
|
|
|
%prep
|
|
%setup -q -n docbook-4.x
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
sed 's|__CATALOG__|%{_datadir}/%{name}/%{name}.xml|' %{SOURCE1} > core-catalog
|
|
sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE2} > %{name}.xml
|
|
sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE3} > %{name}.sgml
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__mkdir} -p %{buildroot}%{_datadir}/%{name}/
|
|
%{__cp} -R * %{buildroot}%{_datadir}/%{name}/
|
|
%fdupes %{buildroot}
|
|
|
|
%post
|
|
xml-group-manager -a %{name} %{_datadir}/%{name}/core-catalog
|
|
sgml-register-catalog -a %{_datadir}/%{name}/%{name}.sgml
|
|
|
|
%postun
|
|
xml-group-manager -d %{name}
|
|
sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%{_datadir}/%{name}
|
|
|
|
%changelog
|