Update release & fix %%test stage.
This commit is contained in:
parent
e29fc160b6
commit
ea5348c2fc
4 changed files with 30 additions and 4 deletions
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
|
||||
Name: rubygem-%{gemname}
|
||||
Version: 1.4.3
|
||||
Release: 2%{?dist}
|
||||
Version: 1.4.6
|
||||
Release: 1%{?dist}
|
||||
Summary: A JSON implementation in Ruby
|
||||
|
||||
Group: Development/Languages
|
||||
|
|
@ -19,6 +19,8 @@ URL: http://json.rubyforge.org
|
|||
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Patch0: %{gemname}-1.4.3-skip-failed-test.patch
|
||||
|
||||
BuildRequires: ruby, ruby-devel
|
||||
BuildRequires: rubygem(rake)
|
||||
Requires: ruby(abi) = 1.8
|
||||
|
|
@ -72,6 +74,14 @@ mkdir -p ./%{gemdir}
|
|||
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
||||
gem install --local --install-dir .%{gemdir} -V --force %{SOURCE0}
|
||||
|
||||
# change cflags to honor Fedora compiler flags correctly
|
||||
find . -name extconf.rb | xargs sed -i -e 's|-O3|-O2|'
|
||||
pushd .%{geminstdir}
|
||||
cat %PATCH0 | patch -s -p1 --fuzz=0
|
||||
# compile again
|
||||
rake clean
|
||||
rake
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
|
@ -155,7 +165,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
%check
|
||||
pushd .%{geminstdir}
|
||||
rake test --trace
|
||||
rake test_ext --trace
|
||||
popd
|
||||
|
||||
|
||||
|
|
@ -210,6 +220,9 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 18 2010 Xavier Lamien <laxathom@fedoraproject.org> - 1.4.6-1
|
||||
- Update release.
|
||||
|
||||
* Mon May 10 2010 Xavier Lamien <laxathom@fedoraproject.org> - 1.4.3-2
|
||||
- Move editor out of ruby-json sub-package.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue