packages/rhel6/rubygem-ruby-feedparser

changeset 0:96f724280bbf

Initial revision
author Guido Berhoerster <guido+packaging@berhoerster.name>
date Wed Jan 09 17:33:26 2013 +0100 (2013-01-09)
parents
children 92e74b5c468d
files rubygem-ruby-feedparser.spec sources
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rubygem-ruby-feedparser.spec	Wed Jan 09 17:33:26 2013 +0100
     1.3 @@ -0,0 +1,87 @@
     1.4 +%global gemname ruby-feedparser
     1.5 +
     1.6 +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
     1.7 +%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
     1.8 +%global gemdocdir %{gemdir}/doc/%{gemname}-%{version}
     1.9 +%global rubyabi 1.8
    1.10 +
    1.11 +Name:           rubygem-%{gemname}
    1.12 +Version:        0.7
    1.13 +Release:        1%{?dist}
    1.14 +Summary:        Ruby Library to Parse ATOM and RSS Feeds
    1.15 +
    1.16 +Group:          Development/Languages
    1.17 +License:        BSD
    1.18 +URL:            http://rubygems.org/gems/ruby-feedparser
    1.19 +Source0:        http://rubygems.org/downloads/%{gemname}-%{version}.gem
    1.20 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.21 +BuildArch:      noarch
    1.22 +
    1.23 +BuildRequires:  ruby(abi) = 1.8
    1.24 +BuildRequires:  ruby
    1.25 +BuildRequires:  ruby(rubygems)
    1.26 +Requires:       ruby(abi) = 1.8
    1.27 +Requires:       ruby
    1.28 +Requires:       ruby(rubygems)
    1.29 +Provides:       rubygem(%{gemname}) = %{version}
    1.30 +
    1.31 +%description
    1.32 +ruby-feedparser is an RSS and Atom parser for Ruby. It was initially developed
    1.33 +for Feed2Imap, but it is now a standalone library.
    1.34 +
    1.35 +ruby-feedparser is:
    1.36 +
    1.37 +* based on REXML
    1.38 +* built for robustness : most feeds are not valid, a parser can't ignore that
    1.39 +* fully unit-tested
    1.40 +* easy to use (it can output text or HTML easily)
    1.41 +
    1.42 +%package doc
    1.43 +Summary:        Documentation for %{name}
    1.44 +Group:          Documentation
    1.45 +Requires:       %{name} = %{version}-%{release}
    1.46 +BuildArch:      noarch
    1.47 +
    1.48 +%description doc
    1.49 +Documentation for %{name}.
    1.50 +
    1.51 +%prep
    1.52 +%setup -q -c -T
    1.53 +
    1.54 +%build
    1.55 +
    1.56 +%install
    1.57 +rm -rf %{buildroot}
    1.58 +mkdir -p %{buildroot}%{gemdir}
    1.59 +gem install --local --install-dir %{buildroot}%{gemdir} \
    1.60 +    --force %{SOURCE0}
    1.61 +find %{buildroot}%{geminstdir} %{buildroot}%{gemdocdir} \
    1.62 +    -type f -exec chmod 644 {} \+
    1.63 +find %{buildroot}%{geminstdir}/test %{buildroot}%{geminstdir}/tools \
    1.64 +    %{buildroot}%{geminstdir}/setup.rb -type f -exec chmod 755 {} \+
    1.65 +
    1.66 +%clean
    1.67 +rm -rf %{buildroot}
    1.68 +
    1.69 +%files
    1.70 +%defattr(-, root, root, -)
    1.71 +%dir %{geminstdir}
    1.72 +%doc %{geminstdir}/LICENSE
    1.73 +%doc %{geminstdir}/COPYING
    1.74 +%{geminstdir}/Rakefile
    1.75 +%{geminstdir}/setup.rb
    1.76 +%{geminstdir}/lib
    1.77 +%{geminstdir}/test
    1.78 +%{geminstdir}/tools
    1.79 +%{gemdir}/cache/%{gemname}-%{version}.gem
    1.80 +%{gemdir}/specifications/%{gemname}-%{version}.gemspec
    1.81 +
    1.82 +%files doc
    1.83 +%defattr(-,root,root,-)
    1.84 +%doc %{gemdocdir}
    1.85 +%doc %{geminstdir}/ChangeLog
    1.86 +%doc %{geminstdir}/README
    1.87 +
    1.88 +%changelog
    1.89 +* Wed Jan 09 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 0.7-1
    1.90 +- Initial packaging
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sources	Wed Jan 09 17:33:26 2013 +0100
     2.3 @@ -0,0 +1,1 @@
     2.4 +bfca5d05e5a9b6340633afa56d9641cb ruby-feedparser-0.7.gem