Update to 1.12.2
- And use git based gem for now to avoid test failure
This commit is contained in:
parent
319239b3a7
commit
daa600f919
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/cairo-1.10.0.gem
|
||||
/cairo-1.10.2.gem
|
||||
/cairo-1.12.2-af3e3fc059.gem
|
||||
|
16
create-cairo-gem.sh
Normal file
16
create-cairo-gem.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
ORIGDIR=$(pwd)
|
||||
|
||||
DIR=$(mktemp -p /tmp -d tmp.XXXXXX)
|
||||
pushd $DIR
|
||||
git clone https://github.com/rcairo/rcairo.git
|
||||
cd rcairo
|
||||
|
||||
VERSION=$(gem build cairo.gemspec 2>&1 | sed -n -e 's|^.*Version: ||p')
|
||||
GITHASH=$(git log | head -n 1 | sed -e 's|^.* \(..........\).*|\1|')
|
||||
cp -p cairo-$VERSION.gem $ORIGDIR/cairo-$VERSION-$GITHASH.gem
|
||||
|
||||
popd
|
||||
rm -rf $DIR
|
@ -14,17 +14,25 @@
|
||||
%endif
|
||||
|
||||
%global gem_name cairo
|
||||
%global gemver 1.12.2
|
||||
%global gem_githash af3e3fc059
|
||||
|
||||
# Upstream GIT http://github.com/rcairo/
|
||||
|
||||
Summary: Ruby bindings for cairo
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.10.2
|
||||
Release: 4%{?dist}
|
||||
Version: %{gemver}
|
||||
Release: 1.git%{gem_githash}%{?dist}
|
||||
Group: Development/Languages
|
||||
License: GPLv2 or Ruby
|
||||
URL: http://cairographics.org/rcairo/
|
||||
%if 0
|
||||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||||
%else
|
||||
Source0: %{gem_name}-%{gemver}-%{gem_githash}.gem
|
||||
%endif
|
||||
# Git based gem is created by below
|
||||
Source1: create-cairo-gem.sh
|
||||
|
||||
BuildRequires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: rubygems-devel
|
||||
@ -238,6 +246,8 @@ popd
|
||||
# Fix up test/run-test.rb
|
||||
sed -i -e '\@require .rubygems@a\\ngem "test-unit"\n' test/run-test.rb
|
||||
sed -i -e "\@require 'bundler/setup'@d" test/run-test.rb
|
||||
sed -i -e "\@require@s|test-unit|test/unit|" test/run-test.rb
|
||||
|
||||
ruby ./test/run-test.rb
|
||||
popd
|
||||
|
||||
@ -275,6 +285,10 @@ popd
|
||||
%{header_dir}/rb_cairo.h
|
||||
|
||||
%changelog
|
||||
* Wed Apr 18 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.12.2-1.gitaf3e3fc059
|
||||
- Update to 1.12.2
|
||||
- And use git based gem for now to avoid test failure
|
||||
|
||||
* Tue Apr 03 2012 Vít Ondruch <vondruch@redhat.com> - 1.10.2-4
|
||||
- Fix conditionals for F17 to work for RHEL 7 as well.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user