]> git.pld-linux.org Git - SPECS.git/blob - docbook-dtd51-xml.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / docbook-dtd51-xml.spec
1 Summary:        XML DocBook DTD 5.1
2 Summary(pl.UTF-8):      XML DocBook DTD 5.1
3 Name:           docbook-dtd51-xml
4 Version:        5.1
5 Release:        2
6 License:        Free
7 Group:          Applications/Publishing/XML
8 Source0:        https://docbook.org/xml/%{version}/docbook-v%{version}-os.zip
9 # Source0-md5:  d8bea8ddfc5743578a31cb18f9ae1f5a
10 Patch0:         %{name}-catalog.patch
11 URL:            https://docbook.org/
12 BuildRequires:  libxml2-progs
13 BuildRequires:  rpm-build >= 4.0.2-94
14 BuildRequires:  unzip
15 Requires(post,preun):   /usr/bin/xmlcatalog
16 Requires:       libxml2-progs >= 2.4.17-6
17 Requires:       sgml-common >= 0.5
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         dtd_path                %{_datadir}/sgml/docbook/xml-dtd-%{version}
22 %define         xmlcat_file             %{dtd_path}/catalog.xml
23
24 %description
25 DocBook is an XML/SGML vocabulary particularly well suited to books
26 and papers about computer hardware and software (though it is by no
27 means limited to only these applications).
28
29 This package contains DocBook 5.1 XML DTD.
30
31 %description -l pl.UTF-8
32 DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
33 do tworzenia dokumentacji technicznej. Stosowany jest do pisania
34 podręczników systemowych, instrukcji jak i wielu innych ciekawych
35 rzeczy.
36
37 Ten pakiet zawiera wersję DocBook 5.1 XML.
38
39 %prep
40 %setup -q -c
41
42 # update version number in catalog
43 %{__sed} -i -e 's/5\.1CR4/5.1/' schemas/catalog.xml
44
45 %patch0 -p1
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{dtd_path}
50
51 cp -pr schemas/* $RPM_BUILD_ROOT%{dtd_path}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post
57 if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
58         %xmlcat_add %{xmlcat_file}
59
60 fi
61
62 %preun
63 if [ "$1" = "0" ] ; then
64         %xmlcat_del %{xmlcat_file}
65 fi
66
67 %files
68 %defattr(644,root,root,755)
69 %doc docbook-v5.1-os.html
70 %{dtd_path}
This page took 0.123312 seconds and 3 git commands to generate.