SPECS: docbook-dtd44-xml.spec (NEW) - copied from -dtd43-xml.spec

radek radek at pld-linux.org
Sat May 20 20:55:41 CEST 2006


Author: radek                        Date: Sat May 20 18:55:41 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- copied from -dtd43-xml.spec

---- Files affected:
SPECS:
   docbook-dtd44-xml.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/docbook-dtd44-xml.spec
diff -u /dev/null SPECS/docbook-dtd44-xml.spec:1.1
--- /dev/null	Sat May 20 20:55:41 2006
+++ SPECS/docbook-dtd44-xml.spec	Sat May 20 20:55:35 2006
@@ -0,0 +1,97 @@
+# $Revision$, $Date$
+#
+# todo:
+# - use XML ISO entities from sgml-common
+#
+Summary:	XML/SGML DocBook DTD 4.4
+Summary(pl):	XML/SGML DocBook DTD 4.4
+%define ver	4.4
+Name:		docbook-dtd44-xml
+Version:	1.0
+Release:	1
+Vendor:		OASIS
+License:	Free
+Group:		Applications/Publishing/XML
+Source0:	http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
+# Source0-md5:	cbb04e9a700955d88c50962ef22c1634
+URL:		http://www.oasis-open.org/docbook/
+BuildRequires:	libxml2-progs
+BuildRequires:	rpm-build >= 4.0.2-94
+BuildRequires:	unzip
+PreReq:		libxml2
+PreReq:		sgml-common
+Requires(post,preun):	/usr/bin/install-catalog
+Requires(post,preun):	/usr/bin/xmlcatalog
+Requires:	libxml2-progs >= 2.4.17-6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		dtd_path		%{_datadir}/sgml/docbook/xml-dtd-%{ver}
+%define		xmlcat_file		%{dtd_path}/catalog.xml
+%define		sgmlcat_file	%{dtd_path}/catalog
+
+%description
+DocBook is an XML/SGML vocabulary particularly well suited to books
+and papers about computer hardware and software (though it is by no
+means limited to only these applications).
+
+%description -l pl
+DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
+do tworzenia dokumentacji technicznej. Stosowany jest do pisania
+podręczników systemowych, instrukcji jak i wielu innych ciekawych
+rzeczy.
+
+%prep
+%setup -q -c
+chmod -R a+rX *
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{dtd_path}
+
+install *.{xml,dtd,mod} $RPM_BUILD_ROOT%{dtd_path}
+install *.ent $RPM_BUILD_ROOT%{dtd_path} || :
+cp -a ent $RPM_BUILD_ROOT%{dtd_path}
+
+%docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{ver}
+
+cat docbook.cat >> $RPM_BUILD_ROOT%{sgmlcat_file}
+
+%xmlcat_add_rewrite \
+	http://www.oasis-open.org/docbook/xml/%{ver} \
+	file://%{dtd_path} \
+	$RPM_BUILD_ROOT%{xmlcat_file}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q /etc/sgml/xml-docbook-%{ver}.cat /etc/sgml/catalog ; then
+	%sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
+
+fi
+if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
+	%xmlcat_add %{xmlcat_file}
+
+fi
+
+%preun
+if [ "$1" = "0" ] ; then
+	%sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
+	%xmlcat_del %{xmlcat_file}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README ChangeLog
+%{dtd_path}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/05/20 18:55:35  radek
+- copied from -dtd43-xml.spec
+
================================================================


More information about the pld-cvs-commit mailing list