/[packages]/cauldron/docbook-dtd42-sgml/current/SPECS/docbook-dtd42-sgml.spec
ViewVC logotype

Contents of /cauldron/docbook-dtd42-sgml/current/SPECS/docbook-dtd42-sgml.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16718 - (show annotations) (download)
Thu Jan 13 23:28:33 2011 UTC (13 years, 3 months ago) by blino
File size: 3242 byte(s)
remove old version check

1 %define name docbook-dtd42-sgml
2 %define version 1.0
3 %define release %mkrel 7
4 %define dtdver 4.2
5 %define mltyp sgml
6 %define sgmlbase %{_datadir}/sgml
7
8 Name: %{name}
9 Version: %{version}
10 Release: %{release}
11 Group: Publishing
12 Summary: SGML document type definition for DocBook %{dtdver}
13 License: Artistic style
14 URL: http://www.oasis-open.org/docbook/
15 Source: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.tar.bz2
16 Patch: docbook-dtd42-sgml-1.0.catalog.patch
17 Provides: docbook-dtd-sgml
18 Requires: sgml-common
19 BuildArch: noarch
20 BuildRoot: %{_tmppath}/%{name}-%{version}
21
22 %description
23 The DocBook Document Type Definition (DTD) describes the syntax of
24 technical documentation texts (articles, books and manual pages).
25 This syntax is SGML-compliant and is developed by the OASIS consortium.
26 This is the version %{dtdver} of this DTD.
27
28 %prep
29 %setup -q -c
30 %patch -p0
31
32 %build
33
34 %install
35 rm -rf %{buildroot}
36 DESTDIR=%{buildroot}%{sgmlbase}/docbook/sgml-dtd-%{dtdver}
37 mkdir -p $DESTDIR
38 install *.dcl $DESTDIR
39 install docbook.cat $DESTDIR/catalog
40 install *.dtd $DESTDIR
41 install *.mod $DESTDIR
42 mkdir -p %{buildroot}%{_sysconfdir}/sgml
43 touch %{buildroot}%{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat
44 touch %{buildroot}%{_sysconfdir}/sgml/catalog
45
46 %clean
47 rm -rf %{buildroot}
48
49 %post
50 %{_bindir}/xmlcatalog --sgml --noout --add \
51 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
52 %{sgmlbase}/sgml-iso-entities-8879.1986/catalog
53 %{_bindir}/xmlcatalog --sgml --noout --add \
54 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
55 %{sgmlbase}/docbook/%{mltyp}-dtd-%{dtdver}/catalog
56
57 # The following lines are for the case in which the style sheets
58 # were installed after another DTD but before this DTD
59 if [ -e %{sgmlbase}/openjade/catalog ]; then
60 %{_bindir}/xmlcatalog --sgml --noout --add \
61 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
62 %{sgmlbase}/openjade/catalog
63 fi
64
65 if [ -e %{sgmlbase}/docbook/dsssl-stylesheets/catalog ]; then
66 %{_bindir}/xmlcatalog --sgml --noout --add \
67 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
68 %{sgmlbase}/docbook/dsssl-stylesheets/catalog
69 fi
70
71
72 %postun
73 # Do not remove if upgrade
74 if [ "$1" = "0" -a -x %{_bindir}/xmlcatalog ]; then
75 %{_bindir}/xmlcatalog --sgml --noout --del \
76 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
77 %{sgmlbase}/sgml-iso-entities-8879.1986/catalog
78 %{_bindir}/xmlcatalog --sgml --noout --del \
79 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
80 %{sgmlbase}/docbook/%{mltyp}-dtd-%{dtdver}/catalog
81
82
83 # The following lines are for the case in which the style sheets
84 # were not uninstalled because there is still another DTD
85 if [ -e %{sgmlbase}/docbook/dsssl-stylesheets/catalog ]; then
86 %{_bindir}/xmlcatalog --sgml --noout --del \
87 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
88 %{sgmlbase}/openjade/catalog
89 %{_bindir}/xmlcatalog --sgml --noout --del \
90 %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat \
91 %{sgmlbase}/docbook/dsssl-stylesheets/catalog
92 fi
93 fi
94
95 %files
96 %defattr(-,root,root)
97 %doc README ChangeLog
98 %ghost %config(noreplace) %{_sysconfdir}/sgml/%{mltyp}-docbook-%{dtdver}.cat
99 %ghost %config(noreplace) %{_sysconfdir}/sgml/catalog
100 %{sgmlbase}/docbook/sgml-dtd-%{dtdver}
101
102
103
104

  ViewVC Help
Powered by ViewVC 1.1.30