rpms/rubygem-pathname2/F-12 import.log, NONE, 1.1 ruby_1_8_test_pathname.patch, NONE, 1.1 rubygem-pathname2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Brett Lentz wakko666 at fedoraproject.org
Tue Sep 8 18:48:14 UTC 2009


Author: wakko666

Update of /cvs/pkgs/rpms/rubygem-pathname2/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1362/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	import.log ruby_1_8_test_pathname.patch rubygem-pathname2.spec 
Log Message:
import rubygem-pathname2 into F-12 branch.



--- NEW FILE import.log ---
rubygem-pathname2-1_6_2-6_fc11:F-12:rubygem-pathname2-1.6.2-6.fc11.src.rpm:1252435671

ruby_1_8_test_pathname.patch:
 test_pathname.rb |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

--- NEW FILE ruby_1_8_test_pathname.patch ---
--- test_pathname.rb.orig	2009-08-24 10:29:59.000000000 -0700
+++ test_pathname.rb	2009-08-24 10:34:56.411542807 -0700
@@ -6,7 +6,6 @@
 # 'rake test_c' to test the C version.
 ##############################################################################
 require 'rubygems'
-gem 'test-unit'
 
 require 'test/unit'
 require 'pathname2'
@@ -16,12 +15,10 @@
 class MyPathname < Pathname; end
 
 class TC_Pathname < Test::Unit::TestCase
-   def self.startup
+   def setup
       Dir.chdir(File.expand_path(File.dirname(__FILE__)))
       @@pwd = Dir.pwd
-   end
 
-   def setup
       @abs_path = Pathname.new('/usr/local/bin')
       @rel_path = Pathname.new('usr/local/bin')
       @trl_path = Pathname.new('/usr/local/bin/')
@@ -95,7 +92,7 @@
       case CONFIG['host_os']
          when /linux/i
             path1 = '/dev/stdin'
-            assert_equal('/dev/pts/0', Pathname.new(path1).realpath)
+            assert_equal('/dev/proc/self/fd/0', Pathname.new(path1).realpath)
          when /sunos|solaris/i
             path1 = '/dev/null'
             path2 = '/dev/stdin'


--- NEW FILE rubygem-pathname2.spec ---
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname    pathname2
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Name:           rubygem-%{gemname}
Version:        1.6.2
Release:        6%{?dist}
Summary:        An alternate implementation for the Pathname library

Group:          Development/Languages
License:        Artistic 2.0
URL:            http://raa.ruby-lang.org/project/pathname2/
Source0:        http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem

Patch0:        ruby_1_8_test_pathname.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires: rubygem(facade)
BuildRequires: rubygem(rake)
BuildRequires: rubygems
BuildRequires: ruby(abi) = 1.8

Requires:      rubygem(facade)
Requires:      rubygems
Requires:      ruby(abi) = 1.8

Provides:      rubygem(%{gemname}) = %{version}

%description
An alternate implementation for the Pathname library. This version treats a
 path name as a String, though with certain methods overloaded.

%prep
%setup -q -c -T

%{__mkdir_p} .%{gemdir}
gem install --local --install-dir=.%{gemdir} \
   --force --rdoc %{SOURCE0}

pushd .%{geminstdir}/test
%patch0 -p0
popd

%build

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{gemdir}
%{__cp} -a .%{gemdir}/* %{buildroot}%{gemdir}/

%check
ruby -I$(pwd)%{geminstdir}/lib $(pwd)%{geminstdir}/test/test_pathname.rb

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%dir %{geminstdir}
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/CHANGES
%doc %{geminstdir}/MANIFEST
%doc %{geminstdir}/README
%{gemdir}/cache/%{gemname}-%{version}.gem
%{geminstdir}/benchmarks
%{geminstdir}/examples
%{geminstdir}/lib
%{geminstdir}/test
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

%changelog
* Tue Sep 08 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-6
- change defines to globals.

* Mon Aug 24 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-5
- change install method to allow use of patch macro.
- remove period at the end of summary.

* Mon Aug 24 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-4
- Add check section for running tests.
- Simplify a few things in the files section. 
- Add patch for running tests on ruby 1.8

* Thu Aug 20 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-3
- Fix a few more spec file issues, as noted in https://bugzilla.redhat.com/show_bug.cgi?id=518083

* Thu Aug 20 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-2
- Fix a few spec file issues, as noted in https://bugzilla.redhat.com/show_bug.cgi?id=518083

* Tue Aug 18 2009 Brett Lentz <wakko666 at gmail.com> - 1.6.2-1
- First packaging.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-pathname2/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	4 Sep 2009 02:17:12 -0000	1.1
+++ .cvsignore	8 Sep 2009 18:48:13 -0000	1.2
@@ -0,0 +1 @@
+pathname2-1.6.2.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-pathname2/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	4 Sep 2009 02:17:12 -0000	1.1
+++ sources	8 Sep 2009 18:48:14 -0000	1.2
@@ -0,0 +1 @@
+45e748f579456cfb76aa9f53fb6fb03b  pathname2-1.6.2.gem




More information about the fedora-extras-commits mailing list