Compare commits

...

103 Commits
f15 ... rawhide

Author SHA1 Message Date
Mamoru TASAKA
f7f7043053 Once kill test suite dependency for now 2022-09-29 22:43:10 +09:00
Mamoru TASAKA
d579596aab 1.17.8 2022-09-04 14:59:39 +09:00
Mamoru TASAKA
ac36a5f93a 1.17.7 2022-08-04 14:05:39 +09:00
Mamoru TASAKA
1fc17200c2 1.17.6 2022-07-30 23:44:42 +09:00
Mamoru TASAKA
64bae1281d add more reference 2022-07-28 16:26:14 +09:00
Mamoru TASAKA
1421d50347 Modify test script for cairo 1.17.6 change 2022-07-28 16:24:59 +09:00
Fedora Release Engineering
fd7c1e153c Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 01:20:51 +00:00
Mamoru TASAKA
148f141e48 enable test again 2022-01-27 08:50:13 +09:00
Mamoru TASAKA
686f7c3c9c needstrap needed 2022-01-23 15:36:57 +09:00
Mamoru TASAKA
d4e14508d5 modernize spec 2022-01-23 15:36:23 +09:00
Mamoru TASAKA
30a2899f9d F-36: rebuild for ruby31 2022-01-23 15:30:17 +09:00
Fedora Release Engineering
0b8802370d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 18:20:21 +00:00
Fedora Release Engineering
007a8f90f4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 11:52:57 +00:00
Mamoru TASAKA
5c5cea879b 1.17.5 2021-03-11 23:23:47 +09:00
Fedora Release Engineering
e55329206d - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 15:41:59 +00:00
Mamoru TASAKA
7eed04ec57 F-34: rebuild against ruby 3.0 2021-01-06 19:43:26 +09:00
Mamoru TASAKA
b1fe63ac90 add bootstrap logic (not build for now, pending for ruby 3.0) 2020-12-31 21:46:33 +09:00
Mamoru TASAKA
55c4ee6f97 1.16.6 2020-08-09 14:00:33 +09:00
Fedora Release Engineering
ecd8a377df - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 06:11:02 +00:00
Mamoru TASAKA
cad25baad3 1.16.5 2020-02-05 14:40:29 +09:00
Fedora Release Engineering
c76b1e2e88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 18:12:04 +00:00
Mamoru TASAKA
af8a085d54 Enable tests again 2020-01-17 21:43:20 +09:00
Mamoru TASAKA
679566e7fd more BR fix 2020-01-17 12:23:22 +09:00
Mamoru TASAKA
fe22e4a6dd fix BR 2020-01-17 12:16:56 +09:00
Mamoru TASAKA
10a651cd71 F-32: rebuild against ruby27
Once disable tests for circular dependency
2020-01-17 12:12:29 +09:00
Fedora Release Engineering
5f4157363f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 19:04:52 +00:00
Mamoru TASAKA
f69ed12c5e Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild 2019-03-18 13:43:39 +09:00
Fedora Release Engineering
5679af3dd6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 11:53:26 +00:00
Igor Gnatenko
066634b78b Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:46 +01:00
Mamoru TASAKA
81d33472cc F-30: rebuild against ruby26
Once disable tests for circular dependency
2019-01-21 16:19:30 +09:00
Mamoru TASAKA
5ec59b557c 1.16.2 2018-11-14 15:08:35 +09:00
Mamoru TASAKA
8cce359233 1.15.14 2018-08-24 16:35:31 +09:00
Fedora Release Engineering
0889a9c508 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:57:14 +00:00
Mamoru TASAKA
85d2afa174 for now ignore test failure, will try with ruby-gnome2 3.2.5 later 2018-05-02 16:26:17 +09:00
Mamoru TASAKA
dbd2ee5652 1.15.13 2018-05-02 16:11:42 +09:00
Mamoru TASAKA
e572f5adee 1.15.12 2018-03-16 13:48:31 +09:00
Fedora Release Engineering
a30787b0f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 13:38:36 +00:00
Björn Esser
9e948d736a
Rebuilt for switch to libxcrypt 2018-01-20 23:07:53 +01:00
Mamoru TASAKA
7b5a5b20ac F-28: rebuild for ruby25 2018-01-04 00:54:09 +09:00
Mamoru TASAKA
8b0265e8aa 1.15.11 2017-12-27 16:09:12 +09:00
Mamoru TASAKA
545e547817 1.15.10 2017-10-21 15:35:08 +09:00
Fedora Release Engineering
0e427b69c9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 07:52:47 +00:00
Fedora Release Engineering
f59388afc2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 13:29:31 +00:00
Adam Jackson
06a15ebcdf Rebuild to disable cairo-gl in F27 2017-07-14 10:44:56 -04:00
Mamoru TASAKA
21e4ecd2a4 1.15.9 2017-06-05 14:30:47 +09:00
Mamoru TASAKA
1bc384e5f8 fix release number 2017-05-04 17:58:03 +09:00
Mamoru TASAKA
36d931b2ac 1.15.7 2017-05-04 17:37:48 +09:00
Fedora Release Engineering
3a5053741a - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 12:03:03 +00:00
Mamoru TASAKA
f7447e0655 1.15.5 2017-01-15 19:17:30 +09:00
Mamoru TASAKA
c52930b26d 1.15.4 2017-01-11 08:02:39 +09:00
Mamoru TASAKA
d026ee2765 1.15.3 2016-11-30 15:08:08 +09:00
Mamoru TASAKA
d19f18cf4a 1.15.2 2016-04-19 17:14:09 +09:00
Fedora Release Engineering
2a1269cda8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 22:31:26 +00:00
Mamoru TASAKA
03f8289774 F-24: rebuild against ruby23 2016-01-11 15:58:56 +09:00
Mamoru TASAKA
f051016d2d add changelog 2015-09-09 14:51:23 +09:00
Mamoru TASAKA
d2fab896d0 Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-09-09 14:48:51 +09:00
Dennis Gilmore
5edbcfdc96 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 22:49:50 +00:00
Mamoru TASAKA
9d26a4a34e F-22: Rebuild for ruby 2.2 2015-01-15 22:31:32 +09:00
John
d1d1a1934a 1.14.1 2014-12-26 14:39:06 +09:00
Mamoru TASAKA
91a0878205 1.14.0 2014-11-25 21:25:08 +09:00
Peter Robinson
7fddfda95f - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 00:36:08 +00:00
Dennis Gilmore
4dae2ce61b - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 22:35:25 -05:00
Mamoru TASAKA
d687ce57b5 F-21: rebuild for ruby 2.1 / rubygems 2.2 2014-04-16 18:21:53 +09:00
Mamoru TASAKA
b50c19b438 1.12.9 2014-04-09 18:28:18 +09:00
Mamoru TASAKA
9032ed5308 1.12.8 2013-12-30 15:39:01 +09:00
Mamoru TASAKA
4ffd477a02 upload source 2013-08-06 16:38:33 +09:00
Mamoru TASAKA
cc747ca417 merge conflict fix 2013-08-06 16:37:02 +09:00
Mamoru TASAKA
5013905b5f merge conflict fix 2013-08-06 16:36:08 +09:00
Mamoru TASAKA
1d81d3915b 1.12.6 2013-08-06 16:34:32 +09:00
Dennis Gilmore
c02d849a28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 08:33:57 -05:00
TASAKA Mamoru
d76dfc1390 Rebuild due to wrong %gem_extdir_mri macro (bug 927471) 2013-03-27 12:46:49 +09:00
TASAKA Mamoru
eba1f90ac8 Merge remote-tracking branch 'origin/master' into f18 2013-03-19 19:54:33 +09:00
TASAKA Mamoru
a80d1a34fa 1.12.4 2013-03-19 19:53:09 +09:00
TASAKA Mamoru
3d74718027 Merge remote-tracking branch 'origin/f17' 2013-03-19 19:50:47 +09:00
Mamoru TASAKA
bb05ab023d oops... 2013-03-03 04:28:23 +09:00
Mamoru TASAKA
130ea18dfa use %%gem_install 2013-03-03 04:16:54 +09:00
Mamoru TASAKA
7f6a5f56bc change directory name 2013-03-03 03:41:25 +09:00
Mamoru TASAKA
7bc52c3bce F-19: Rebuild for ruby 2.0.0 2013-03-03 03:37:46 +09:00
Dennis Gilmore
fb8c19a8e2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 16:18:09 -06:00
TASAKA Mamoru
f4878c7f28 Merge remote-tracking branch 'origin/master' into f17 2012-12-06 13:42:12 +09:00
TASAKA Mamoru
f5bd66adda Merge remote-tracking branch 'origin/master' into f18 2012-12-06 13:41:41 +09:00
TASAKA Mamoru
fb267c1a02 upload new gem 2012-12-06 13:40:57 +09:00
TASAKA Mamoru
1454501e81 Merge remote-tracking branch 'origin/master' into f17 2012-12-06 13:39:55 +09:00
TASAKA Mamoru
f2fbb55ef8 Merge remote-tracking branch 'origin/master' into f18 2012-12-06 13:39:30 +09:00
TASAKA Mamoru
779d1411ab change boolean expression 2012-12-06 13:38:19 +09:00
TASAKA Mamoru
87ca3e69fa 1.12.3 2012-12-06 13:25:55 +09:00
TASAKA Mamoru
ac51c8f182 Merge remote-tracking branch 'origin/master' into f18 2012-12-06 13:14:22 +09:00
TASAKA Mamoru
6ebc55ef83 Merge remote-tracking branch 'origin/master' into f17 2012-12-06 13:14:05 +09:00
TASAKA Mamoru
6718b2a74a Update to 1.12.2 formal 2012-09-06 14:42:03 +09:00
TASAKA Mamoru
f4114ac306 Update to 1.12.2 formal 2012-09-06 14:41:51 +09:00
TASAKA Mamoru
4fe259a3f1 Update to 1.12.2 formal 2012-09-06 14:41:28 +09:00
Dennis Gilmore
0324870e67 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 12:40:46 -05:00
Mamoru Tasaka
dcc9bdda29 not yet pushed, fixing release number 2012-04-18 20:19:26 +09:00
Mamoru Tasaka
befd0ef089 not yet pushed, fixing release number 2012-04-18 20:18:45 +09:00
TASAKA Mamoru
779a3c19e8 Update to 1.12.2
- And use git based gem for now to avoid test failure
2012-04-18 18:43:32 +09:00
TASAKA Mamoru
daa600f919 Update to 1.12.2
- And use git based gem for now to avoid test failure
2012-04-18 18:42:50 +09:00
Vít Ondruch
319239b3a7 Merge branch 'master' into f17 2012-04-03 14:59:40 +02:00
Vít Ondruch
192dce8dd2 Fix conditionals for F17 to work for RHEL 7 as well. 2012-04-03 14:59:13 +02:00
Mamoru Tasaka
4937b90815 F-17: rebuild against ruby 1.9 2012-01-29 02:57:25 +09:00
Dennis Gilmore
367f525459 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 21:05:28 -06:00
Mamoru Tasaka
0f58ea50d5 1.10.2
Make dependency for pkg-config be development only again
Change the license tag to "GPLv2 or Ruby"
Remove defattr
2011-12-02 00:34:13 +09:00
Mamoru Tasaka
2cdb9ba111 Ignore test failure for now 2011-02-14 04:47:21 +09:00
Mamoru Tasaka
0f301274b3 - F-15 mass rebuild 2011-02-14 03:28:21 +09:00
6 changed files with 373 additions and 181 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
/cairo-1.10.0.gem /cairo-*gem
/rcairo-*-test-missing-files.tar.gz

