rubygem-parseconfig/rubygem-parseconfig.spec
2012-02-03 12:10:19 +01:00

73 lines
2.2 KiB
RPMSpec

%global gem_name parseconfig
Summary: Ruby Configuration File Parser
Name: rubygem-%{gem_name}
Version: 0.5.2
Release: 6%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.5dollarwhitebox.org
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(rubygems), ruby(abi) >= 1.9.1
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
ParseConfig is a Ruby class written to parse standard *nix style configuration
files in the format of 'param = value'. The key benefit is that your ruby
scripts can use the same configuration files of most unix/linux
applications.
%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}
%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
%doc %{gem_instdir}/demo.conf
%doc %{gem_instdir}/demo.rb
%changelog
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.5.2-6
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Apr 05 2010 BJ Dierkes <wdierkes@rackspace.com> - 0.5.2-3
- Removed comment from Source0, URL no longer changes
- Resolved duplicate file listing
* Mon Apr 05 2010 BJ Dierkes <wdierkes@rackspace.com> - 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 <wdierkes@rackspace.com> - 0.5.2-1
- Initial spec, borrowed from rubygem-cobbler