diff --git a/xmlcharent.changes b/xmlcharent.changes index 62abfdd..0c371b0 100644 --- a/xmlcharent.changes +++ b/xmlcharent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 18 12:29:42 UTC 2016 - fvogt@suse.com + +- Use update-xml-catalog + ------------------------------------------------------------------- Tue Aug 5 10:48:58 UTC 2014 - rsalevsky@suse.com diff --git a/xmlcharent.spec b/xmlcharent.spec index 3732e3d..1c96a04 100644 --- a/xmlcharent.spec +++ b/xmlcharent.spec @@ -26,10 +26,9 @@ 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 +Requires: sgml-skel >= 0.7 +Requires(post): sgml-skel >= 0.7 +Requires(postun): sgml-skel >= 0.7 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -47,19 +46,20 @@ sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE2} > xmlcharent.sgml %install %{__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.xml %{buildroot}%{_sysconfdir}/xml/catalog.d/%{name}.xml %{__install} -m 0644 -D xmlcharent.sgml %{buildroot}%{_datadir}/%{name}/%{name}.sgml %post -xml-group-manager -i %{name} -p "ISO 8879:1986//ENTITIES" -s "http://www.oasis-open.org/docbook/xmlcharent/0.3/" %{_datadir}/%{name}/%{name}.xml +update-xml-catalog sgml-register-catalog -a %{_datadir}/%{name}/%{name}.sgml %postun -xml-group-manager -d %{name} +update-xml-catalog sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml %files %defattr(-, root, root) %{_datadir}/%{name} +%{_sysconfdir}/xml/catalog.d/%{name}.xml %changelog