nqxml-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define rblibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  2. Summary: pure Ruby implementation of a non-validating XML processor
  3. Summary(ja): Ruby で実装された non-validating XML プロセッサ
  4. Name: nqxml
  5. Version: 1.1.3p1
  6. Release: 1%{?_dist_release}
  7. License: distributable
  8. Group: Development/Libraries
  9. Source: http://downloads.sourceforge.net/nqxml/%{name}-%{version}.tar.gz
  10. URL: http://nqxml.sourceforge.net/
  11. BuildArch: noarch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: ruby
  14. BuildRequires: ruby-devel >= 1.6.4-0vl3
  15. Requires: libruby >= 1.6
  16. %description
  17. NQXML is a pure Ruby implementation of a non-validating XML processor. It
  18. includes an XML tokenizer, a SAX-style streaming XML parser, a DOM-style
  19. tree parser, and an XML writer. ``NQ'' stands for ``Not Quite''. There is
  20. some limitations.
  21. %description -l ja
  22. NQXMLは完全にRubyだけで実装されたnon-validating XMLプロセッサです.
  23. XMLトークン化,SAXスタイルでのパーズ,DOMスタイルでのパーズ,XML出
  24. 力が可能です.「NQ」は「Not Quite」を意味しており,いくつかの制限
  25. 事項があります.
  26. %prep
  27. %setup -q -c
  28. %build
  29. %install
  30. rm -rf ${RPM_BUILD_ROOT}
  31. mkdir -p ${RPM_BUILD_ROOT}%{rblibdir}
  32. cd %{name}-%{version}
  33. ruby install.rb --install-dir=${RPM_BUILD_ROOT}%{rblibdir}
  34. cd ..
  35. (find \
  36. $RPM_BUILD_ROOT%{rblibdir} \
  37. -type f -o -type l) |
  38. sort | sed -e "s,^$RPM_BUILD_ROOT,," > nqxml.files
  39. %clean
  40. rm -f nqxml.files
  41. rm -rf ${RPM_BUILD_ROOT}
  42. %pre
  43. %post
  44. %files -f nqxml.files
  45. %defattr(-, root, root)
  46. %doc %{name}-%{version}/ChangeLog
  47. %doc %{name}-%{version}/Credits
  48. %doc %{name}-%{version}/INSTALL
  49. %doc %{name}-%{version}/README
  50. %doc %{name}-%{version}/TODO
  51. %doc %{name}-%{version}/contrib/
  52. %doc %{name}-%{version}/examples/
  53. %doc %{name}-%{version}/tests/
  54. %changelog
  55. * Wed Mar 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.3p1-1
  56. - updated to 1.1.3p1
  57. - changed Group to Development/Libraries
  58. * Wed Oct 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.1-1vl5
  59. - applied new versioning policy, spec in utf-8
  60. - s/Copyright/License/
  61. * Sun Oct 14 2001 akira yamada <akira@vinelinux.org> 1.1.1-0vl1
  62. - Initial packaging.