|
|
|
# Generated from webmock-1.7.6.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gem_name webmock
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
|
|
|
Summary: Library for stubbing HTTP requests in Ruby
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.7.10
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/bblimke/webmock
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: ruby
|
|
|
|
Requires: rubygem(addressable) => 2.2
|
|
|
|
Requires: rubygem(addressable) < 3
|
|
|
|
Requires: rubygem(addressable) > 2.2.5
|
|
|
|
Requires: rubygem(crack) >= 0.1.7
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
WebMock allows stubbing HTTP requests and setting expectations on HTTP
|
|
|
|
requests.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
sed -i s-/usr/bin/env\ rake-/usr/bin/rake- Rakefile
|
|
|
|
rm .rvmrc .travis.yml .rspec-tm .gitignore .gemtest
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_instdir}/lib
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%doc %{gem_instdir}/minitest
|
|
|
|
%doc %{gem_instdir}/test
|
|
|
|
%doc %{gem_instdir}/spec
|
|
|
|
%doc %{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
%doc %{gem_instdir}/Guardfile
|
|
|
|
%{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|
|
|
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_dir}/doc/%{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Feb 13 2012 Mo Morsi <mmorsi@redhat.com> - 1.7.10-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- Build against ruby 1.9
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Mo Morsi <mmorsi@redhat.com> - 1.7.6-2
|
|
|
|
- Update to conform to guidelines
|
|
|
|
|
|
|
|
* Wed Sep 28 2011 Mo Morsi <mmorsi@redhat.com> - 1.7.6-1
|
|
|
|
- Initial package
|