commit
d1859dc1fe
BIN
multipart-post-2.0.0.gem
Normal file
BIN
multipart-post-2.0.0.gem
Normal file
Binary file not shown.
69
rubygem-multipart-post.spec
Normal file
69
rubygem-multipart-post.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
%global gem_name multipart-post
|
||||||
|
Name: rubygem-multipart-post
|
||||||
|
Version: 2.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Creates a multipart form post accessory for Net::HTTP
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/nicksieger/multipart-post
|
||||||
|
Source0: http://rubygems.org/gems/multipart-post-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Use with Net::HTTP to do multipart form posts. IO values that
|
||||||
|
have #content_type, #original_filename, and #local_path will
|
||||||
|
be posted as a binary file.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for rubygem-multipart-post
|
||||||
|
Requires: rubygem-multipart-post = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for rubygem-multipart-post
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -T
|
||||||
|
%gem_install -n %{SOURCE0}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd %{buildroot}%{gem_instdir}
|
||||||
|
ruby -rminitest/autorun -Ilib - << \EOF
|
||||||
|
module Kernel
|
||||||
|
alias orig_require require
|
||||||
|
remove_method :require
|
||||||
|
def require path
|
||||||
|
orig_require path unless path == 'test/unit'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Test = Minitest
|
||||||
|
Dir.glob "./test/**/test_*.rb", &method(:require)
|
||||||
|
EOF
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%exclude %{gem_instdir}/.gitignore
|
||||||
|
%exclude %{gem_instdir}/.travis.yml
|
||||||
|
%exclude %{gem_instdir}/Gemfile
|
||||||
|
%exclude %{gem_instdir}/multipart-post.gemspec
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/Manifest.txt
|
||||||
|
%doc %{gem_instdir}/History.txt
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jul 27 2020 yaokai <yaokai13@huawei.com> - 2.0.0-1
|
||||||
|
- package init
|
||||||
5
rubygem-multipart-post.yaml
Normal file
5
rubygem-multipart-post.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/socketry/multipart-post
|
||||||
|
version_control: github
|
||||||
|
src_repo: socketry/multipart-post
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user