[rubygem-httpclient] Initial import (#902503).

tdawson tdawson at fedoraproject.org
Thu Feb 28 15:23:47 UTC 2013


commit b5e2dfb19465d79ec644fee5828ade1162e0b860
Author: Troy Dawson <tdawson at redhat.com>
Date:   Thu Feb 28 09:23:43 2013 -0600

    Initial import (#902503).

 .gitignore              |    1 +
 rubygem-httpclient.spec |  128 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 130 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aebfc87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/httpclient-2.3.2.gem
diff --git a/rubygem-httpclient.spec b/rubygem-httpclient.spec
new file mode 100644
index 0000000..711a043
--- /dev/null
+++ b/rubygem-httpclient.spec
@@ -0,0 +1,128 @@
+%global gem_name httpclient
+
+%if 0%{?rhel} <= 6 && 0%{?fedora} <= 16
+%global rubyabi 1.8
+
+%if 0%{?rhel}
+%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
+%global gem_libdir %{gem_instdir}/lib
+%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
+%global gem_spec %{gem_dir}/specifications/%%{gem_name}-%{version}.gemspec
+%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
+%endif
+
+%else
+%global rubyabi 1.9.1
+%endif
+
+Summary:        HTTP Client interface for ruby
+Name:           rubygem-%{gem_name}
+Version:        2.3.2
+Release:        4%{?dist}
+Group:          Development/Languages
+License:        (Ruby or BSD) and Public Domain
+URL:            https://github.com/nahi/httpclient
+Source0:        http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+Requires:       ruby(abi) >= %{rubyabi}
+Requires:       rubygems
+BuildRequires:  rubygem(test-unit)
+%if 0%{?rhel} <= 6 && 0%{?fedora} <= 16
+BuildRequires:  rubygems
+%else
+BuildRequires:  rubygems-devel
+%endif
+BuildArch:      noarch
+Provides:       rubygem(%{gem_name}) = %{version}
+
+%description
+an interface to HTTP Client for the ruby language
+
+%package doc
+Summary:   Documentation for %{name}
+Group:     Documentation
+Requires:  %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+mkdir -p ./%{gem_dir}
+gem build %{gem_name}.gemspec
+
+gem install -V \
+        --local \
+        --install-dir ./%{gem_dir} \
+        --bindir ./%{_bindir} \
+        --force \
+        --rdoc \
+        %{gem_name}-%{version}.gem
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+# Remove backup and yardoc files
+find %{buildroot}/%{gem_instdir} -type f -name "*~" -delete
+rm -rf %{buildroot}%{gem_instdir}/.yardoc
+
+# Fix anything executable that does not have a shebang
+for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
+    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
+done
+
+# Find files with a shebang that do not have executable permissions
+for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
+    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
+done
+
+# Find files that have non-standard-executable-perm
+find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
+
+# Find files that are not readable
+find %{buildroot}/%{gem_instdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
+
+%check
+pushd %{buildroot}%{gem_instdir}
+testrb2 -Ilib test
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_instdir}/bin/
+%{gem_instdir}/lib/
+%doc %{gem_instdir}/sample
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.txt
+%doc %{gem_instdir}/test
+
+
+%changelog
+* Wed Feb 27 2013 Troy Dawson <tdawson at redhat.com> - 2.3.2-4
+- Set License to (Ruby or BSD) and Public Domain
+
+* Tue Feb 05 2013 Troy Dawson <tdawson at redhat.com> - 2.3.2-3
+- Fix URL
+- Removed line that changed /usr/bin/env to /usr/bin/ruby
+
+* Mon Jan 21 2013 Troy Dawson <tdawson at redhat.com> - 2.3.2-2
+- Add Check section
+- Put docs in own rpm
+
+* Mon Jan 07 2013 Troy Dawson <tdawson at redhat.com> - 2.3.2-1
+- Update to 2.3.2
+- Change spec to Fedora ruby standards
+
+* Mon Sep 19 2011 Scott Henson <shenson at redhat.com> - 2.2.1-1
+- Initial Packaging
+
diff --git a/sources b/sources
index e69de29..169f0f0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1e01e4e6919ae138831ba0e328e71cfe  httpclient-2.3.2.gem


More information about the scm-commits mailing list