parent
9e8410af19
commit
c834cd91b2
@ -0,0 +1 @@
|
|||||||
|
/webmock-1.7.6.gem
|
@ -0,0 +1,88 @@
|
|||||||
|
# Generated from webmock-1.7.6.gem by gem2rpm -*- rpm-spec -*-
|
||||||
|
%global gemname webmock
|
||||||
|
|
||||||
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||||
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
||||||
|
%global rubyabi 1.8
|
||||||
|
|
||||||
|
Summary: Library for stubbing HTTP requests in Ruby
|
||||||
|
Name: rubygem-%{gemname}
|
||||||
|
Version: 1.7.6
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Group: Development/Languages
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/bblimke/webmock
|
||||||
|
Source0: http://rubygems.org/gems/%{gemname}-%{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: ruby
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: rubygem(%{gemname}) = %{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 .%{gemdir}
|
||||||
|
gem install --local --install-dir .%{gemdir} \
|
||||||
|
--force %{SOURCE0}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gemdir}
|
||||||
|
cp -a .%{gemdir}/* \
|
||||||
|
%{buildroot}%{gemdir}/
|
||||||
|
|
||||||
|
pushd %{buildroot}%{geminstdir}
|
||||||
|
sed -i s-/usr/bin/env\ rake-/usr/bin/rake- Rakefile
|
||||||
|
rm .rvmrc .travis.yml .rspec-tm .gitignore .gemtest
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{geminstdir}
|
||||||
|
%{geminstdir}/lib
|
||||||
|
%{geminstdir}/Gemfile
|
||||||
|
%{geminstdir}/Rakefile
|
||||||
|
%doc %{geminstdir}/minitest
|
||||||
|
%doc %{geminstdir}/test
|
||||||
|
%doc %{geminstdir}/spec
|
||||||
|
%doc %{geminstdir}/%{gemname}.gemspec
|
||||||
|
%doc %{geminstdir}/README.md
|
||||||
|
%doc %{geminstdir}/LICENSE
|
||||||
|
%doc %{geminstdir}/CHANGELOG.md
|
||||||
|
%doc %{geminstdir}/Guardfile
|
||||||
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
||||||
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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
|
Loading…
Reference in new issue