%global rubyabi 1.9.1 %global gem_name goocanvas %global glibminver 4.1.2 %global gtkminver 4.1.2 %global obsoleteevr 0.90.7-1.999 Summary: Ruby binding of GooCanvas Name: rubygem-%{gem_name} Version: 2.2.0 Release: 30%{?dist} # from README License: LGPLv2 URL: http://ruby-gnome2.sourceforge.jp/ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Licenses # https://raw.github.com/ruby-gnome2/ruby-gnome2/master/COPYING.LIB Source1: COPYING.LIB.rubygem-goocanvas # http://www.gnu.org/licenses/gpl-2.0.txt Source2: COPYING.GPL.rubygem-goocanvas # Fix for sample with ruby-gi 4.1.2 Patch0: goocanvas-2.2.0-sample-gi412.patch Requires: ruby(release) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem-cairo-devel BuildRequires: rubygem-glib2-devel >= %{glibminver} BuildRequires: rubygem-gobject-introspection-devel >= %{gtkminver} BuildRequires: rubygem-gtk3-devel >= %{gtkminver} BuildRequires: ruby-devel BuildRequires: goocanvas2-devel Provides: rubygem(%{gem_name}) = %{version}-%{release} # Kill non-gem support on F-16+ # Obsoletes but not provides Obsoletes: ruby-%{gem_name} < %{version}-%{release} %description Ruby/GooCanvas is a Ruby binding of GooCanvas. %package devel Summary: Ruby/GooCanvas development environment Requires: %{name}%{?_isa} = %{version}-%{release} # Obsoletes / Provides # ruby(%%{gem_name}-devel) Provides is for compatibility # on F-15 and below Obsoletes: ruby-%{gem_name}-devel < %{obsoleteevr} %description devel Header files and libraries for building a extension library for the rubygem-%{gem_name} %package doc Summary: Documentation for %{name} # Samples are under GPLv2+ License: LGPLv2 and GPLv2+ Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc This package contains documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec . %patch -P0 -p1 # Permission find . -name \*.rb -print0 | xargs --null chmod 0644 # Allow ruby-gnome2 no less than ones sed -i -e 's|= 2\.2\.0|>= 2.2.0|' %{gem_name}-%{version}.gemspec %build export CONFIGURE_ARGS="--with-cflags='%{optflags} -Werror-implicit-function-declaration'" export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig" gem build %{gem_name}-%{version}.gemspec %gem_install %install # Once copy all mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # move header files, C extension files to the correct directory mkdir -p %{buildroot}%{gem_extdir_mri} cp -a ./%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/ pushd %{buildroot} #mkdir -p .%{header_dir} #mv .%{gem_extdir_mri}/*.h .%{header_dir}/ rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log} popd # move pkgconfig file mkdir %{buildroot}%{_libdir}/pkgconfig install -cpm 644 ./%{_libdir}/pkgconfig/*.pc \ %{buildroot}%{_libdir}/pkgconfig/ # Cleanups pushd %{buildroot} rm -rf .%{gem_instdir}/ext/ rm -f .%{gem_instdir}/extconf.rb popd # Licenses for f in %{SOURCE1} %{SOURCE2} do install -cpm 644 $f %{buildroot}%{gem_instdir}/$(basename $f | sed -e 's|\.%{name}||') done %check # Currently no testsuite available %files %dir %{gem_instdir} %dir %{gem_instdir}/lib/ %doc %{gem_instdir}/[A-Z]* %exclude %{gem_instdir}/Rakefile %{gem_instdir}/lib/%{gem_name}.rb %{gem_instdir}/lib/goo/ %{gem_extdir_mri}/ %{gem_cache} %{gem_spec} %files devel %{_libdir}/pkgconfig/ruby-%{gem_name}.pc %files doc %{gem_docdir}/ %{gem_instdir}/sample/ %changelog * Fri Jul 21 2023 Fedora Release Engineering - 2.2.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed May 3 2023 Mamoru TASAKA - 2.2.0-29 - Adjust sample script for ruby-gi 4.1.2 * Fri Jan 20 2023 Fedora Release Engineering - 2.2.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.2.0-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.2.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.2.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.2.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 08 2021 Mamoru TASAKA - 2.2.0-23 - F-34: rebuild against ruby 3.0 * Wed Jul 29 2020 Fedora Release Engineering - 2.2.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.2.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.2.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.2.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 21 2019 Mamoru TASAKA - 2.2.0-18 - F-30: rebuild against ruby26 * Sat Jul 14 2018 Fedora Release Engineering - 2.2.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.2.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Björn Esser - 2.2.0-15 - Rebuilt for switch to libxcrypt * Thu Jan 04 2018 Mamoru TASAKA - 2.2.0-14 - F-28: rebuild for ruby25 * Thu Aug 03 2017 Fedora Release Engineering - 2.2.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jan 11 2017 Mamoru TASAKA - 2.2.0-10 - F-26: rebuild for ruby24 * Tue Nov 8 2016 Mamoru TASAKA - 2.2.0-9 - Rebuild again (ppc build missing) * Thu Feb 04 2016 Fedora Release Engineering - 2.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 13 2016 Mamoru TASAKA - 2.2.0-7 - F-24: rebuild against ruby23 * Thu Jun 18 2015 Fedora Release Engineering - 2.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 16 2015 Mamoru TASAKA - 2.2.0-5 - F-22: Rebuild for ruby 2.2 * Mon Aug 18 2014 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Apr 21 2014 Mamoru TASAKA - 2.2.0-2 - F-21: rebuild for ruby 2.1 / rubygems 2.2 * Mon Apr 14 2014 Mamoru TASAKA - 2.2.0-1 - 2.2.0 * Thu Jan 16 2014 Mamoru TASAKA - 2.1.0-1 - 2.1.0 * Fri Nov 1 2013 Mamoru TASAKA - 2.0.2-2 - Include license file * Mon Oct 28 2013 Mamoru TASAKA - 2.0.2-1 - 2.0.2 * Fri Aug 16 2013 Mamoru TASAKA - 1.2.6-3 - Workaround for rubygem-glib 2.0.x * Sun Aug 04 2013 Fedora Release Engineering - 1.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 17 2013 Mamoru TASAKA - 1.2.6-1 - 1.2.6 * Thu Apr 4 2013 Mamoru TASAKA - 1.2.5-1 - 1.2.5 * Tue Mar 26 2013 Mamoru TASAKA - 1.2.4-1 - 1.2.4 * Wed Mar 20 2013 Mamoru TASAKA - 1.2.3-1 - 1.2.3 * Thu Mar 7 2013 Mamoru TASAKA - 1.2.1-2 - F-19: Rebuild for ruby 2.0.0 * Mon Feb 4 2013 Mamoru TASAKA - 1.2.1-1 - 1.2.1 * Wed Jan 30 2013 Mamoru TASAKA - 1.2.0-1 - 1.2.0 * Mon Dec 31 2012 Mamoru TASAKA - 1.1.9-1 - 1.1.9 * Thu Dec 6 2012 Mamoru Tasaka - 1.1.6-1 - 1.1.6 * Wed Sep 5 2012 Mamoru Tasaka - 1.1.5-1 - 1.1.5 * Mon Aug 13 2012 Mamoru Tasaka - 1.1.4-1 - 1.1.4 * Sat Jul 21 2012 Fedora Release Engineering - 1.1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Apr 16 2012 Mamoru Tasaka - 1.1.3-2 - 1.1.3 * Tue Jan 31 2012 Mamoru Tasaka - 1.1.2-2 - 1.1.2 * Sun Jan 15 2012 Mamoru Tasaka - 1.1.1-1 - 1.1.1 * Sat Jan 14 2012 Fedora Release Engineering - 1.0.3-3 - F-17: Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Dec 23 2011 Mamoru Tasaka - 1.0.3-2 - Fix Obsoletes condition * Thu Dec 22 2011 Mamoru Tasaka - 1.0.3-1 - 1.0.3 * Sun Jul 17 2011 Mamoru Tasaka - 1.0.0-1 - 1.0.0 - Kill non-gem support on F-16+ * Sun Apr 10 2011 Mamoru Tasaka - 0.90.8-2 - Some cleanups * Thu Mar 10 2011 Mamoru Tasaka - 0.90.8-1 - 0.90.8 * Sat Feb 19 2011 Mamoru Tasaka - 0.90.7-2 - Initial package