]> git.pld-linux.org Git - packages/docbook-mathml.git/commitdiff
- initial release
authortrojan <trojan@pld-linux.org>
Mon, 24 Mar 2003 11:09:51 +0000 (11:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    docbook-mathml.spec -> 1.1

docbook-mathml.spec [new file with mode: 0644]

diff --git a/docbook-mathml.spec b/docbook-mathml.spec
new file mode 100644 (file)
index 0000000..d2da6bb
--- /dev/null
@@ -0,0 +1,60 @@
+Summary:       DocBook MathML Module 1.0
+Summary(pl):   DocBook MathML Module 1.0
+Name:          docbook-mathml
+Version:       1.0
+Release:       1
+Vendor:                OASIS
+License:       Free
+Group:         Applications/Publishing/XML
+URL:           http://www.oasis-open.org/docbook/
+Source0:       %{name}-%{version}.tar.gz
+BuildRequires: rpm-build >= 4.0.2-94
+BuildRequires: /usr/bin/xmlcatalog
+PreReq:                libxml2
+Requires(post,preun):  /usr/bin/xmlcatalog
+Requires:      libxml2-progs >= 2.4.17-6
+Requires:      w3-dtd-mathml
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define dtd_path       %{_datadir}/xml/docbook-mathml-dtd-%{version}
+%define        xmlcat_file     %{dtd_path}/catalog.xml
+
+%description
+DocBook MathML Module 1.0
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{dtd_path}
+
+install dbmathml.dtd $RPM_BUILD_ROOT%{dtd_path}
+
+%xmlcat_create $RPM_BUILD_ROOT%{xmlcat_file}
+
+%xmlcat_add_rewrite \
+       http://www.oasis-open.org/docbook/xml/mathml/%{version} \
+       file://%{dtd_path} \
+       $RPM_BUILD_ROOT%{xmlcat_file}
+
+%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 testmath.xml
+%{dtd_path}
This page took 0.061975 seconds and 4 git commands to generate.