%global gem_name gtksourceview3 %undefine _changelog_trimtime Name: rubygem-%{gem_name} Version: 4.2.4 Release: 1%{?dist} Summary: Ruby binding of gtksourceview-3.x # SPDX confirmed # LGPL-2.1-or-later: gemspec License: LGPL-2.1-or-later URL: http://ruby-gnome2.sourceforge.jp/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # https://raw.githubusercontent.com/ruby-gnome2/ruby-gnome2/master/COPYING.LIB # renamed to avoid namespace collision on sourcedir Source1: COPYING.LIB.gtksourceview3 BuildRequires: ruby-devel BuildRequires: rubygems-devel BuildRequires: rubygem-cairo-devel BuildRequires: rubygem-glib2-devel BuildRequires: rubygem-gtk3-devel BuildRequires: pkgconfig(gtksourceview-3.0) BuildRequires: rubygem(test-unit) BuildRequires: %{_bindir}/xvfb-run Requires: gtksourceview3 BuildArch: noarch %description Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec . find . -name \*.rb -print0 | xargs -0 chmod 0644 # Relax ruby-gnome2 internal dependency sed -i -e 's|= 4\.2\.4|>= 4.2.4|' %{gem_name}-%{version}.gemspec sed -i dependency-check/Rakefile \ -e '\@PKGConfig\.check_version@s|gtksourceview-3.0|glib-2.0|' sed -i -e '\@s\.extensions@d' %{gem_name}-%{version}.gemspec sed -i -e 's|test/glib-test-init|glib-test-init|' \ test/run-test.rb %build gem build %{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ install -cpm 644 %{SOURCE1} %{buildroot}%{gem_instdir}/COPYING.LIB pushd %{buildroot}%{gem_instdir} rm -rf \ Rakefile \ extconf.rb \ ext/ \ test/ \ dependency-check/ \ %{nil} %check pushd .%{gem_instdir} rm -rf tmp mkdir tmp touch tmp/gtk-test-utils.rb RANDR_OPTS="" RANDR_OPTS="-extension RANDR" sed -i test/run-test.rb \ -e '\@exit Test::Unit::AutoRunner@s|,[ \t]*File\.join(.*"test")||' sed -i test/run-test.rb \ -e '\@run-test@s|require_relative "../../|require "|' sed -i test/run-test.rb \ -e 's|require_relative "../../gtk3/test/|require "|' xvfb-run \ -s "-screen 0 640x480x24 $RANDR_OPTS" \ ruby -Ilib:ext/%{gem_name}:tmp:test ./test/run-test.rb popd %files %dir %{gem_instdir} %doc %{gem_instdir}/[A-Z]* %exclude %{gem_instdir}/Rakefile %{gem_libdir}/ %exclude %{gem_cache} %exclude %{gem_instdir}/*gemspec %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Wed Sep 25 2024 Mamoru TASAKA - 4.2.4-1 - 4.2.4 * Thu Sep 19 2024 Mamoru TASAKA - 4.2.3-1 - 4.2.3 * Fri Jul 19 2024 Fedora Release Engineering - 4.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Apr 02 2024 Mamoru TASAKA - 4.2.2-1 - 4.2.2 * Fri Feb 23 2024 Mamoru TASAKA - 4.2.1-1 - 4.2.1 * Fri Jan 26 2024 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Aug 19 2023 Mamoru TASAKA - 4.2.0-1 - 4.2.0 * Sat Aug 12 2023 Mamoru TASAKA - 4.1.9-1 - 4.1.9 * Fri Jul 21 2023 Fedora Release Engineering - 4.1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 26 2023 Mamoru TASAKA - 4.1.8-1 - 4.1.8 * Thu Jun 1 2023 Mamoru TASAKA - 4.1.7-1 - 4.1.7 * Mon May 22 2023 Mamoru TASAKA - 4.1.6-1 - 4.1.6 * Thu May 11 2023 Mamoru TASAKA - 4.1.5-1 - 4.1.5 * Thu May 04 2023 Mamoru TASAKA - 4.1.4-1 - 4.1.4 * Mon May 01 2023 Mamoru TASAKA - 4.1.3-1 - 4.1.3 * Fri Feb 24 2023 Mamoru TASAKA - 4.1.2-1 - 4.1.2 * Sun Feb 19 2023 Mamoru TASAKA - 4.1.1-1 - 4.1.1 * Fri Feb 3 2023 Mamoru TASAKA - 4.1.0-1 - 4.1.0 * Sun Jan 22 2023 Mamoru TASAKA - 4.0.8-1 - 4.0.8 * Fri Jan 20 2023 Fedora Release Engineering - 4.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jan 6 2023 Mamoru TASAKA - 4.0.5-1 - 4.0.5 * Fri Sep 16 2022 Mamoru TASAKA - 4.0.3-1 - 4.0.3 * Mon Sep 5 2022 Mamoru TASAKA - 4.0.2-1 - 4.0.2 * Sat Jul 23 2022 Fedora Release Engineering - 3.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jan 23 2022 Mamoru TASAKA - 3.5.1-1 - 3.5.1 * Fri Jan 21 2022 Fedora Release Engineering - 3.4.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Aug 10 2021 Mamoru TASAKA - 3.4.9-1 - 3.4.9 * Sun Aug 8 2021 Mamoru TASAKA - 3.4.7-1 - 3.4.7 * Fri Jul 23 2021 Fedora Release Engineering - 3.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 3 2021 Mamoru TASAKA - 3.4.4-1 - 3.4.4 * Wed Jan 27 2021 Fedora Release Engineering - 3.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Aug 13 2020 Mamoru TASAKA - 3.4.3-1 - 3.4.3 * Wed Jul 29 2020 Fedora Release Engineering - 3.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 3.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Dec 6 2019 Mamoru TASAKA - 3.4.1-1 - 3.4.1 * Tue Oct 15 2019 Mamoru TASAKA - 3.4.0-1 - 3.4.0 * Sun Sep 8 2019 Mamoru TASAKA - 3.3.7-1 - 3.3.7 * Fri Jul 26 2019 Fedora Release Engineering - 3.3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 19 2019 Mamoru TASAKA - 3.3.6-1 - 3.3.6 * Mon Feb 18 2019 Mamoru TASAKA - 3.3.2-1 - 3.3.2 * Sat Feb 2 2019 Mamoru TASAKA - 3.3.1-1 - 3.3.1 * Sat Feb 02 2019 Fedora Release Engineering - 3.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Nov 18 2018 Mamoru TASAKA - 3.3.0-1 - 3.3.0 * Mon Aug 13 2018 Mamoru TASAKA - 3.2.9-1 - 3.2.9 * Sat Jul 14 2018 Fedora Release Engineering - 3.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 22 2018 Mamoru TASAKA - 3.2.7-1 - 3.2.7 * Thu May 3 2018 Mamoru TASAKA - 3.2.5-1 - 3.2.5 * Fri Apr 20 2018 Mamoru TASAKA - 3.2.4-1 - 3.2.4 * Fri Feb 09 2018 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Nov 29 2017 Mamoru TASAKA - 3.2.1-1 - 3.2.1 * Wed Nov 15 2017 Mamoru TASAKA - 3.2.0-1 - 3.2.0 * Tue Oct 24 2017 Mamoru TASAKA - 3.1.9-1 - 3.1.9 * Thu Jul 27 2017 Fedora Release Engineering - 3.1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 17 2017 Mamoru TASAKA - 3.1.8-1 - 3.1.8 * Sat Jul 15 2017 Mamoru TASAKA - 3.1.7-1 - 3.1.7 * Fri Jun 9 2017 Mamoru TASAKA - 3.1.6-1 - 3.1.6 * Fri May 5 2017 Mamoru TASAKA - 3.1.3-1 - 3.1.3 * Sat Feb 11 2017 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 31 2017 Mamoru TASAKA - 3.1.1-1 - 3.1.1 * Wed Nov 30 2016 Mamoru TASAKA - 3.1.0-1 - 3.1.0 * Mon Aug 15 2016 Mamoru TASAKA - 3.0.9-1 - 3.0.9 * Tue Apr 19 2016 Mamoru TASAKA - 3.0.8-1 - 3.0.8 * Thu Feb 04 2016 Fedora Release Engineering - 3.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Oct 11 2015 Mamoru TASAKA - 3.0.7-1 - 3.0.7 * Wed Sep 23 2015 Mamoru TASAKA - 3.0.5-1 - 3.0.5 * Tue Sep 22 2015 Mamoru TASAKA - 3.0.4-1 - 3.0.4 * Thu Jun 18 2015 Fedora Release Engineering - 2.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Apr 29 2015 Mamoru TASAKA - 2.2.5-1 - 2.2.5 * Wed Apr 01 2015 Mamoru TASAKA - 2.2.4-1 - Initial package