# Generated from mixlib-cli-1.0.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name mixlib-cli # EPEL6 lacks rubygems-devel package that provides these macros %if %{?el6}0 %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version} %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version} %global gem_libdir %{gem_instdir}/lib %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec %endif %if %{?el6}0 || %{?fc16}0 %global rubyabi 1.8 %else %global rubyabi 1.9.1 %endif Summary: Simple Ruby mix-in for CLI interfaces Name: rubygem-%{gem_name} Version: 1.7.0 Release: 15%{?dist} License: ASL 2.0 URL: https://github.com/chef/mixlib-cli Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Patch to silence mixlib-cli tests; # see http://tickets.opscode.com/browse/MIXLIB-8 Patch0: mixlib-cli-silence-tests.patch # Patch to use rspec3; on master, not yet released # https://github.com/chef/mixlib-cli/commit/9e71682386e0258d5acb2d4ba92b1b46a1ba82c3 Patch1: mixlib-cli-1.7.0-rspec3.patch Requires: ruby(rubygems) %if 0%{?fedora} >= 19 Requires: ruby(release) BuildRequires: ruby(release) %else Requires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi} %endif %{!?el6:BuildRequires: rubygems-devel} %{!?el6:BuildRequires: rubygem(rspec)} BuildRequires: rubygem(rake) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description A simple mix-in for CLI interfaces, including option parsing. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep %setup -q -c -T %if 0%{?fedora} >= 19 %gem_install -n %{SOURCE0} %else mkdir -p .%{gem_dir} gem install -V \ --local \ --install-dir $(pwd)/%{gem_dir} \ --force --rdoc \ %{SOURCE0} %endif pushd .%{gem_instdir} %patch -P0 -p1 %patch -P1 -p1 popd %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check %if %{?el6}0 || %{?fc16}0 # spec is too old; need RSpec2 %else pushd .%{gem_instdir} rspec popd %endif %files %doc %{gem_instdir}/LICENSE %dir %{gem_instdir} %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %exclude %{gem_instdir}/%{gem_name}.gemspec %files doc %{gem_docdir} %{gem_instdir}/Rakefile %{gem_instdir}/Gemfile %doc %{gem_instdir}/NOTICE %doc %{gem_instdir}/README.md %{gem_instdir}/spec %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.7.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 1.7.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.7.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.7.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.7.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.7.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.7.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Igor Gnatenko - 1.7.0-2 - Escape macros in %%changelog * Sun Jan 21 2018 Julian C. Dunn - 1.7.0-1 - Update to 1.7.0 (bz#1333395) * Thu Jul 27 2017 Fedora Release Engineering - 1.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Apr 27 2014 Julian C. Dunn - 1.5.0-1 - Update to 1.5.0 (bz#1091745) * Fri Dec 20 2013 Julian C. Dunn - 1.4.0-1 - Update to 1.4.0 (bz#1038983) * Sun Aug 04 2013 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 08 2013 Josef Stribny - 1.3.0-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jan 20 2013 Julian C. Dunn - 1.3.0-1 - Update to 1.3.0 * Sun Jan 13 2013 Julian C. Dunn - 1.2.2-3 - Suppress %%check on F16; RSpec too old * Thu Dec 13 2012 Julian C. Dunn - 1.2.2-2 - Unify build on EPEL6 and Fedora * Mon Apr 30 2012 Jonas Courteau - 1.2.2-1 - Repackaged for fc17 - Changed check to avoid need for patch - New upstream version * Wed Jun 9 2010 Matthew Kent - 1.1.0-3 - New patch to enable check again. * Tue Jun 8 2010 Matthew Kent - 1.1.0-2 - Disable check for now. * Tue Mar 23 2010 Matthew Kent - 1.1.0-1 - New upstream version - moves to jeweler for gem creation. * Mon Oct 5 2009 Matthew Kent - 1.0.4-3 - Remove unused ruby_sitelib macro (#526179). - Remove redundant doc Requires on rubygems (#526179). * Sun Oct 4 2009 Matthew Kent - 1.0.4-2 - Remove redundant path in doc package (#526179). - Use global over define (#526179). * Mon Sep 28 2009 Matthew Kent - 1.0.4-1 - Initial package