Kill 2-year-old testrb2 support on F-22+

This commit is contained in:
John 2015-01-13 17:52:08 +09:00
commit 1187f8ae36

View file

@ -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