Kill 2-year-old testrb2 support on F-22+
This commit is contained in:
parent
7dc41d0d8a
commit
1187f8ae36
1 changed files with 8 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
Summary: Improved version of Test::Unit bundled in Ruby 1.8.x
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 3.0.9
|
||||
Release: 100%{?dist}
|
||||
Release: 101%{?dist}
|
||||
Group: Development/Languages
|
||||
# lib/test/unit/diff.rb is under GPLv2 or Ruby or Python
|
||||
# lib/test-unit.rb is under LGPLv2+ or Ruby
|
||||
|
|
@ -73,11 +73,13 @@ cp -a .%{gem_dir}/* \
|
|||
%{buildroot}%{gem_dir}/
|
||||
|
||||
# Keep testrb2
|
||||
%if 0%{?fedora} < 22
|
||||
mkdir %{buildroot}%{_bindir}
|
||||
cat %{_bindir}/testrb | \
|
||||
sed -e '\@require@s|test/unit|test-unit|' \
|
||||
> %{buildroot}%{_bindir}/testrb2
|
||||
chmod 0755 %{buildroot}%{_bindir}/testrb2
|
||||
%endif
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
|
|
@ -91,7 +93,9 @@ popd
|
|||
%doc %{gem_instdir}/[A-Z]*
|
||||
%exclude %{gem_instdir}/Rakefile
|
||||
|
||||
%if 0%{?fedora} < 22
|
||||
%{_bindir}/testrb2
|
||||
%endif
|
||||
%{gem_instdir}/lib/
|
||||
|
||||
%exclude %{gem_cache}
|
||||
|
|
@ -108,6 +112,9 @@ popd
|
|||
%{gem_docdir}/
|
||||
|
||||
%changelog
|
||||
* Tue Jan 13 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.9-101
|
||||
- Kill 2-year-old testrb2 support on F-22+
|
||||
|
||||
* Wed Dec 29 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.9-100
|
||||
- 3.0.9
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue