# Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name gem2rpm Name: rubygem-%{gem_name} Version: 1.0.2 Release: 10%{?dist} Summary: Generate rpm specfiles from gems # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: https://github.com/fedora-ruby/gem2rpm Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/fedora-ruby/gem2rpm.git && cd gem2rpm # git checkout v1.0.2 && tar czvf gem2rpm-1.0.2-tests.tgz test/ Source1: %{gem_name}-%{version}-tests.tgz Requires: %{_bindir}/rpmdev-packager BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: %{_bindir}/rpmdev-packager BuildRequires: rubygem(minitest) BuildArch: noarch %description Generate source rpms and rpm spec files from a Ruby Gem. The spec file tries to follow the gem as closely as possible, and be compliant with the Fedora rubygem packaging guidelines. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b1 %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} cp -a %{_builddir}/test . TEST_GEM2RPM_LOCAL=1 ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/gem2rpm %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %{gem_instdir}/templates %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/AUTHORS %doc %{gem_instdir}/README.md %changelog * Fri Jul 26 2024 Miroslav Suchý - 1.0.2-10 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 1.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 08 2021 Vít Ondruch - 1.0.2-1 - Update to gem2rpm 1.0.2. Resolves: rhbz#1967932 Resolves: rhbz#1953150 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 01 2018 Vít Ondruch - 1.0.1-1 - Update to gem2rpm 1.0.1. * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 30 2017 Vít Ondruch - 1.0.0-1 - Update to gem2rpm 1.0.0. * Sat Feb 11 2017 Fedora Release Engineering - 0.11.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Apr 26 2016 Vít Ondruch - 0.11.3-1 - Update to gem2rpm 0.11.3. * Thu Feb 04 2016 Fedora Release Engineering - 0.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 17 2015 Vít Ondruch - 0.11.2-1 - Update to gem2rpm 0.11.2. * Thu Jun 18 2015 Fedora Release Engineering - 0.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue May 05 2015 Vít Ondruch - 0.11.1-1 - Update to gem2rpm 0.11.1. * Sun Jun 08 2014 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 05 2014 Vít Ondruch - 0.10.1-1 - Update to gem2rpm 0.10.0. * Sun Aug 04 2013 Fedora Release Engineering - 0.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 23 2013 Vít Ondruch - 0.9.2-1 - Update to gem2rpm 0.9.2. * Mon Apr 22 2013 Vít Ondruch - 0.9.1-1 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 - Update to gem2rpm 0.9.1. * Thu Feb 14 2013 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 09 2012 Vít Ondruch - 0.8.1-1 - Fix template for F17 and above. - Fix release enumeration logic. * Mon Jan 23 2012 Vít Ondruch - 0.8.0-1 - Updated to gem2rpm 0.8.0. * Fri Jan 20 2012 Vít Ondruch - 0.7.1-4 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Dec 14 2011 Vít Ondruch - 0.7.1-2 - gem2rpm requires rpmdev-packager tool to work properly. * Thu Jun 30 2011 Vít Ondruch - 0.7.1-1 - Updated to the 0.7.1 version. * Wed Feb 09 2011 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Sep 28 2010 Michael Stahnke - 0.6.0-5 - Breaking into a main and doc package * Tue Nov 24 2009 David Lutterkort - 0.6.0-4 - Add gemdocdir contents as doc * Sun Jul 26 2009 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Oct 6 2008 David Lutterkort - 0.6.0-1 - New version * Tue Mar 11 2008 David Lutterkort - 0.5.3-1 - Bring in accordance with Fedora guidelines * Thu Jan 3 2008 David Lutterkort - 0.5.2-2 - Own geminstdir - Fix Source URL * Mon Dec 10 2007 David Lutterkort - 0.5.1-1 - Initial package