39 строки
1.2 KiB
Plaintext
39 строки
1.2 KiB
Plaintext
|
%global debug_package %{nil}
|
||
|
%global gem_name faraday-rack
|
||
|
Summary: Faraday adapter for a Rack app
|
||
|
Name: rubygem-%{gem_name}
|
||
|
Version: 1.0.0
|
||
|
Release: 1%{?dist}
|
||
|
License: MIT
|
||
|
Vendor: Microsoft Corporation
|
||
|
Distribution: Mariner
|
||
|
Group: Development/Languages
|
||
|
URL: https://github.com/lostisland/faraday-rack
|
||
|
Source0: https://github.com/lostisland/faraday-rack/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
|
||
|
BuildRequires: git
|
||
|
BuildRequires: ruby
|
||
|
Requires: ruby(release)
|
||
|
Provides: rubygem(%{gem_name}) = %{version}-%{release}
|
||
|
|
||
|
%description
|
||
|
This gem is a Faraday adapter for a Rack app. Faraday is an HTTP client library that provides a common interface over many adapters. Every adapter is defined into its own gem. This gem defines the adapter for a Rack app.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{gem_name}-%{version}
|
||
|
|
||
|
%build
|
||
|
gem build %{gem_name}
|
||
|
|
||
|
%install
|
||
|
gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{gem_name}-%{version}.gem
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc %{gemdir}/gems/%{gem_name}-%{version}/LICENSE.md
|
||
|
%{gemdir}
|
||
|
|
||
|
%changelog
|
||
|
* Mon Jun 13 2022 Neha Agarwal <nehaagarwal@microsoft.com> - 1.0.0-1
|
||
|
- License verified
|
||
|
- Original version for CBL-Mariner
|