# Generated from cookiejar-0.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name cookiejar Name: rubygem-%{gem_name} Version: 0.3.1 Release: 1%{?dist} Summary: Parsing and returning cookies in Ruby Group: Development/Languages License: BSD URL: https://github.com/dwaite/cookiejar Source0: https://rubygems.org/gems/cookiejar-0.3.1.gem Requires: ruby(release) Requires: ruby(rubygems) BuildRequires: rubygem(rspec) BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description The Ruby CookieJar is a library to help manage client-side cookies in pure Ruby. It enables parsing and setting of cookie headers, alternating between multiple 'jars' of cookies at one time (such as having a set of cookies for each browser or thread), and supports persistence of the cookies in a JSON string. %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} %{gem_cache} %{gem_spec} %{gem_instdir}/spec/* %{gem_instdir}/contributors.json %files doc %{gem_docdir} %{gem_instdir}/LICENSE %{gem_instdir}/README.markdown %{gem_instdir}/Rakefile %changelog * Sat Jan 11 2014 Nitesh Narayan Lal - 0.3.0-1 * Thu Feb 20 2014 Nitesh Narayan Lal - 0.3.1-1 -Version updated