foreman-packaging/rubygem-rest-client/rest-client.spec @ 30a328e9
193f1c7f | Dominic Cleal | %{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|||
%define gem_name rest-client
|
|||
Summary: Simple REST client for Ruby, inspired by microframework syntax for specifying actions
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
58b0306a | Dominic Cleal | Version: 1.6.7
|
|
Release: 1%{?dist}
|
|||
193f1c7f | Dominic Cleal | Group: Development/Languages
|
|
License: GPLv2+ or Ruby
|
|||
URL: http://github.com/archiloque/rest-client
|
|||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|||
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||
Requires: %{?scl_prefix}rubygems
|
|||
58b0306a | Dominic Cleal | %if "%{?scl}" == "ruby193" || (0%{?rhel} == 6 && "%{?scl}" == "")
|
|
193f1c7f | Dominic Cleal | Requires: %{?scl_prefix}ruby(abi) = 1.9.1
|
|
58b0306a | Dominic Cleal | %else
|
|
Requires: %{?scl_prefix}ruby(release)
|
|||
%endif
|
|||
193f1c7f | Dominic Cleal | Requires: %{?scl_prefix}rubygem(mime-types) >= 1.16
|
|
58b0306a | Dominic Cleal | Requires: %{?scl_prefix}rubygem(netrc)
|
|
193f1c7f | Dominic Cleal | BuildRequires: %{?scl_prefix}rubygems-devel
|
|
BuildArch: noarch
|
|||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
%description
|
|||
A simple Simple HTTP and REST client for Ruby, inspired by the Sinatra
|
|||
microframework style of specifying actions: get, put, post, delete.
|
|||
%prep
|
|||
%build
|
|||
%install
|
|||
rm -rf %{buildroot}
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem install --local --install-dir %{buildroot}%{gem_dir} \
|
|||
--force --rdoc %{SOURCE0}
|
|||
%{?scl:"}
|
|||
mkdir -p %{buildroot}/%{_bindir}
|
|||
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
|
|||
rmdir %{buildroot}%{gem_dir}/bin
|
|||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|||
%clean
|
|||
rm -rf %{buildroot}
|
|||
%files
|
|||
%defattr(-, root, root, -)
|
|||
%{_bindir}/restclient
|
|||
%{gem_dir}/gems/%{gem_name}-%{version}/
|
|||
%doc %{gem_dir}/doc/%{gem_name}-%{version}
|
|||
%doc %{gem_instdir}/README.rdoc
|
|||
%doc %{gem_instdir}/history.md
|
|||
%{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|||
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|||
%changelog
|
|||
30a328e9 | Dominic Cleal | * Tue May 27 2014 Dominic Cleal <dcleal@redhat.com> 1.6.7-1
|
|
- Update to 1.6.7, support RHEL 7
|
|||
193f1c7f | Dominic Cleal | * Wed Feb 27 2013 Miroslav Suchý <msuchy@redhat.com> 1.6.1-4
|
|
- BR rubygems-devel (msuchy@redhat.com)
|
|||
* Wed Feb 27 2013 Miroslav Suchý <msuchy@redhat.com> 1.6.1-3
|
|||
- new package built with tito
|
|||
* Wed Nov 10 2010 Shannon Hughes <shughes@redhat.com> 1.6.1-2
|
|||
- - mass gem update - updated specs for fedora guidelines - removed dev
|
|||
dependencies in specs (shughes@redhat.com)
|
|||
* Fri Nov 05 2010 Shannon Hughes <shughes@redhat.com> - 1.6.1-1
|
|||
- Initial package
|