Workaround for invalid date format in gemspec file (bug 706914)

This commit is contained in:
Mamoru Tasaka 2011-05-24 00:19:48 +09:00
parent 47562d39af
commit 08213979b5

View File

@ -4,7 +4,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global fedorarel 1
%global fedorarel 2
%global gemname rspec-core
%global geminstdir %{gemdir}/gems/%{gemname}-%{fullver}
@ -94,6 +94,12 @@ EOF
popd
# Workaround for issue of invalid date format on gemspec file
# (bug 706914)
pushd .%{gemdir}/specifications
sed -i -e '\@s\.date@s|{\(....-..-..\) [^ ][^ ]*}|{\1}|' *.gemspec
popd
%build
%install
@ -148,6 +154,9 @@ ruby -rubygems -Ilib/ -S bin/rspec \
%{geminstdir}/spec/
%changelog
* Tue May 24 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.2-2
- Workaround for invalid date format in gemspec file (bug 706914)
* Mon May 23 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 2.6.2-1
- 2.6.2