source: projects/specs/trunk/h/html-dtd401/html-dtd401-vl.spec @ 521

Revision 521, 2.6 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Name: html-dtd401
2Version: 1.0
3Release: 1vl1
4Group: Applications/Text
5
6Summary: SGML document type definition for HTML 4.01
7
8License: Distributable
9
10#Provides: html-dtd
11Requires: sgml-common >= 0.5 fileutils
12
13BuildRoot: %{_tmppath}/%{name}-%{version}
14
15BuildArch: noarch
16Source0: http://www.w3.org/TR/html401/strict.dtd
17Source1: /www.w3.org/TR/html401/loose.dtd
18Source2: /www.w3.org/TR/html401/frameset.dtd
19Source3: /www.w3.org/TR/html401/HTMLlat1.ent
20Source4: /www.w3.org/TR/html401/HTMLsymbol.ent
21Source5: /www.w3.org/TR/html401/HTMLspecial.ent
22Source6: html401.cat
23Url: http://www.w3.org/TR/html401/
24
25%description
26This is HTML 4.01 Strict DTD, which excludes the presentation
27attributes and elements that W3C expects to phase out as
28support for style sheets matures. Authors should use the Strict
29DTD when possible, but may use the Transitional DTD when support
30for presentation attribute and elements is required.
31
32
33%prep
34[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
35rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
36
37%setup -c -T -n %{name}-%{version}
38cp %{SOURCE0} .
39cp %{SOURCE1} .
40cp %{SOURCE2} .
41cp %{SOURCE3} .
42cp %{SOURCE4} .
43cp %{SOURCE5} .
44cp %{SOURCE6} .
45
46%build
47
48
49%install
50[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
51[ "${RPM_BUILD_ROOT}" != "/" ] && \
52            mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01
53
54install -m0644 *.ent ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01
55install -m0644 *.dtd ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01
56install -m0644 *.cat ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01
57ln -s  html401.cat ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01/catalog
58
59%clean
60[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
61rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
62
63%files
64%defattr (-,root,root)
65%{_datadir}/sgml/html/html-dtd-4.01
66
67
68%post
69# Update the centralized catalog corresponding to this version of the DTD
70/usr/bin/install-catalog --add /etc/sgml/html-4.01.cat %{_datadir}/sgml/html/html-dtd-4.01/catalog > /dev/null
71
72# Update the link to the current version of the DTD
73ln -s -f /etc/sgml/html-4.01.cat /etc/sgml/html.cat
74
75%postun
76# Update the centralized catalog corresponding to this version of the DTD
77/usr/bin/install-catalog --remove /etc/sgml/html-4.01.cat %{_datadir}/sgml/html/html-dtd-4.01/catalog > /dev/null
78
79# Update the link to the current version of the DTD
80if [ ! -e /etc/sgml/html-4.01.cat ]; then
81    rm -f /etc/sgml/html.cat
82    OTHERCAT=`ls /etc/sgml/html-?.*.cat 2> /dev/null | head --lines 1`
83    if [ -n "$OTHERCAT" ]; then ln -s $OTHERCAT /etc/sgml/html.cat; fi
84fi
85
86%changelog
87* Tue Jan  1 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.0-1vl1
88- first release
89
Note: See TracBrowser for help on using the repository browser.