| 1 | %define tarname rexml |
|---|
| 2 | Summary: REXML is an XML processor for the language Ruby |
|---|
| 3 | Name: ruby-REXML |
|---|
| 4 | Version: 2.3.6 |
|---|
| 5 | Release: 1 |
|---|
| 6 | License: Dual-licensed GPL/Artistic-like |
|---|
| 7 | Group: Applications/Ruby |
|---|
| 8 | Source0: http://www.germane-software.com/software/archives/%{tarname}_%{version}.tgz |
|---|
| 9 | Source1: http://www.germane-software.com/software/archives/rexml_api_%{version}.tbz2 |
|---|
| 10 | URL: http://www.germane-software.com/software/rexml/ |
|---|
| 11 | Packager: Ian Macdonald <ian@caliban.org> |
|---|
| 12 | BuildRoot: /var/tmp/%{name}-%{version} |
|---|
| 13 | BuildRequires: ruby |
|---|
| 14 | Requires: ruby |
|---|
| 15 | |
|---|
| 16 | %description |
|---|
| 17 | REXML is an XML processor for the language Ruby. REXML is conformant (passes |
|---|
| 18 | 100% of the Oasis non-validating tests), and includes full XPath support. It |
|---|
| 19 | is reasonably fast, and is implemented in pure Ruby. Best of all, it has a |
|---|
| 20 | clean, intuitive API. |
|---|
| 21 | |
|---|
| 22 | %package doc |
|---|
| 23 | Group: Documentation |
|---|
| 24 | Summary: documentation for Ruby REXML |
|---|
| 25 | |
|---|
| 26 | %description doc |
|---|
| 27 | Documentation for Ruby REXML |
|---|
| 28 | |
|---|
| 29 | %prep |
|---|
| 30 | %setup -n %{tarname} -a 1 |
|---|
| 31 | |
|---|
| 32 | %install |
|---|
| 33 | rm -rf $RPM_BUILD_ROOT |
|---|
| 34 | ruby -i -pe "sub(/(Config::CONFIG\['sitedir'])/, '\"$RPM_BUILD_ROOT\" + \1')" \ |
|---|
| 35 | bin/install.rb |
|---|
| 36 | ruby bin/install.rb |
|---|
| 37 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ |
|---|
| 38 | ruby -pe 'sub("^'$RPM_BUILD_ROOT'", "")' > %{name}-%{version}-filelist |
|---|
| 39 | |
|---|
| 40 | %files -f %{name}-%{version}-filelist |
|---|
| 41 | %defattr(-,root,root) |
|---|
| 42 | %doc *.html *.xml *.txt README |
|---|
| 43 | %doc bin/repackage.rb |
|---|
| 44 | %doc -P benchmarks/ contrib/ docs/ img/ test/ |
|---|
| 45 | |
|---|
| 46 | %files doc |
|---|
| 47 | %defattr(-,root,root) |
|---|
| 48 | %doc rexml/doc/* |
|---|
| 49 | |
|---|
| 50 | %changelog |
|---|
| 51 | * Sat Jun 08 2002 Sean Russell <ser@germane-software.com> |
|---|
| 52 | - 2.3.5 |
|---|
| 53 | |
|---|
| 54 | * Sun May 26 2002 Sean Russell <ser@germane-software.com> |
|---|
| 55 | - 2.3.4 |
|---|
| 56 | |
|---|
| 57 | * Sat May 11 2002 Ian Macdonald <ian@caliban.org> |
|---|
| 58 | - 2.2.1 |
|---|
| 59 | |
|---|
| 60 | * Sat Apr 27 2002 Ian Macdonald <ian@caliban.org> |
|---|
| 61 | - 2.1.3 |
|---|