[rubygem-net-http-persistent] Update to 2.8
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Jan 2 14:42:33 UTC 2013
commit 59b393b1446e328955277c3f647b76813063123c
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date: Wed Jan 2 23:42:28 2013 +0900
Update to 2.8
.gitignore | 1 +
rubygem-net-http-persistent.spec | 42 +++++++++++++++++++++++++------------
sources | 2 +-
3 files changed, 30 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 841f264..59e57b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/net-http-persistent-1.8.1.gem
/net-http-persistent-2.0.gem
/net-http-persistent-2.1.gem
+/net-http-persistent-2.8.gem
diff --git a/rubygem-net-http-persistent.spec b/rubygem-net-http-persistent.spec
index 6dbc296..8978b7d 100644
--- a/rubygem-net-http-persistent.spec
+++ b/rubygem-net-http-persistent.spec
@@ -8,8 +8,8 @@
Summary: Persistent connections using Net::HTTP plus a speed fix
Name: rubygem-%{gem_name}
-Version: 2.1
-Release: 6%{?dist}
+Version: 2.8
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
@@ -43,22 +43,33 @@ This package contains documentation for %{name}.
%prep
%setup -q -c -T
-mkdir -p .%{gem_dir}
+TOPDIR=$(pwd)
+mkdir tmpunpackdir
+pushd tmpunpackdir
+
+gem unpack %{SOURCE0}
+cd %{gem_name}-%{version}
+
+%patch0 -p1
+
+gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
+gem build %{gem_name}.gemspec
+mv %{gem_name}-%{version}.gem $TOPDIR
+
+popd
+rm -rf tmpunpackdir
+
+%build
+mkdir -p ./%{gem_dir}
gem install \
-V \
--local \
--install-dir $(pwd)/%{gem_dir} \
--force \
--rdoc \
- %{SOURCE0}
+ %{gem_name}-%{version}.gem
-pushd .%{gem_instdir}
-%patch0 -p1
-popd
-
-chmod 0644 ./%{gem_dir}/cache/%{gem_name}-%{version}.gem
-
-%build
+#chmod 0644 ./%{gem_dir}/cache/%{gem_name}-%{version}.gem
%install
mkdir -p %{buildroot}%{gem_dir}
@@ -77,16 +88,19 @@ testrb -Ilib test || echo "Please investigate test failure"
%doc %{gem_instdir}/[A-Z]*
%exclude %{gem_instdir}/Rakefile
%{gem_instdir}/lib/
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
%files doc
%defattr(-,root,root,-)
-%{gem_instdir}/Rakefile
-%{gem_instdir}/test/
+%exclude %{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/test/
%{gem_docdir}/
%changelog
+* Wed Jan 2 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.8-1
+- Update to 2.8
+
* Mon Nov 26 2012 Vít Ondruch <vondruch at redhat.com> - 2.1-6
- Add EL compatibility macros.
- Drop rubygem({hoe,rake}) build dependencies.
diff --git a/sources b/sources
index b3e0f1b..1ac7855 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-264dbe5be78d21f3259b8cdaacdc19fa net-http-persistent-2.1.gem
+89e838075c21a437ed2b224b95e62245 net-http-persistent-2.8.gem
More information about the scm-commits
mailing list