View File

@ -1,2 +0,0 @@
install-so:
$(INSTALL_DATA) $(srcdir)/rb_cairo.h $(RUBYARCHDIR)

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

@ -0,0 +1,32 @@
#!/bin/bash
usage() {
echo "$0 <VERSION>"
}
set -e
set -x
if [ $# -lt 1 ] ; then
usage
exit 1
fi
VERSION=$1
TMPDIR=$(mktemp -d /tmp/rcairo-XXXXXX)
CURDIR=$(pwd)
pushd $TMPDIR
git clone https://github.com/rcairo/rcairo.git
cd rcairo/
git reset --hard v$VERSION
cd ..
tar czf $CURDIR/rcairo-${VERSION}-test-missing-files.tar.gz rcairo/test/fixture/
popd
rm -rf $TMPDIR

View File

@ -1,40 +1,60 @@
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
%global rubyabi 1.8
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global header_dir %{ruby_vendorarchdir}
%define gemname cairo
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global mainver 1.10.0 %global gem_name cairo
%global gitver %(echo %mainver | sed -e 's|\.|_|g') %global gemver 1.17.8
#%%global gem_githash af3e3fc059
%global need_test_bootstrap 1
# Upstream GIT http://github.com/rcairo/ # Upstream GIT http://github.com/rcairo/
%undefine _changelog_trimtime
Summary: Ruby bindings for cairo Summary: Ruby bindings for cairo
Name: rubygem-%{gemname} Name: rubygem-%{gem_name}
Version: 1.10.0 Version: %{gemver}
Release: 4%{?dist} Release: 2%{?dist}
Group: Development/Languages
License: GPLv2 or Ruby License: GPLv2 or Ruby
URL: http://cairographics.org/rcairo/ URL: http://cairographics.org/rcairo/
Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem %if 1
# This one is needed Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
# wget -N -O %%gemname-%%mainver-ext.cairo.depend http://github.com/rcairo/rcairo/raw/RELEASE_%%{gitver}/ext/cairo/depend %else
Source100: %{gemname}-1.10.0-ext.cairo.depend Source0: %{gem_name}-%{gemver}-%{gem_githash}.gem
%endif
# Git based gem is created by below
Source1: create-cairo-gem.sh
# FIXME
Source11: rcairo-%{version}-test-missing-files.tar.gz
# Source11 is generated by the below
Source12: rcairo-create-missing-test-files.sh
BuildRequires: ruby(abi) = %{rubyabi} Requires: ruby(release)
BuildRequires: ruby(rubygems) BuildRequires: ruby(release)
BuildRequires: gcc
BuildRequires: rubygems-devel
BuildRequires: cairo-devel BuildRequires: cairo-devel
BuildRequires: ruby-devel BuildRequires: ruby-devel
BuildRequires(check): rubygem(test-unit) BuildRequires: rubygem(red-colors)
BuildRequires(check): rubygem(pkg-config) # For %%check
BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(test-unit-notify)
BuildRequires: rubygem(pkg-config)
BuildRequires: rubygem(native-package-installer)
# Circular dependency
%if 0%{?need_test_bootstrap} < 1
BuildRequires: rubygem(poppler)
# Make sure at least one font is available for test/test_context.rb:57 # Make sure at least one font is available for test/test_context.rb:57
# `initialize': out of memory (NoMemoryError) # `initialize': out of memory (NoMemoryError)
BuildRequires(check): dejavu-serif-fonts BuildRequires: dejavu-serif-fonts
Requires: ruby(abi) = %{rubyabi} %endif
Requires: ruby(rubygems) Requires: rubygems
Provides: rubygem(%{gemname}) = %{version}-%{release} Provides: rubygem(%{gem_name}) = %{version}-%{release}
Obsoletes: ruby-%{gem_name} <= %{version}-%{release}
Provides: ruby-%{gem_name} = %{version}-%{release}
%description %description
Ruby bindings for cairo. Cairo is a 2D graphics library with support for Ruby bindings for cairo. Cairo is a 2D graphics library with support for
@ -43,175 +63,84 @@ X Window System, win32, and image buffers.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description doc %description doc
This package contains documentation for %{name}. This package contains documentation for %{name}.
%package -n ruby-%{gemname}
Summary: Non-Gem support package for %{gemname}
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Provides: ruby(%{gemname}) = %{version}-%{release}
%description -n ruby-%{gemname}
This package provides non-Gem support for %{gemname}.
%package devel %package devel
Summary: Ruby-cairo development environment Summary: Ruby-cairo development environment
Group: Development/Languages
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: cairo-devel Requires: cairo-devel
Requires: ruby-devel Requires: ruby-devel
# Obsoletes / Provides # Obsoletes / Provides
# ruby(cairo-devel) Provides is for compatibility # ruby(cairo-devel) Provides is for compatibility
#
# Actually ruby(cairo-devel) provides should not exist -
# Remove on F-17 and above
Obsoletes: ruby-cairo-devel < 1.9 Obsoletes: ruby-cairo-devel < 1.9
Provides: ruby-cairo-devel = %{version}-%{release} Provides: ruby-cairo-devel = %{version}-%{release}
Provides: ruby(cairo-devel) = %{version}-%{release}
%description devel %description devel
Header files and libraries for building a extension library for the Header files and libraries for building a extension library for the
ruby-cairo ruby-cairo
%prep %prep
%setup -q -T -c %setup -q -n %{gem_name}-%{version}
mv ../%{gem_name}-%{version}.gemspec .
mkdir -p ./%{gemdir} #Patches, etc
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install \
--local \
--install-dir ./%{gemdir} \
-V --force \
%{SOURCE0}
# Install ext/cairo/depend # pkg-config dependency should be for development
pushd .%{geminstdir} sed -i %{gem_name}-%{version}.gemspec \
cp -p %{SOURCE100} ext/cairo/depend -e '\@pkg-config@s|runtime_dependency|development_dependency|' \
-e '\@native-package-installer@s|runtime_dependency|development_dependency|' \
%{nil}
%build %build
# Make pkg-config development-dependent gem build %{gem_name}-%{version}.gemspec
# Already in upstream git. For now change manually %gem_install
#
sed -i -e '/pkg-config/s|project\.extra_deps|project.extra_dev_deps|' \
.%{geminstdir}/Rakefile
sed -i -e '/pkg-config/s|add_runtime_dependency|add_development_dependency|' \
.%{gemdir}/specifications/%{gemname}-%{version}.gemspec
# Once install to TMPINSTDIR for %%check # Once install to TMPINSTDIR for %%check
rm -rf ./TMPINSTDIR rm -rf ./TMPINSTDIR
mkdir -p ./TMPINSTDIR/%{gemdir} mkdir -p ./TMPINSTDIR/%{gem_dir}
cp -a ./%{gemdir}/* ./TMPINSTDIR/%{gemdir} cp -a ./%{gem_dir}/* ./TMPINSTDIR/%{gem_dir}
TOPDIR=$(pwd) TOPDIR=$(pwd)
## Install C extensions, header files
pushd .%{geminstdir}
# Once create Makefile, then:
ruby extconf.rb
make -C ext/cairo \
install \
INSTALL="install -p" \
DESTDIR=$TOPDIR/TMPINSTDIR/
popd
## remove all shebang, set permission to 0644 ## remove all shebang, set permission to 0644
for f in $(find ./TMPINSTDIR/%{geminstdir} -name \*.rb) for f in $(find ./TMPINSTDIR/%{gem_instdir} -name \*.rb)
do do
sed -i -e '/^#!/d' $f sed -i -e '/^#!/d' $f
chmod 0644 $f chmod 0644 $f
done done
# Move C extension library to some private directory # Move C extension
pushd ./TMPINSTDIR/%{geminstdir} mkdir -p ./TMPINSTDIR/%{gem_extdir_mri}
grep -rl '%{gemname}.so' . | \ cp -a ./%{gem_extdir_mri}/* TMPINSTDIR/%{gem_extdir_mri}/
xargs sed -i \
-e "\@require@s|'%{gemname}.so'|'%{gemname}/%{gemname}.so'|" \ pushd ./TMPINSTDIR
-e '\@require@s|"%{gemname}.so"|"%{gemname}/%{gemname}.so"|' mkdir -p .%{header_dir}
popd mv .%{gem_extdir_mri}/*.h .%{header_dir}/
pushd ./TMPINSTDIR/%{ruby_sitearch} rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log}
mkdir %{gemname}
mv %{gemname}.so %{gemname}/
popd popd
# cleanups # cleanups
rm -rf ./TMPINSTDIR/%{geminstdir}/ext/ rm -rf ./TMPINSTDIR/%{gem_instdir}/ext/
rm -f ./TMPINSTDIR/%{geminstdir}/lib/*.so rm -f ./TMPINSTDIR/%{gem_instdir}/{Makefile*,extconf.rb}
rm -f ./TMPINSTDIR/%{geminstdir}/{Makefile*,extconf.rb}
%install %install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a ./TMPINSTDIR/* %{buildroot}/ cp -a ./TMPINSTDIR/* %{buildroot}/
# The following method is completely copied from rubygem-gettext
# spec file
#
# Create symlinks
##
## Note that before switching to gem %%{ruby_sitelib}/%%{gemname}
## already existed as a directory, so this cannot be replaced
## by symlink (cpio fails)
## Similarly, all directories under %%{ruby_sitelib} cannot be
## replaced by symlink
#
create_symlink_rec(){
ORIGBASEDIR=$1
TARGETBASEDIR=$2
## First calculate relative path of ORIGBASEDIR
## from TARGETBASEDIR
TMPDIR=$TARGETBASEDIR
BACKDIR=
DOWNDIR=
num=0
nnum=0
while true
do
num=$((num+1))
TMPDIR=$(echo $TMPDIR | sed -e 's|/[^/][^/]*$||')
DOWNDIR=$(echo $ORIGBASEDIR | sed -e "s|^$TMPDIR||")
if [ x$DOWNDIR != x$ORIGBASEDIR ]
then
nnum=0
while [ $nnum -lt $num ]
do
BACKDIR="../$BACKDIR"
nnum=$((nnum+1))
done
break
fi
done
RELBASEDIR=$( echo $BACKDIR/$DOWNDIR | sed -e 's|//*|/|g' )
## Next actually create symlink
pushd %{buildroot}/$ORIGBASEDIR
find . -type f | while read f
do
DIRNAME=$(dirname $f)
BACK2DIR=$(echo $DIRNAME | sed -e 's|/[^/][^/]*|/..|g')
mkdir -p %{buildroot}${TARGETBASEDIR}/$DIRNAME
LNNAME=$(echo $BACK2DIR/$RELBASEDIR/$f | \
sed -e 's|^\./||' | sed -e 's|//|/|g' | \
sed -e 's|/\./|/|' )
ln -s -f $LNNAME %{buildroot}${TARGETBASEDIR}/$f
done
popd
}
create_symlink_rec %{geminstdir}/lib %{ruby_sitelib}
%clean
rm -rf %{buildroot}
%check %check
export RUBYLIB=$(pwd)/TMPINSTDIR/%{ruby_sitearch} %if 0%{?need_test_bootstrap} >= 1
exit 0
%endif
pushd ./TMPINSTDIR/%{geminstdir} export RUBYLIB=$(pwd)/TMPINSTDIR/%{gem_instdir}:$(pwd)/TMPINSTDIR/%{gem_extdir_mri}/
pushd ./TMPINSTDIR/%{gem_instdir}
# kill unneeded make process # kill unneeded make process
rm -rf ./TMPBINDIR rm -rf ./TMPBINDIR
mkdir ./TMPBINDIR mkdir ./TMPBINDIR
@ -220,43 +149,258 @@ ln -sf /bin/true make
export PATH=$(pwd):$PATH export PATH=$(pwd):$PATH
popd popd
ruby ./test/run-test.rb --verbose # Install missing files
popd tar xf %{SOURCE11}
cp -a rcairo/test/* test
# 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
ruby ./test/run-test.rb
%files %files
%defattr(-,root, root,-) %{gem_extdir_mri}/
%dir %{ruby_sitearch}/%{gemname}/
%{ruby_sitearch}/%{gemname}/%{gemname}.so %dir %{gem_instdir}/
%dir %{geminstdir}/ %doc %{gem_instdir}/[A-Z]*
%doc %{geminstdir}/[A-Z]* %exclude %{gem_instdir}/Gemfile
%exclude %{geminstdir}/Rakefile %exclude %{gem_instdir}/Rakefile
%{geminstdir}/lib/ %{gem_instdir}/lib/
%{gemdir}/cache/%{gemname}-%{version}.gem %exclude %{gem_cache}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %{gem_spec}
%files doc %files doc
%defattr(-,root,root,-) %{gem_instdir}/Gemfile
%{geminstdir}/Rakefile %{gem_instdir}/Rakefile
%{geminstdir}/misc/ %{gem_instdir}/samples/
%{geminstdir}/samples/ %{gem_instdir}/test/
%{geminstdir}/test/ %{gem_docdir}/
%{gemdir}/doc/%{gemname}-%{version}/
%files -n ruby-%{gemname}
%defattr(-,root,root,-)
%{ruby_sitelib}/%{gemname}.rb
%{ruby_sitelib}/%{gemname}/
%files devel %files devel
%defattr(-,root,root,-) %{header_dir}/rb_cairo.h
%{ruby_sitearch}/rb_cairo.h
%changelog %changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> * Thu Sep 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Once kill test suite dependency for now
* Sun Oct 31 2010 Mamoru Taska <mtasaka@ioa.s.u-tokyo.ac.jp> 1.10.0-3 * Sun Sep 4 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-1
- Move C extension so that "require %%gemname" works correctly - 1.17.8
* Thu Aug 4 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.7-1
- 1.17.7
* Sat Jul 30 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.6-1
- 1.17.6
* Thu Jul 28 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.5-6
- Modify test script for cairo 1.17.6 change
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sun Jan 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.5-4
- F-36: rebuild for ruby31
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Mar 11 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.5-1
- 1.17.5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jan 06 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-2
- F-34: rebuild against ruby 3.0
* Thu Dec 31 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-1.99
- Rebuild for ruby 3.0
- Set bootstrap logic for test suite
* Sun Aug 9 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.6-1
- 1.16.6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Feb 5 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.5-1
- 1.16.5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 17 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.4-4
- Enable tests again
* Fri Jan 17 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.4-3
- F-32: rebuild against ruby27
- Once disable tests for circular dependency
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.2-2
- F-30: rebuild against ruby26
- Once disable tests for circular dependency
* Wed Nov 14 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.16.2-1
- 1.16.2
* Fri Aug 24 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.14-1
- 1.15.14
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed May 2 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.13-1
- 1.15.13
* Fri Mar 16 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.12-1
- 1.15.12
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.15.11-3
- Rebuilt for switch to libxcrypt
* Wed Jan 03 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.11-2
- F-28: rebuild for ruby25
* Wed Dec 27 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.11-1
- 1.15.11
* Sat Oct 21 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.10-1
- 1.15.10
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 14 2017 Adam Jackson <ajax@redhat.com> - 1.15.9-2
- Rebuild to disable cairo-gl in F27
* Mon Jun 5 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.9-1
- 1.15.9
* Thu May 4 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.7-1
- 1.15.7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sun Jan 15 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.5-1
- 1.15.5
* Wed Jan 11 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.4-1
- 1.15.4
* Tue Nov 29 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.3-1
- 1.15.3
* Tue Apr 19 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.15.2-1
- 1.15.2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Jan 11 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.14.3-2
- F-24: rebuild against ruby23
* Wed Sep 9 2015 amoru TASAKA <mtasaka@fedoraproject.org> - 1.14.3-1
- 1.14.3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Jan 15 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.14.1-2
- F-22: Rebuild for ruby 2.2
* Fri Dec 26 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.14.1-1
- 1.14.1
* Tue Nov 25 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.14.0-1
- 1.14.0
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Apr 16 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.9-2
- F-21: rebuild for ruby 2.1 / rubygems 2.2
* Wed Apr 9 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.9-1
- 1.12.9
* Mon Dec 30 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.8-1
- 1.12.8
* Tue Aug 6 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.6-1
- 1.12.6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Mar 26 2013 Mamoru TASAKA <mtasaka@fedoraproject.org>
- Rebuild due to wrong %%gem_extdir_mri macro (bug 927471)
* Tue Mar 19 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.4-1
- 1.12.4
* Sun Mar 3 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.3-3
- F-19: Rebuild for ruby 2.0.0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Oct 6 2012 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.3-1
- 1.12.3
* Thu Sep 6 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.12.2-1
- Update to 1.12.2 formal
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.2-0.2.gitaf3e3fc059
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Apr 18 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.12.2-0.1.gitaf3e3fc059
- Update to 1.12.1
- 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.
* Sun Jan 29 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.10.2-3
- F-17: rebuild against ruby 1.9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Nov 30 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.10.2-1
- 1.10.2
- Make dependency for pkg-config be development only again
- Change the license tag to "GPLv2 or Ruby"
- Remove defattr
* Sun Oct 16 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 1.10.1-1
- 1.10.1
* Mon Feb 14 2011 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 1.10.0-4
- F-15 mass rebuild
- Ignore test failure for now
* Sun Oct 31 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 1.10.0-3
- Move C extension so that "require %%gem_name" works correctly
* Tue Oct 5 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 1.10.0-2 * Tue Oct 5 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 1.10.0-2
- Install one font at BuildRequires for test - Install one font at BuildRequires for test

View File

@ -1 +1,2 @@
9511621d4fdb60e67c8b87f63e6d54d2 cairo-1.10.0.gem SHA512 (cairo-1.17.8.gem) = a2b756dc1cf1abb98e4b60b9b56f5f610058bd840b67c991d6bfb3da2523b0f77a5854147f9d14ca461d573e51fbe3ba35c83659af5c031086710970fac6665a
SHA512 (rcairo-1.17.8-test-missing-files.tar.gz) = b97e6769042b29fdf95f49bd288e6d4155869db31ca60297ffa7207586a5e579059447166d0e97322d8fe6f6b7af15ed26a8d74036fe27ac42072aede8a25f00