Update to 1.12.2

- And use git based gem for now to avoid test failure
This commit is contained in:
TASAKA Mamoru 2012-04-18 18:43:32 +09:00
parent 192dce8dd2
commit 779a3c19e8
4 changed files with 34 additions and 3 deletions

1
.gitignore vendored
View File

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

View File

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

View File

@ -1 +1 @@
643103c9f8fe61d167cf3136f359398a cairo-1.10.2.gem
6ce7a1a0fd23c3f0ef34e5395a2615d0 cairo-1.12.2-af3e3fc059.gem