rss-dtd091-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Name: rss-dtd091
  2. Version: 1.0
  3. Release: 2%{?_dist_release}
  4. Group: Applications/Text
  5. Summary: XML document type definition for RSS 0.91
  6. License: Distributable
  7. #Provides: html-dtd
  8. Requires: sgml-common >= 0.5 fileutils
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Source0: http://my.netscape.com/publish/formats/rss-0.91.dtd
  12. Source1: rss091.cat
  13. Url: http://my.netscape.com/publish/formats/rss-spec-0.91.html
  14. %description
  15. This is RSS 0.91 DTD.
  16. %prep
  17. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  18. rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
  19. %setup -c -T -n %{name}-%{version}
  20. cp %{SOURCE0} .
  21. %build
  22. %install
  23. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  24. [ "${RPM_BUILD_ROOT}" != "/" ] && \
  25. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/sgml/rss/rss-dtd-0.91
  26. install -m0644 %{SOURCE0} ${RPM_BUILD_ROOT}%{_datadir}/sgml/rss/rss-dtd-0.91
  27. install -m0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/sgml/rss/rss-dtd-0.91
  28. ln -s rss091.cat ${RPM_BUILD_ROOT}%{_datadir}/sgml/rss/rss-dtd-0.91/catalog
  29. %clean
  30. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  31. rm -rf ${RPM_BUILD_DIR}/%{name}-%{version}
  32. %files
  33. %defattr (-,root,root)
  34. %{_datadir}/sgml/rss/rss-dtd-0.91
  35. %post
  36. # Update the centralized catalog corresponding to this version of the DTD
  37. /usr/bin/install-catalog --add /etc/sgml/rss-0.91.cat %{_datadir}/sgml/rss/rss-dtd-0.91/catalog > /dev/null
  38. # Update the link to the current version of the DTD
  39. ln -s -f /etc/sgml/rss-0.91.cat /etc/sgml/rss.cat
  40. %postun
  41. # Update the centralized catalog corresponding to this version of the DTD
  42. /usr/bin/install-catalog --remove /etc/sgml/rss-0.91.cat %{_datadir}/sgml/rss/rss-dtd-0.91/catalog > /dev/null
  43. # Update the link to the current version of the DTD
  44. if [ ! -e /etc/sgml/rss-0.91.cat ]; then
  45. rm -f /etc/sgml/rss.cat
  46. OTHERCAT=`ls /etc/sgml/rss-?.*.cat 2> /dev/null | head --lines 1`
  47. if [ -n "$OTHERCAT" ]; then ln -s $OTHERCAT /etc/sgml/rss.cat; fi
  48. fi
  49. %changelog
  50. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-1vl5
  51. - applied new versioning policy, spec in utf-8
  52. * Thu Jan 3 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.0-0vl1
  53. - first release