[rubygem-multipart-post] Initial import (#715570).

Vít Ondruch vondruch at fedoraproject.org
Fri Jul 22 12:12:34 UTC 2011


commit 65b9b57ef71d4a7ba45f65ab3719602bf8492956
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Jul 22 14:12:18 2011 +0200

    Initial import (#715570).

 .gitignore                  |    1 +
 rubygem-multipart-post.spec |   75 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..39ea7cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/multipart-post-1.1.2.gem
diff --git a/rubygem-multipart-post.spec b/rubygem-multipart-post.spec
new file mode 100644
index 0000000..32b1ab5
--- /dev/null
+++ b/rubygem-multipart-post.spec
@@ -0,0 +1,75 @@
+# Generated from multipart-post-1.1.2.gem by gem2rpm -*- rpm-spec -*-
+%global gemname multipart-post
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Creates a multipart form post accessory for Net::HTTP
+Name: rubygem-%{gemname}
+Version: 1.1.2
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/nicksieger/multipart-post
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: ruby
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%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 %{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}/
+
+%check
+pushd %{buildroot}%{geminstdir}
+testrb -Ilib test
+popd
+
+%files
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/Manifest.txt
+%doc %{geminstdir}/README.txt
+%{geminstdir}/Rakefile
+%{geminstdir}/test
+
+
+%changelog
+* Thu Jun 23 2011 Vít Ondruch <vondruch at redhat.com> - 1.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1458540 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cc4b185a31de0c31639e8de12324286f  multipart-post-1.1.2.gem


More information about the scm-commits mailing list