From 0f0d5ac56eb2c9c9debb7584136b06ee192da654 Mon Sep 17 00:00:00 2001 From: Matthew Kent Date: Nov 24 2009 04:46:34 +0000 Subject: - Initial CVS import --- diff --git a/.cvsignore b/.cvsignore index e69de29..9f7a28c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +minitest-1.4.2.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..2d98f27 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-minitest-1_4_2-3_magoazul:HEAD:rubygem-minitest-1.4.2-3.magoazul.src.rpm:1259037973 diff --git a/rubygem-minitest-1.4.2-fix-tests.patch b/rubygem-minitest-1.4.2-fix-tests.patch new file mode 100644 index 0000000..b43736a --- /dev/null +++ b/rubygem-minitest-1.4.2-fix-tests.patch @@ -0,0 +1,11 @@ +--- test/test_mini_test.rb.orig 2009-11-18 00:26:53.572205854 -0800 ++++ test/test_mini_test.rb 2009-11-18 00:28:02.854263618 -0800 +@@ -973,7 +973,7 @@ + end + + msg = e.message.sub(/(---Backtrace---).*/m, '\1') +- msg.gsub!(/\(0x[0-9a-f]+\)/, '(0xXXX)') ++ msg.gsub!(/\(0x[\.0-9a-f]+\)/, '(0xXXX)') + + assert_equal expected, msg + end diff --git a/rubygem-minitest.spec b/rubygem-minitest.spec new file mode 100644 index 0000000..e347975 --- /dev/null +++ b/rubygem-minitest.spec @@ -0,0 +1,108 @@ +# Generated from minitest-1.4.2.gem by gem2rpm -*- rpm-spec -*- +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname minitest +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +%global rubyabi 1.8 + +Summary: Small and fast replacement for ruby's huge and slow test/unit +Name: rubygem-%{gemname} +Version: 1.4.2 +Release: 3%{?dist} +Group: Development/Languages +License: MIT +URL: http://rubyforge.org/projects/bfts +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +# Reported upstream via +# http://rubyforge.org/tracker/?func=detail&aid=27451&group_id=1040&atid=4099 +Patch0: rubygem-minitest-1.4.2-fix-tests.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: ruby(rubygems) +Requires: ruby(abi) = %{rubyabi} +BuildRequires: ruby(rubygems) +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires(check): rubygem(rake), rubygem(hoe) +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +minitest/unit is a small and fast replacement for ruby's huge and slow +test/unit. This is meant to be clean and easy to use both as a regular +test writer and for language implementors that need a minimal set of +methods to bootstrap a working unit test suite. + +miniunit/spec is a functionally complete spec engine. + +miniunit/mock, by Steven Baker, is a beautifully tiny mock object framework. + +%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 .%{gemdir} +gem install -V \ + --local \ + --install-dir $(pwd)/%{gemdir} \ + --force --rdoc \ + %{SOURCE0} + +pushd .%{geminstdir} +%patch0 -p0 + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ + +find %{buildroot}%{geminstdir}/lib -type f | \ + xargs -n 1 sed -i -e '/^#!\/usr\/bin\/ruby.*/d' +# Ships with extremely tight permissions, bring them inline with other gems +find %{buildroot}%{geminstdir} -type f | \ + xargs chmod 0644 + +%clean +rm -rf %{buildroot} + +%check +pushd .%{geminstdir} +rake test + +%files +%defattr(-,root,root,-) +%doc %{geminstdir}/History.txt +%doc %{geminstdir}/Manifest.txt +%doc %{geminstdir}/README.txt +%dir %{geminstdir} +%{geminstdir}/lib +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%defattr(-,root,root,-) +%{geminstdir}/Rakefile +%{geminstdir}/test +%{geminstdir}/.autotest +%{geminstdir}/design_rationale.rb +%{gemdir}/doc/%{gemname}-%{version} + +%changelog +* Sat Nov 21 2009 Matthew Kent - 1.4.2-3 +- Drop Requires on hoe, only used by Rakefile (#538303). +- Move Rakefile to -doc (#538303). + +* Sat Nov 21 2009 Matthew Kent - 1.4.2-2 +- Better Source (#538303). +- More standard permissions on files. + +* Tue Nov 17 2009 Matthew Kent - 1.4.2-1 +- Initial package diff --git a/sources b/sources index e69de29..76a0427 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2fffaddd8ec0e6425726e0885d9b5c87 minitest-1.4.2.gem