[521] | 1 | Name: html-dtd401 |
---|
| 2 | Version: 1.0 |
---|
| 3 | Release: 1vl1 |
---|
| 4 | Group: Applications/Text |
---|
| 5 | |
---|
| 6 | Summary: SGML document type definition for HTML 4.01 |
---|
| 7 | |
---|
| 8 | License: Distributable |
---|
| 9 | |
---|
| 10 | #Provides: html-dtd |
---|
| 11 | Requires: sgml-common >= 0.5 fileutils |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version} |
---|
| 14 | |
---|
| 15 | BuildArch: noarch |
---|
| 16 | Source0: http://www.w3.org/TR/html401/strict.dtd |
---|
| 17 | Source1: /www.w3.org/TR/html401/loose.dtd |
---|
| 18 | Source2: /www.w3.org/TR/html401/frameset.dtd |
---|
| 19 | Source3: /www.w3.org/TR/html401/HTMLlat1.ent |
---|
| 20 | Source4: /www.w3.org/TR/html401/HTMLsymbol.ent |
---|
| 21 | Source5: /www.w3.org/TR/html401/HTMLspecial.ent |
---|
| 22 | Source6: html401.cat |
---|
| 23 | Url: http://www.w3.org/TR/html401/ |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | This is HTML 4.01 Strict DTD, which excludes the presentation |
---|
| 27 | attributes and elements that W3C expects to phase out as |
---|
| 28 | support for style sheets matures. Authors should use the Strict |
---|
| 29 | DTD when possible, but may use the Transitional DTD when support |
---|
| 30 | for presentation attribute and elements is required. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 35 | rm -rf ${RPM_BUILD_DIR}/%{name}-%{version} |
---|
| 36 | |
---|
| 37 | %setup -c -T -n %{name}-%{version} |
---|
| 38 | cp %{SOURCE0} . |
---|
| 39 | cp %{SOURCE1} . |
---|
| 40 | cp %{SOURCE2} . |
---|
| 41 | cp %{SOURCE3} . |
---|
| 42 | cp %{SOURCE4} . |
---|
| 43 | cp %{SOURCE5} . |
---|
| 44 | cp %{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 | |
---|
| 54 | install -m0644 *.ent ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01 |
---|
| 55 | install -m0644 *.dtd ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01 |
---|
| 56 | install -m0644 *.cat ${RPM_BUILD_ROOT}%{_datadir}/sgml/html/html-dtd-4.01 |
---|
| 57 | ln -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} |
---|
| 61 | rm -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 |
---|
| 73 | ln -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 |
---|
| 80 | if [ ! -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 |
---|
| 84 | fi |
---|
| 85 | |
---|
| 86 | %changelog |
---|
| 87 | * Tue Jan 1 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.0-1vl1 |
---|
| 88 | - first release |
---|
| 89 | |
---|