# Generated from http_parser-0.1.3.gem by gem2rpm -*- rpm-spec -*- %global gem_name http_parser Name: rubygem-%{gem_name} Version: 0.1.3 Release: 1%{?dist} Summary: HTTP Parser Library Group: Development/Languages License: MIT URL: http://github.com/stormbrew/http_parser Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(release) Requires: ruby(rubygems) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description This gem provides a (hopefully) high quality http parser library that can build request information iteratively as data comes over the line without requiring the caller to maintain the entire body of the request as a single string in memory. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %check pushd ./%{gem_instdir} rspec -Ilib lib popd %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/bench/* %{gem_spec} %{gem_instdir}/Rakefile %{gem_instdir}/spec/* %files doc %doc %{gem_docdir} %doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/.document %{gem_instdir}/VERSION %changelog * Sat Jan 11 2014 Nitesh Narayan Lal - 0.1.3-1 - Initial package