From 0847838624723545448509cd32ebf98a859b3b2f Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Feb 01 2010 16:07:32 +0000 Subject: rubygem-icalendar: Initial import (EL5) --- diff --git a/.cvsignore b/.cvsignore index e69de29..82b3333 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +icalendar-1.1.0.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..1288582 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-icalendar-1_1_0-3_fc13:EL-5:rubygem-icalendar-1.1.0-3.fc13.src.rpm:1265040399 diff --git a/rubygem-icalendar-manage_gem.patch b/rubygem-icalendar-manage_gem.patch new file mode 100644 index 0000000..d801fec --- /dev/null +++ b/rubygem-icalendar-manage_gem.patch @@ -0,0 +1,26 @@ +From 7da9a471e59678585aa849571888afc7c90f3cd7 Mon Sep 17 00:00:00 2001 +From: Mark Chappell +Date: Wed, 27 Jan 2010 13:39:03 +0000 +Subject: [PATCH] Replace deprecated method Gem::manage_gems + +--- + Rakefile | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/Rakefile b/Rakefile +index 0ce7643..2e6af95 100644 +--- a/Rakefile ++++ b/Rakefile +@@ -55,7 +55,8 @@ Rake::RDocTask.new(:doc) { |rdoc| + rdoc.options << "--accessor=ical_component,ical_property,ical_multi_property" + } + +-Gem::manage_gems ++require 'rubygems' ++require 'rubygems/gem_runner' + require 'rake/gempackagetask' + + spec = Gem::Specification.new do |s| +-- +1.5.5.6 + diff --git a/rubygem-icalendar.spec b/rubygem-icalendar.spec new file mode 100644 index 0000000..9d03280 --- /dev/null +++ b/rubygem-icalendar.spec @@ -0,0 +1,100 @@ +# Generated from icalendar-1.1.0.gem by gem2rpm -*- rpm-spec -*- +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname icalendar +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%global rubyabi 1.8 + +Summary: A ruby implementation of the iCalendar specification (RFC-2445) +Name: rubygem-%{gemname} +Version: 1.1.0 +Release: 3%{?dist} +Group: Development/Languages +License: GPL+ or Ruby +URL: http://icalendar.rubyforge.org/ +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +# Patch also sent upstream by email 27-Jan-2009 +Patch0: rubygem-icalendar-manage_gem.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: ruby(abi) = %{rubyabi} +Requires: rubygems +BuildRequires: rubygems +BuildRequires: rubygem(rake) +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Implements the iCalendar specification (RFC-2445) in Ruby. This allows for +the generation and parsing of .ics files, which are used by a variety of +calendaring applications. + + +%prep + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --force --rdoc %{SOURCE0} + +# API documentation hasn't been written, +# However the rdocs are there +rm -rf %{buildroot}%{geminstdir}/docs/api +# Test case that hasn't been written yet +rm -rf %{buildroot}%{geminstdir}/test/coverage + +# Tidy up the file permissions +# The tests are run from the Rakefile +find %{buildroot}%{geminstdir}/test \ + -type f -name '*.rb' | xargs chmod 0644 +find %{buildroot}%{geminstdir}/test \ + -type f -name '*.rb' | \ + xargs -n 1 sed -i -e '/^#!\/usr\/.*ruby.*/d' +# ... and the examples are valid scripts ... +find %{buildroot}%{geminstdir}/examples \ + -type f -name '*.rb' | xargs chmod 0755 +# ... and it's perfectly acceptable for users have read access to the +# source gem +chmod 644 %{buildroot}%{gemdir}/cache/%{gemname}-%{version}.gem + +pushd %{buildroot}%{geminstdir} +patch -p1 < %{PATCH0} +popd + +%clean +rm -rf %{buildroot} + +%check +pushd %{buildroot}%{geminstdir} +rake test +popd + +%files +%defattr(-, root, root, -) +%dir %{geminstdir} +%{geminstdir}/lib +%{geminstdir}/examples +%{geminstdir}/test +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/README +%doc %{geminstdir}/COPYING +%doc %{geminstdir}/GPL +%doc %{geminstdir}/docs +%doc %{geminstdir}/Rakefile +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Mon Feb 01 2010 M D Chappell - 1.1.0-3 +- Requires rubygem(rake) rather that rubygem-rake + +* Wed Jan 27 2010 M D Chappell - 1.1.0-2 +- Various Formatting changes +- Run tests +- Fix Rakefile for recent verions of gem +- Correction of SRPM permissions + +* Tue Jan 26 2010 M Chappell - 1.1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..6957a78 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +52eadc886af8f3354394504e956d6b7b icalendar-1.1.0.gem