commit 5994ea21ff91ba6256644fd345a1181121990d8a
Author: Jakub Bogusz <[email protected]>
Date:   Thu Jun 11 21:11:56 2015 +0200

    - initial

 docbook-dtd50-xml.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/docbook-dtd50-xml.spec b/docbook-dtd50-xml.spec
new file mode 100644
index 0000000..2f3c25f
--- /dev/null
+++ b/docbook-dtd50-xml.spec
@@ -0,0 +1,72 @@
+Summary:       XML DocBook DTD 5.0
+Summary(pl.UTF-8):     XML DocBook DTD 5.0
+Name:          docbook-dtd50-xml
+Version:       5.0
+Release:       1
+License:       Free
+Group:         Applications/Publishing/XML
+Source0:       http://docbook.org/xml/%{version}/docbook-%{version}.zip
+# Source0-md5: 2411c19ed4fb141f3fa3d389fae40736
+URL:           http://docbook.org/
+BuildRequires: libxml2-progs
+BuildRequires: rpm-build >= 4.0.2-94
+BuildRequires: unzip
+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-%{version}
+%define                xmlcat_file             %{dtd_path}/catalog.xml
+
+%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).
+
+This package contains DocBook 5.0 XML DTD.
+
+%description -l pl.UTF-8
+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.
+
+Ten pakiet zawiera wersję DocBook 5.0 XML.
+
+%prep
+%setup -q -n docbook-5.0
+#chmod -R a+rX *
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{dtd_path}
+
+cp -p catalog.xml $RPM_BUILD_ROOT%{dtd_path}
+cp -a dtd rng sch xsd $RPM_BUILD_ROOT%{dtd_path}
+
+%if 0
+%xmlcat_add_rewrite \
+       http://docbook.org/xml/%{version} \
+       file://%{dtd_path} \
+       $RPM_BUILD_ROOT%{xmlcat_file}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
+       %xmlcat_add %{xmlcat_file}
+
+fi
+
+%preun
+if [ "$1" = "0" ] ; then
+       %xmlcat_del %{xmlcat_file}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{dtd_path}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/docbook-dtd50-xml.git/commitdiff/5994ea21ff91ba6256644fd345a1181121990d8a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to