| 1 | #%%define rlibdir ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]' |
|---|
| 2 | |
|---|
| 3 | Summary: RSS(RDF Site Summary) library for Ruby |
|---|
| 4 | Name: rss-ruby |
|---|
| 5 | Version: 0.9.1 |
|---|
| 6 | Release: 0vl2 |
|---|
| 7 | License: Ruby's |
|---|
| 8 | Group: Development/Libraries |
|---|
| 9 | Source0: http://www.chadfowler.com/ruby/rss/rss-ruby-%{version}.tar.gz |
|---|
| 10 | URL: http://www.chadfowler.com/ruby/rss/ |
|---|
| 11 | BuildArch: noarch |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | Requires: ruby-xmlparser, drb >= 1.2.2, ruby >= 1.6.2, ruby-uconv |
|---|
| 14 | BuildRequires: ruby, rpm >= 3.0.6-0vl16 |
|---|
| 15 | Prefix: /usr |
|---|
| 16 | Patch0: http://everybody.good-day.net/~iwai/patch/rss-ruby-0.9.1_description.patch |
|---|
| 17 | Patch1: http://everybody.good-day.net/~iwai/patch/rss-ruby-0.9.1_silent.patch |
|---|
| 18 | |
|---|
| 19 | %description |
|---|
| 20 | This library provides and object oriented interface for the RSS |
|---|
| 21 | (http://http://my.netscape.com/publish/help/mnn20/quickstart.html) xml format. |
|---|
| 22 | It currently supports RSS 0.91. Aside from RSS parsing and creation code, |
|---|
| 23 | classes are provided for downloading and caching existing RSS content via HTTP |
|---|
| 24 | and (very basically) providing a distributed Ruby interface to this content. |
|---|
| 25 | |
|---|
| 26 | %prep |
|---|
| 27 | rm -rf ${RPM_BUILD_DIR}/%{name}-%{version} |
|---|
| 28 | |
|---|
| 29 | %setup -q |
|---|
| 30 | %patch0 -p1 -b .description |
|---|
| 31 | %patch1 -p1 -b .silent |
|---|
| 32 | |
|---|
| 33 | %install |
|---|
| 34 | mkdir -p ${RPM_BUILD_ROOT}%{rlibdir} |
|---|
| 35 | install -m 644 *.rb ${RPM_BUILD_ROOT}%{rlibdir} |
|---|
| 36 | |
|---|
| 37 | %clean |
|---|
| 38 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 39 | |
|---|
| 40 | %files |
|---|
| 41 | %defattr(-,root,root) |
|---|
| 42 | %doc README ChangeLog samples |
|---|
| 43 | %{rlibdir}/*.rb |
|---|
| 44 | |
|---|
| 45 | %changelog |
|---|
| 46 | * Wed Feb 6 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl2 |
|---|
| 47 | - moved the directory installed the ruby library |
|---|
| 48 | - sitelibdir -> rubylibdir |
|---|
| 49 | - changed rpm version in BuildRequires: 3.0.6-0vl19 -> rpm-3.0.6-0vl16 |
|---|
| 50 | |
|---|
| 51 | * Thu Jan 3 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl1 |
|---|
| 52 | - first release for Vine Linux |
|---|
| 53 | - added description.patch (Patch0) |
|---|
| 54 | - added silent.patch (Patch1) |
|---|
| 55 | |
|---|