Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Mamoru Tasaka
a9fb083090 2.3.0 2011-04-24 02:22:23 +09:00
Mamoru Tasaka
a26956e443 2.2.0 2011-02-18 06:09:17 +09:00
Mamoru Tasaka
37097308a4 - 2.1.2 2010-11-26 05:21:25 +09:00
Mamoru Tasaka
494d567ad5 Initial import 2010-09-21 15:01:55 +09:00
3 changed files with 135 additions and 0 deletions

4
.gitignore vendored
View file

@ -0,0 +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

130
rubygem-test-unit.spec Normal file
View file

@ -0,0 +1,130 @@
%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.3.0
Release: 1%{?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
# For %%check
BuildRequires: rubygem(rake)
BuildRequires: 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 Apr 24 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.3.0-1
- 2.3.0
* Fri Feb 18 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.2.0-1
- 2.2.0
* Mon Feb 14 2011 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.1.2-2
- F-15 mass rebuild
* Thu Nov 26 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.1.2-1
- 2.1.2
* Sun Sep 19 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.1.1-2
- Fix up license tag
* Sat Sep 18 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.1.1-1
- Initial package

View file

@ -0,0 +1 @@
393047f217a0156b3b2ea288e171d7f5 test-unit-2.3.0.gem