rpms/rubygem-icalendar/devel import.log, NONE, 1.1 rubygem-icalendar-manage_gem.patch, NONE, 1.1 rubygem-icalendar.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

tremble tremble at fedoraproject.org
Mon Feb 1 12:18:19 UTC 2010


Author: tremble

Update of /cvs/pkgs/rpms/rubygem-icalendar/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2802/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rubygem-icalendar-manage_gem.patch 
	rubygem-icalendar.spec 
Log Message:
Initial CVS Import



--- NEW FILE import.log ---
rubygem-icalendar-1_1_0-2_fc12:HEAD:rubygem-icalendar-1.1.0-2.fc12.src.rpm:1265026660

rubygem-icalendar-manage_gem.patch:
 Rakefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE rubygem-icalendar-manage_gem.patch ---
>From 7da9a471e59678585aa849571888afc7c90f3cd7 Mon Sep 17 00:00:00 2001
From: Mark Chappell <m.d.chappell at bath.ac.uk>
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



--- NEW FILE rubygem-icalendar.spec ---
# 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: 2%{?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
* Wed Jan 27 2010 M D Chappell <m.d.chappell at bath.ac.uk> - 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 <m.d.chappell at bath.ac.uk> - 1.1.0-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-icalendar/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	31 Jan 2010 19:11:48 -0000	1.1
+++ .cvsignore	1 Feb 2010 12:18:18 -0000	1.2
@@ -0,0 +1 @@
+icalendar-1.1.0.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-icalendar/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	31 Jan 2010 19:11:49 -0000	1.1
+++ sources	1 Feb 2010 12:18:19 -0000	1.2
@@ -0,0 +1 @@
+52eadc886af8f3354394504e956d6b7b  icalendar-1.1.0.gem



More information about the scm-commits mailing list