# Circular dependency with rubygem-gem_isolater for tests %bcond_with tests # Generated from ruby_dep-1.5.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name ruby_dep Name: rubygem-%{gem_name} Version: 1.5.0 Release: 16%{?dist} Summary: Extracts supported Ruby versions from Travis file License: MIT URL: https://github.com/e2/ruby_dep Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Source1 is tar of spec directory of tests from upstream Source1: ruby_dep-spec-4e79416.tgz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(rspec) %if %{with tests} BuildRequires: rubygem(gem_isolater) %endif BuildArch: noarch %description Creates a version constraint of supported Rubies,suitable for a gemspec file. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %autosetup -n %{gem_name}-%{version} -a 1 %build 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 # build spec tests from Source1 cp -a ./spec ./%{gem_instdir} %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check %if %{with tests} pushd .%{gem_instdir} rspec spec popd %endif %files %dir %{gem_instdir} %{gem_instdir}/spec %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/README.md %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.5.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 1.5.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.5.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.5.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.5.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.5.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.5.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Mar 8 2021 Steve Traylen - 1.5.0-9 - Remove hard ruby requirements. * Wed Jan 27 2021 Fedora Release Engineering - 1.5.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Sep 14 2018 Steve Traylen - 1.5.0-3 - Use becond for the testing switch * Fri Sep 14 2018 Steve Traylen - 1.5.0-2 - Use %%autosetup * Wed Sep 12 2018 Steve Traylen - 1.5.0-1 - Initial package