2007-01-12 01:32:10 +01:00
|
|
|
#
|
2014-08-06 11:42:32 +02:00
|
|
|
# spec file for package xmlcharent
|
2007-01-12 01:32:10 +01:00
|
|
|
#
|
2014-08-06 11:42:32 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-12 01:32:10 +01:00
|
|
|
#
|
2008-10-23 04:51:05 +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-01-12 01:32:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-10-23 04:51:05 +02:00
|
|
|
|
2007-01-12 01:32:10 +01:00
|
|
|
Name: xmlcharent
|
2014-08-06 11:42:32 +02:00
|
|
|
Version: 0.3
|
|
|
|
Release: 0
|
|
|
|
Summary: XML Character Entities
|
2011-12-06 19:16:24 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-12 01:32:10 +01:00
|
|
|
Group: Productivity/Publishing/XML
|
2014-08-06 11:42:32 +02:00
|
|
|
Url: http://www.oasis-open.org/docbook/xmlcharent/
|
|
|
|
Source0: xmlcharent-0.3.tar.bz2
|
|
|
|
Source1: xmlcharent.xml
|
|
|
|
Source2: xmlcharent.sgml
|
|
|
|
Requires: sgml-skel
|
|
|
|
Requires: xml-group-manager
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: xml-group-manager
|
2008-10-23 04:51:05 +02:00
|
|
|
BuildArch: noarch
|
2007-01-12 01:32:10 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
XML encodings for the 19 standard character entity sets defined in
|
|
|
|
non-normative Annex D of [ISO 8879:1986].
|
|
|
|
|
|
|
|
%prep
|
2014-08-06 11:42:32 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE1} > xmlcharent.xml
|
|
|
|
sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE2} > xmlcharent.sgml
|
2007-01-12 01:32:10 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2014-08-06 11:42:32 +02:00
|
|
|
%{__mkdir} -p %{buildroot}%{_datadir}/%{name}/entities/
|
|
|
|
%{__install} -m 0664 -D *.ent %{buildroot}%{_datadir}/%{name}/entities/
|
|
|
|
%{__install} -m 0644 -D xmlcharent.xml %{buildroot}%{_datadir}/%{name}/%{name}.xml
|
|
|
|
%{__install} -m 0644 -D xmlcharent.sgml %{buildroot}%{_datadir}/%{name}/%{name}.sgml
|
2007-01-12 01:32:10 +01:00
|
|
|
|
|
|
|
%post
|
2014-08-06 11:42:32 +02:00
|
|
|
xml-group-manager -i %{name} -p "ISO 8879:1986//ENTITIES" -s "http://www.oasis-open.org/docbook/xmlcharent/0.3/" %{_datadir}/%{name}/%{name}.xml
|
|
|
|
sgml-register-catalog -a %{_datadir}/%{name}/%{name}.sgml
|
2007-01-12 01:32:10 +01:00
|
|
|
|
|
|
|
%postun
|
2014-08-06 11:42:32 +02:00
|
|
|
xml-group-manager -d %{name}
|
|
|
|
sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml
|
2007-01-12 01:32:10 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2014-08-06 11:42:32 +02:00
|
|
|
%{_datadir}/%{name}
|
2007-01-12 01:32:10 +01:00
|
|
|
|
2007-03-29 12:08:47 +02:00
|
|
|
%changelog
|