From ea7854b73453d6ea05a949f13677b9e046bd7cef Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Tue, 21 Sep 2010 15:01:43 +0900 Subject: [PATCH 1/7] Initial import --- .gitignore | 1 + rubygem-test-unit.spec | 117 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 119 insertions(+) create mode 100644 rubygem-test-unit.spec diff --git a/.gitignore b/.gitignore index e69de29..017ff93 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/test-unit-2.1.1.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec new file mode 100644 index 0000000..3d92b61 --- /dev/null +++ b/rubygem-test-unit.spec @@ -0,0 +1,117 @@ +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname test-unit +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +%global rubyabi 1.8 + +Summary: Improved version of Test::Unit bundled in Ruby 1.8.x +Name: rubygem-%{gemname} +Version: 2.1.1 +Release: 2%{?dist} +Group: Development/Languages +# lib/test/unit/diff.rb is under GPLv2 or Ruby or Python +# Other file: GPLv2 or Ruby +License: (GPLv2 or Ruby) and (GPLv2 or Ruby or Python) +URL: http://rubyforge.org/projects/test-unit/ + +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: rubygems +BuildRequires(check): rubygem(rake) +BuildRequires(check): rubygem(hoe) +Requires: ruby(abi) = %{rubyabi} +Requires: rubygems + +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version}-%{release} + +%description +Test::Unit 2.x - Improved version of Test::Unit bundled in +Ruby 1.8.x. +Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit +bundled in Ruby 1.8.x had not been improved but unbundled +Test::Unit (Test::Unit 2.x) will be improved actively. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains documentation for %{name}. + +%prep +%setup -q -c -T + +mkdir -p .%{geminstdir} +gem install \ + -V \ + --local \ + --install-dir .%{gemdir} \ + --force \ + --rdoc \ + %{SOURCE0} + +find . -name \*.gem | xargs chmod 0644 + +pushd .%{geminstdir} +# rdoc gem not needed +sed -i -e '/rdoc/s|^gem|#gem|' Rakefile +popd + +%build + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* \ + %{buildroot}%{gemdir}/ + +# Move bin/ script to standard path +# The name "testrb" conflicts with ruby 1.8.x, rename it +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}%{gemdir}/bin/* \ + %{buildroot}/%{_bindir}/ +rmdir %{buildroot}%{gemdir}/bin +find %{buildroot}%{geminstdir}/bin -type f | xargs chmod 0755 + +## rename!! +mv %{buildroot}%{_bindir}/testrb{,2} + +%clean +rm -rf %{buildroot} + +%check +pushd .%{geminstdir} +rake test --trace + +%files +%defattr(-,root,root,-) +%dir %{geminstdir} +%doc %{geminstdir}/[A-Z]* +%exclude %{geminstdir}/Rakefile + +%{_bindir}/testrb2 +%{geminstdir}/bin/ +%{geminstdir}/lib/ + +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%defattr(-,root,root,-) +%{geminstdir}/Rakefile +%{geminstdir}/html/ +%{geminstdir}/images/ +%{geminstdir}/sample/ +%{geminstdir}/test/ + +%{gemdir}/doc/%{gemname}-%{version}/ + +%changelog +* Sun Sep 19 2010 Mamoru Tasaka - 2.1.1-2 +- Fix up license tag + +* Sat Sep 18 2010 Mamoru Tasaka - 2.1.1-1 +- Initial package diff --git a/sources b/sources index e69de29..2a67ac6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ea44337803649ebb27d8bc51ee65aad7 test-unit-2.1.1.gem From 50de90f32ddaa1b5fdf853b7e9d8309bf851e334 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Fri, 26 Nov 2010 05:20:58 +0900 Subject: [PATCH 2/7] - 2.1.2 --- .gitignore | 1 + rubygem-test-unit.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 017ff93..e3c0fac 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /test-unit-2.1.1.gem +/test-unit-2.1.2.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index 3d92b61..7bf0006 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -6,8 +6,8 @@ Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.1.1 -Release: 2%{?dist} +Version: 2.1.2 +Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python # Other file: GPLv2 or Ruby @@ -110,6 +110,9 @@ rake test --trace %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Thu Nov 26 2010 Mamoru Tasaka - 2.1.2-1 +- 2.1.2 + * Sun Sep 19 2010 Mamoru Tasaka - 2.1.1-2 - Fix up license tag diff --git a/sources b/sources index 2a67ac6..d48d2b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ea44337803649ebb27d8bc51ee65aad7 test-unit-2.1.1.gem +fbe74832c21be380098569a99f75858d test-unit-2.1.2.gem From eceb2443249d180bc357d3863ec55f49ad457ea0 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Fri, 18 Feb 2011 05:58:44 +0900 Subject: [PATCH 3/7] 2.2.0 --- .gitignore | 1 + rubygem-test-unit.spec | 13 ++++++++++--- sources | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e3c0fac..1b088ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /test-unit-2.1.1.gem /test-unit-2.1.2.gem +/test-unit-2.2.0.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index 7bf0006..26c7622 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -6,7 +6,7 @@ Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.1.2 +Version: 2.2.0 Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python @@ -17,8 +17,9 @@ URL: http://rubyforge.org/projects/test-unit/ Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems -BuildRequires(check): rubygem(rake) -BuildRequires(check): rubygem(hoe) +# For %%check +BuildRequires: rubygem(rake) +BuildRequires: rubygem(hoe) Requires: ruby(abi) = %{rubyabi} Requires: rubygems @@ -110,6 +111,12 @@ rake test --trace %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Fri Feb 18 2011 Mamoru Tasaka - 2.2.0-1 +- 2.2.0 + +* Mon Feb 14 2011 Mamoru Tasaka - 2.1.2-2 +- F-15 mass rebuild + * Thu Nov 26 2010 Mamoru Tasaka - 2.1.2-1 - 2.1.2 diff --git a/sources b/sources index d48d2b0..67ee47f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fbe74832c21be380098569a99f75858d test-unit-2.1.2.gem +55c0b95e5506d4ce69075b569405fcfd test-unit-2.2.0.gem From 6fbee6e2ee7f6624db802deb40c2c74be278a663 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Sun, 24 Apr 2011 02:22:00 +0900 Subject: [PATCH 4/7] 2.3.0 --- .gitignore | 1 + rubygem-test-unit.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1b088ba..e417940 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /test-unit-2.1.1.gem /test-unit-2.1.2.gem /test-unit-2.2.0.gem +/test-unit-2.3.0.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index 26c7622..0d5a1f1 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -6,7 +6,7 @@ Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.2.0 +Version: 2.3.0 Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python @@ -111,6 +111,9 @@ rake test --trace %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Sun Apr 24 2011 Mamoru Tasaka - 2.3.0-1 +- 2.3.0 + * Fri Feb 18 2011 Mamoru Tasaka - 2.2.0-1 - 2.2.0 diff --git a/sources b/sources index 67ee47f..8e873fc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -55c0b95e5506d4ce69075b569405fcfd test-unit-2.2.0.gem +393047f217a0156b3b2ea288e171d7f5 test-unit-2.3.0.gem From fbe6b160ecc8e57cb7f2ef8a9f6679f5ee66450e Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Sun, 14 Aug 2011 23:20:52 +0900 Subject: [PATCH 5/7] 2.3.1 --- .gitignore | 2 ++ rubygem-test-unit.spec | 26 ++++++++++++++++++++------ sources | 3 ++- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e417940..795f1b5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /test-unit-2.1.2.gem /test-unit-2.2.0.gem /test-unit-2.3.0.gem +/test-unit-2.3.1.gem +/rubygem-test-unit-2.3.1-missing-files.tar.gz diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index 0d5a1f1..8fa2213 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -4,9 +4,12 @@ %global rubyabi 1.8 +# svn repository +# http://test-unit.rubyforge.org/svn/trunk/ + Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.3.0 +Version: 2.3.1 Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python @@ -15,11 +18,13 @@ License: (GPLv2 or Ruby) and (GPLv2 or Ruby or Python) URL: http://rubyforge.org/projects/test-unit/ Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +# From upstream svn, ah.. +Source1: rubygem-test-unit-2.3.1-missing-files.tar.gz BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems # For %%check -BuildRequires: rubygem(rake) -BuildRequires: rubygem(hoe) +#BuildRequires: rubygem(rake) +#BuildRequires: rubygem(hoe) Requires: ruby(abi) = %{rubyabi} Requires: rubygems @@ -54,12 +59,18 @@ gem install \ %{SOURCE0} find . -name \*.gem | xargs chmod 0644 +find . -type f | xargs chmod ugo+r pushd .%{geminstdir} # rdoc gem not needed sed -i -e '/rdoc/s|^gem|#gem|' Rakefile popd +# Unpack missing files +pushd .%{geminstdir} +gunzip -dc %{SOURCE1} | tar xf - +popd + %build %install @@ -85,7 +96,9 @@ rm -rf %{buildroot} %check pushd .%{geminstdir} -rake test --trace +#rake test --trace +ruby -Ilib ./test/run-test.rb +popd %files %defattr(-,root,root,-) @@ -103,14 +116,15 @@ rake test --trace %files doc %defattr(-,root,root,-) %{geminstdir}/Rakefile -%{geminstdir}/html/ -%{geminstdir}/images/ %{geminstdir}/sample/ %{geminstdir}/test/ %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Sun Aug 14 2011 Mamoru Tasaka - 2.3.1-1 +- 2.3.1 + * Sun Apr 24 2011 Mamoru Tasaka - 2.3.0-1 - 2.3.0 diff --git a/sources b/sources index 8e873fc..fbfedce 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -393047f217a0156b3b2ea288e171d7f5 test-unit-2.3.0.gem +05d6ee07bbef8e9bda7913bd77da482e test-unit-2.3.1.gem +1ef542903cded28e4e7b30b1fdc0b398 rubygem-test-unit-2.3.1-missing-files.tar.gz From 41e5f16b6b6beb4426a03caca8e595df9151b4ba Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Thu, 18 Aug 2011 01:08:03 +0900 Subject: [PATCH 6/7] 2.3.2 --- .gitignore | 1 + rubygem-test-unit.spec | 5 ++++- sources | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 795f1b5..f409d27 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /test-unit-2.3.0.gem /test-unit-2.3.1.gem /rubygem-test-unit-2.3.1-missing-files.tar.gz +/test-unit-2.3.2.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index 8fa2213..b249d11 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -9,7 +9,7 @@ Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.3.1 +Version: 2.3.2 Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python @@ -122,6 +122,9 @@ popd %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Thu Aug 18 2011 Mamoru Tasaka - 2.3.2-1 +- 2.3.2 + * Sun Aug 14 2011 Mamoru Tasaka - 2.3.1-1 - 2.3.1 diff --git a/sources b/sources index fbfedce..0b3f5a7 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 05d6ee07bbef8e9bda7913bd77da482e test-unit-2.3.1.gem 1ef542903cded28e4e7b30b1fdc0b398 rubygem-test-unit-2.3.1-missing-files.tar.gz +c60880adde9d0016633fa2e728d7f61f test-unit-2.3.2.gem From 517da266c20ba198a66d88f8eef08a5ea6aa556f Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Mon, 19 Sep 2011 16:29:18 +0900 Subject: [PATCH 7/7] 2.4.0 --- .gitignore | 1 + rubygem-test-unit.spec | 22 ++++------------------ sources | 4 +--- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index f409d27..dfa53f5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /test-unit-2.3.1.gem /rubygem-test-unit-2.3.1-missing-files.tar.gz /test-unit-2.3.2.gem +/test-unit-2.4.0.gem diff --git a/rubygem-test-unit.spec b/rubygem-test-unit.spec index b249d11..0758348 100644 --- a/rubygem-test-unit.spec +++ b/rubygem-test-unit.spec @@ -9,7 +9,7 @@ Summary: Improved version of Test::Unit bundled in Ruby 1.8.x Name: rubygem-%{gemname} -Version: 2.3.2 +Version: 2.4.0 Release: 1%{?dist} Group: Development/Languages # lib/test/unit/diff.rb is under GPLv2 or Ruby or Python @@ -18,8 +18,6 @@ License: (GPLv2 or Ruby) and (GPLv2 or Ruby or Python) URL: http://rubyforge.org/projects/test-unit/ Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem -# From upstream svn, ah.. -Source1: rubygem-test-unit-2.3.1-missing-files.tar.gz BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems # For %%check @@ -61,21 +59,9 @@ gem install \ find . -name \*.gem | xargs chmod 0644 find . -type f | xargs chmod ugo+r -pushd .%{geminstdir} -# rdoc gem not needed -sed -i -e '/rdoc/s|^gem|#gem|' Rakefile -popd - -# Unpack missing files -pushd .%{geminstdir} -gunzip -dc %{SOURCE1} | tar xf - -popd - %build %install -rm -rf %{buildroot} - mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* \ %{buildroot}%{gemdir}/ @@ -91,9 +77,6 @@ find %{buildroot}%{geminstdir}/bin -type f | xargs chmod 0755 ## rename!! mv %{buildroot}%{_bindir}/testrb{,2} -%clean -rm -rf %{buildroot} - %check pushd .%{geminstdir} #rake test --trace @@ -122,6 +105,9 @@ popd %{gemdir}/doc/%{gemname}-%{version}/ %changelog +* Mon Sep 19 2011 Mamoru Tasaka - 2.4.0-1 +- 2.4.0 + * Thu Aug 18 2011 Mamoru Tasaka - 2.3.2-1 - 2.3.2 diff --git a/sources b/sources index 0b3f5a7..fb36b4d 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -05d6ee07bbef8e9bda7913bd77da482e test-unit-2.3.1.gem -1ef542903cded28e4e7b30b1fdc0b398 rubygem-test-unit-2.3.1-missing-files.tar.gz -c60880adde9d0016633fa2e728d7f61f test-unit-2.3.2.gem +648470d818ca32bfb12e2bb5483dc0f8 test-unit-2.4.0.gem