%define tarname rexml Summary: REXML is an XML processor for the language Ruby Name: ruby-REXML Version: 2.3.6 Release: 1 License: Dual-licensed GPL/Artistic-like Group: Applications/Ruby Source0: http://www.germane-software.com/software/archives/%{tarname}_%{version}.tgz Source1: http://www.germane-software.com/software/archives/rexml_api_%{version}.tbz2 URL: http://www.germane-software.com/software/rexml/ Packager: Ian Macdonald BuildRoot: /var/tmp/%{name}-%{version} BuildRequires: ruby Requires: ruby %description REXML is an XML processor for the language Ruby. REXML is conformant (passes 100% of the Oasis non-validating tests), and includes full XPath support. It is reasonably fast, and is implemented in pure Ruby. Best of all, it has a clean, intuitive API. %package doc Group: Documentation Summary: documentation for Ruby REXML %description doc Documentation for Ruby REXML %prep %setup -n %{tarname} -a 1 %install rm -rf $RPM_BUILD_ROOT ruby -i -pe "sub(/(Config::CONFIG\['sitedir'])/, '\"$RPM_BUILD_ROOT\" + \1')" \ bin/install.rb ruby bin/install.rb find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ ruby -pe 'sub("^'$RPM_BUILD_ROOT'", "")' > %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist %defattr(-,root,root) %doc *.html *.xml *.txt README %doc bin/repackage.rb %doc -P benchmarks/ contrib/ docs/ img/ test/ %files doc %defattr(-,root,root) %doc rexml/doc/* %changelog * Sat Jun 08 2002 Sean Russell - 2.3.5 * Sun May 26 2002 Sean Russell - 2.3.4 * Sat May 11 2002 Ian Macdonald - 2.2.1 * Sat Apr 27 2002 Ian Macdonald - 2.1.3