# Generated from mixlib-config-1.0.9.gem by gem2rpm -*- rpm-spec -*- %global gem_name mixlib-config # 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 config mix-in Name: rubygem-%{gem_name} Version: 2.2.4 Release: 15%{?dist} License: ASL 2.0 URL: https://github.com/chef/mixlib-config Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(rubygems) %if 0%{?fedora} >= 19 Requires: ruby(release) BuildRequires: ruby(release) %else Requires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi} %endif # Needed to run checks: %{!?el6:BuildRequires: rubygem(rspec)} %{!?el6:BuildRequires: rubygems-devel} # Needed for check: BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description A class-based config mixin, similar to the one found in Chef. %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 %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 %doc %{gem_docdir} %doc %{gem_instdir}/NOTICE %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/Gemfile %{gem_instdir}/spec %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.2.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.2.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.2.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.2.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.2.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.2.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.2.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.2.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.2.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Igor Gnatenko - 2.2.4-2 - Escape macros in %%changelog * Sun Jan 21 2018 Julian C. Dunn - 2.2.4-1 - Upgrade to 2.2.4 (bz#1220590) * Thu Jul 27 2017 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Dec 20 2013 Julian C. Dunn - 2.1.0-1 - Upgrade to 2.1.0 (bz#1038984) * Sun Sep 15 2013 Julian C. Dunn - 2.0.0-1 - Upgrade to 2.0.0 (bz#1012369) * Sun Aug 04 2013 Fedora Release Engineering - 1.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 08 2013 Josef Stribny - 1.1.2-5 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jan 13 2013 Julian C. Dunn - 1.1.2-3 - Disable %%check on F16/EL6; rspec is too old. * Sun Dec 23 2012 Julian C. Dunn - 1.1.2-2 - Silence tests & unify spec between Fedora/EPEL. * Mon Apr 30 2012 Jonas Courteau - 1.1.2-1 - Repackaged for fc17 - Call tests directly, eliminating need for patch, Rakefile modification - New upstream version * Wed Jun 9 2010 Matthew Kent - 1.1.0-4 - New patch to enable check again. * Tue Jun 8 2010 Matthew Kent - 1.1.0-3 - Disable check for now. * Tue Mar 23 2010 Matthew Kent - 1.1.0-2 - New upstream version - moves to jeweler for gem creation. * Mon Oct 5 2009 Matthew Kent - 1.0.12-2 - Missing complete source url (#526180). - Remove unused ruby_sitelib macro (#526180). - Remove redundant doc Requires on rubygems (#526180). * Sun Oct 4 2009 Matthew Kent - 1.0.12-1 - Remove redundant path in doc package (#526180). - Use global over define (#526180). - New upstream version (#526180). * Mon Sep 28 2009 Matthew Kent - 1.0.9-1 - Initial package