%global gem_name parseconfig Summary: Ruby Configuration File Parser Name: rubygem-%{gem_name} Version: 1.0.2 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://github.com/derks/ruby-parseconfig Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ruby(rubygems), ruby(abi) >= 1.8.6 BuildRequires: rubygems-devel, rubygem-rspec BuildRequires: ruby-devel BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description ParseConfig provides simple parsing of standard configuration files in the form of 'param = value'. It also supports nested [group] sections. %prep %build # pass, nothing to do %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} gem install --local --install-dir %{buildroot}%{gem_dir} --force %{SOURCE0} %check bash utils/run-tests.sh %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{gem_cache} %{gem_spec} %dir %{gem_instdir} %dir %{gem_libdir}/ %{gem_libdir}/parseconfig.rb %doc %{gem_docdir}/ %doc %{gem_instdir}/Changelog %doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/README.md %changelog * Tue Jun 12 2012 BJ Dierkes - 1.0.2-1 - Latest sources from upstream. - Run tests in %%check * Fri Feb 03 2012 Vít Ondruch - 0.5.2-6 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 0.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Apr 05 2010 BJ Dierkes - 0.5.2-3 - Removed comment from Source0, URL no longer changes - Resolved duplicate file listing * Mon Apr 05 2010 BJ Dierkes - 0.5.2-2 - Added geminstdir to file list - Requires: ruby(abi) >= 1.8 - Removed check - Updated for current rubygems download url - Removed unused macros ruby_sitelib, installroot * Sat Feb 27 2010 BJ Dierkes - 0.5.2-1 - Initial spec, borrowed from rubygem-cobbler