Compare commits

..

13 Commits

Author SHA1 Message Date
1aefba9a32
Bootstrap (riscv64)
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-01-08 12:09:54 +02:00
Mamoru TASAKA
432bb42ea3 kill bootstrap 2024-01-03 23:17:11 +09:00
Mamoru TASAKA
9af1abd431 bootstrap 2024-01-03 21:05:55 +09:00
Mamoru TASAKA
8cf264bdee Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.3 2024-01-03 21:05:35 +09:00
Mamoru TASAKA
1a98021c1e 1.17.13 2023-12-19 16:04:43 +09:00
Mamoru TASAKA
82b557eebc use recent bootstrap style 2023-12-19 15:42:40 +09:00
Mamoru TASAKA
7a6520b5f9 once introduce bootstrap 2023-09-14 21:23:08 +09:00
Fedora Release Engineering
3236688d52 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 17:24:21 +00:00
Mamoru TASAKA
3a7af29aa7 1.17.12 2023-06-19 15:33:11 +09:00
Mamoru TASAKA
09a6ec8242 1.17.9 2023-06-15 15:58:28 +09:00
Mamoru TASAKA
1d64d91074 Enable test suite again
SPDX migration
spec file cleanup
2023-05-24 16:43:42 +09:00
Fedora Release Engineering
5875484122 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 20:14:52 +00:00
Mamoru TASAKA
73b02d520c Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2 2023-01-04 09:06:10 +09:00
2 changed files with 59 additions and 30 deletions

View File

@ -2,10 +2,12 @@
%global header_dir %{ruby_vendorarchdir} %global header_dir %{ruby_vendorarchdir}
%global gem_name cairo %global gem_name cairo
%global gemver 1.17.8
#%%global gem_githash af3e3fc059 #%%global gem_githash af3e3fc059
%global need_test_bootstrap 1 %bcond_with bootstrap
%if 0%{?fedora} >= 40
%bcond_without bootstrap
%endif
# Upstream GIT http://github.com/rcairo/ # Upstream GIT http://github.com/rcairo/
@ -13,20 +15,19 @@
Summary: Ruby bindings for cairo Summary: Ruby bindings for cairo
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{gemver} Version: 1.17.13
Release: 2%{?dist} Release: 2.0.riscv64%{?dist}
License: GPLv2 or Ruby # From gemspec
# SPDX confirmed
License: GPL-2.0-or-later OR Ruby
URL: http://cairographics.org/rcairo/ URL: http://cairographics.org/rcairo/
%if 1
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem 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 # Git based gem is created by below
Source1: create-cairo-gem.sh Source1: create-cairo-gem.sh
# FIXME # FIXME
Source11: rcairo-%{version}-test-missing-files.tar.gz Source11: rcairo-%{version}-test-missing-files.tar.gz
# Source11 is generated by the below # Source11 is generated by $bash %%SOURCE12 %%version
Source12: rcairo-create-missing-test-files.sh Source12: rcairo-create-missing-test-files.sh
Requires: ruby(release) Requires: ruby(release)
@ -44,7 +45,7 @@ BuildRequires: rubygem(test-unit-notify)
BuildRequires: rubygem(pkg-config) BuildRequires: rubygem(pkg-config)
BuildRequires: rubygem(native-package-installer) BuildRequires: rubygem(native-package-installer)
# Circular dependency # Circular dependency
%if 0%{?need_test_bootstrap} < 1 %if %{without bootstrap}
BuildRequires: rubygem(poppler) 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)
@ -76,11 +77,6 @@ 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
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
@ -126,15 +122,23 @@ rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log}
popd popd
# cleanups
rm -rf ./TMPINSTDIR/%{gem_instdir}/ext/
rm -f ./TMPINSTDIR/%{gem_instdir}/{Makefile*,extconf.rb}
%install %install
cp -a ./TMPINSTDIR/* %{buildroot}/ cp -a ./TMPINSTDIR/* %{buildroot}/
# cleanups
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}
rm -rf \
Gemfile \
Rakefile \
*.gemspec \
ext/ \
test/ \
%{nil}
popd
%check %check
%if 0%{?need_test_bootstrap} >= 1 %if %{with bootstrap}
exit 0 exit 0
%endif %endif
@ -163,24 +167,49 @@ ruby ./test/run-test.rb
%{gem_extdir_mri}/ %{gem_extdir_mri}/
%dir %{gem_instdir}/ %dir %{gem_instdir}/
%doc %{gem_instdir}/[A-Z]* %doc %{gem_instdir}/[A-CN-Z]*
%exclude %{gem_instdir}/Gemfile %license %{gem_instdir}/GPL
%exclude %{gem_instdir}/Rakefile
%{gem_instdir}/lib/ %{gem_instdir}/lib/
%exclude %{gem_cache}
%{gem_spec} %{gem_spec}
%files doc %files doc
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/samples/ %{gem_instdir}/samples/
%{gem_instdir}/test/
%{gem_docdir}/ %{gem_docdir}/
%files devel %files devel
%{header_dir}/rb_cairo.h %{header_dir}/rb_cairo.h
%changelog %changelog
* Mon Jan 08 2024 David Abdurachmanov <davidlt@rivosinc.com> - 1.17.13-2.0.riscv64
- Bootstrap (riscv64)
* Wed Jan 03 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.13-2
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.3
* Tue Dec 19 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.13-1
- 1.17.13
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jun 19 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.12-1
- 1.17.12
* Thu Jun 15 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.9-1
- 1.17.9
* Wed May 24 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-5
- Enable test suite again
- SPDX migration
- spec file cleanup
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jan 04 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-3
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
* Thu Sep 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-2 * Thu Sep 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.17.8-2
- Once kill test suite dependency for now - Once kill test suite dependency for now

View File

@ -1,2 +1,2 @@
SHA512 (cairo-1.17.8.gem) = a2b756dc1cf1abb98e4b60b9b56f5f610058bd840b67c991d6bfb3da2523b0f77a5854147f9d14ca461d573e51fbe3ba35c83659af5c031086710970fac6665a SHA512 (cairo-1.17.13.gem) = 82fb621f97b6eb292565fd0f90f5e686c2cd4cd8aa61fa0ab6e25aac665aa9f7e780481a6571fd443be8c53070f29a2dfea5a54949350fe783b12aeb6aba3769
SHA512 (rcairo-1.17.8-test-missing-files.tar.gz) = b97e6769042b29fdf95f49bd288e6d4155869db31ca60297ffa7207586a5e579059447166d0e97322d8fe6f6b7af15ed26a8d74036fe27ac42072aede8a25f00 SHA512 (rcairo-1.17.13-test-missing-files.tar.gz) = 6d701b9ac76a4a4e62432c002b6a7d3bb3d985c2d8caef7bac83b60cd65e0f974b03753bfd2687676b88ebac10a0601a7b2e0d063ff953cdba0f742611ca2a75