html-dtd401-vl.spec 2.6 KB

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