[rubygem-test-unit-rr] first commit
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Jan 2 06:04:15 UTC 2013
commit 273432d033fed1f81ce38b42cedf2441003a751a
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date: Wed Jan 2 15:04:11 2013 +0900
first commit
.gitignore | 1 +
rubygem-test-unit-rr.spec | 115 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 117 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3f40dc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/test-unit-rr-1.0.2.gem
diff --git a/rubygem-test-unit-rr.spec b/rubygem-test-unit-rr.spec
new file mode 100644
index 0000000..4ee18f0
--- /dev/null
+++ b/rubygem-test-unit-rr.spec
@@ -0,0 +1,115 @@
+%global gem_name test-unit-rr
+%global rubyabi 1.9.1
+
+Summary: Test::Unit::RR - RR adapter for Test::Unit
+Name: rubygem-%{gem_name}
+Version: 1.0.2
+Release: 2%{?dist}
+Group: Development/Languages
+# https://github.com/test-unit/test-unit-rr/issues/1
+License: LGPLv2+
+URL: http://rubyforge.org/projects/test-unit/
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+Requires: rubygem(test-unit)
+Requires: rubygem(rr)
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(test-unit)
+BuildRequires: rubygem(rr)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}-%{release}
+
+%description
+Test::Unit::RR - RR adapter for Test::Unit.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+# Gem repack
+TOPDIR=$(pwd)
+mkdir tmpunpackdir
+pushd tmpunpackdir
+
+gem unpack %{SOURCE0}
+cd %{gem_name}-%{version}
+
+gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
+
+# Allow current test-unit version for now
+sed -i \
+ -e '/add_dependency.*test-unit/s|2.5.2|2.1.2|' \
+ test-unit-rr.gemspec
+
+# And for now change test-unit to test/unit
+sed -i \
+ -e '/require.*test-unit/s|^.*$|gem "test-unit"\nrequire "test/unit"|' \
+ test/run-test.rb
+sed -i \
+ -e '/require/s|test-unit|test/unit|' \
+ lib/test/unit/rr.rb
+
+gem build %{gem_name}.gemspec
+mv %{gem_name}-%{version}.gem $TOPDIR
+
+popd
+rm -rf tmpunpackdir
+
+%build
+mkdir -p .%{gem_dir}
+gem install \
+ --local \
+ --install-dir .%{gem_dir} \
+ -V \
+ --force \
+ %{gem_name}-%{version}.gem
+
+# Permission
+find . -type f -print0 | xargs --null chmod go-w
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+rm -f %{buildroot}%{gem_instdir}/{Manifest.txt,Rakefile,*.gemspec}
+
+%check
+pushd .%{gem_instdir}
+ruby -Ilib test/run-test.rb
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}/
+%exclude %{gem_cache}
+%{gem_spec}
+
+%doc %{gem_instdir}/[A-Z]*
+%doc %{gem_instdir}/doc/
+
+%files doc
+%doc %{gem_docdir}/
+%exclude %{gem_instdir}/test/
+
+%changelog
+* Mon Dec 31 2012 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.2-2
+- Add BR: rubygem(test-unit), rubygem(rr)
+
+* Sun Dec 9 2012 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.2-1
+- 1.0.2
+
+* Sun Nov 04 2012 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1b7a206 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8f01b34a7cbf1925b771ee617c1bdce test-unit-rr-1.0.2.gem
More information about the scm-commits
mailing list