You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.2 KiB
92 lines
2.2 KiB
# 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: 3%{?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
|
|
* 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
|