]> git.pld-linux.org Git - packages/docbook-dtd45-xml.git/blame_incremental - docbook-dtd45-xml.spec
- mention DocBook version in descriptions
[packages/docbook-dtd45-xml.git] / docbook-dtd45-xml.spec
... / ...
CommitLineData
1#
2# todo:
3# - use XML ISO entities from sgml-common
4#
5Summary: XML/SGML DocBook DTD 4.5
6Summary(pl.UTF-8): XML/SGML DocBook DTD 4.5
7%define ver 4.5
8Name: docbook-dtd45-xml
9Version: 1.0
10Release: 1
11Vendor: OASIS
12License: Free
13Group: Applications/Publishing/XML
14Source0: http://www.oasis-open.org/docbook/xml/%{ver}/docbook-xml-%{ver}.zip
15# Source0-md5: 03083e288e87a7e829e437358da7ef9e
16URL: http://www.oasis-open.org/docbook/
17BuildRequires: libxml2-progs
18BuildRequires: rpm-build >= 4.0.2-94
19BuildRequires: unzip
20Requires(post,preun): /usr/bin/install-catalog
21Requires(post,preun): /usr/bin/xmlcatalog
22Requires: libxml2-progs >= 2.4.17-6
23Requires: sgml-common
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%define dtd_path %{_datadir}/sgml/docbook/xml-dtd-%{ver}
28%define xmlcat_file %{dtd_path}/catalog.xml
29%define sgmlcat_file %{dtd_path}/catalog
30
31%description
32DocBook is an XML/SGML vocabulary particularly well suited to books
33and papers about computer hardware and software (though it is by no
34means limited to only these applications).
35
36This package contains DocBook 4.5 XML DTD.
37
38%description -l pl.UTF-8
39DocBook DTD jest zestawem definicji dokumentów XML/SGML przeznaczonych
40do tworzenia dokumentacji technicznej. Stosowany jest do pisania
41podręczników systemowych, instrukcji jak i wielu innych ciekawych
42rzeczy.
43
44Ten pakiet zawiera wersję DocBook 4.5 XML.
45
46%prep
47%setup -q -c
48chmod -R a+rX *
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT%{dtd_path}
53
54install *.{xml,dtd,mod} $RPM_BUILD_ROOT%{dtd_path}
55install *.ent $RPM_BUILD_ROOT%{dtd_path} || :
56cp -a ent $RPM_BUILD_ROOT%{dtd_path}
57
58%docbook_sgmlcat_fix $RPM_BUILD_ROOT%{sgmlcat_file} %{ver}
59
60cat docbook.cat >> $RPM_BUILD_ROOT%{sgmlcat_file}
61
62%xmlcat_add_rewrite \
63 http://www.oasis-open.org/docbook/xml/%{ver} \
64 file://%{dtd_path} \
65 $RPM_BUILD_ROOT%{xmlcat_file}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%post
71if ! grep -q /etc/sgml/xml-docbook-%{ver}.cat /etc/sgml/catalog ; then
72 %sgmlcat_add /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
73
74fi
75if ! grep -q %{xmlcat_file} /etc/xml/catalog ; then
76 %xmlcat_add %{xmlcat_file}
77
78fi
79
80%preun
81if [ "$1" = "0" ] ; then
82 %sgmlcat_del /etc/sgml/xml-docbook-%{ver}.cat %{sgmlcat_file}
83 %xmlcat_del %{xmlcat_file}
84fi
85
86%files
87%defattr(644,root,root,755)
88%doc README ChangeLog
89%{dtd_path}
This page took 0.117299 seconds and 4 git commands to generate.