[rubygem-hpricot] 0.8.6
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Apr 11 05:38:24 UTC 2012
commit 6d4454f1337261663cdb515f41f22486ba6f7670
Author: Mamoru TASAKA <mtasaka at localhost.localdomain>
Date: Wed Apr 11 14:38:12 2012 +0900
0.8.6
.gitignore | 1 +
rubygem-hpricot-create-free-gem.sh | 5 ++++-
rubygem-hpricot.spec | 16 ++++++++++++++--
sources | 2 +-
4 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fd3a8ae..86fd619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ hpricot-0.8.2-modified.gem
/hpricot-0.8.3-modified.gem
/hpricot-0.8.4-modified.gem
/hpricot-0.8.5-modified.gem
+/hpricot-0.8.6-modified.gem
diff --git a/rubygem-hpricot-create-free-gem.sh b/rubygem-hpricot-create-free-gem.sh
index a4fea77..a0abd08 100644
--- a/rubygem-hpricot-create-free-gem.sh
+++ b/rubygem-hpricot-create-free-gem.sh
@@ -19,8 +19,11 @@ cd TMP
# Remove CC-BY-NC licensed file
find . -name \*boingboing\* | xargs rm -f
+# Ah.. fixing Rakefile
+find . -name Rakefile | \
+ xargs sed -i -e '\@s\.version at s|VERS$|VERS.dup|'
# Recreate gem
-VERSION=${VERSION} rake gem
+VERSION=${VERSION} rake gem --trace
popd
mv ${TMPDIR}/TMP/pkg/*.gem hpricot-${VERSION}-modified.gem
diff --git a/rubygem-hpricot.spec b/rubygem-hpricot.spec
index 3121954..c7893bd 100644
--- a/rubygem-hpricot.spec
+++ b/rubygem-hpricot.spec
@@ -11,8 +11,8 @@
Summary: A Fast, Enjoyable HTML Parser for Ruby
Name: rubygem-%{gem_name}
-Version: 0.8.5
-Release: 4%{?dist}
+Version: 0.8.6
+Release: 1%{?dist}
Group: Development/Languages
# ext/fast_xs/FastXsService.java is licensed under ASL 2.0
License: MIT and ASL 2.0
@@ -92,8 +92,13 @@ find . -type f | xargs chmod ugo+r
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
+%if 0%{?fedora} >= 17
mkdir -p %{buildroot}%{gem_extdir}/lib
mv %{buildroot}%{gem_libdir}/*.so %{buildroot}%{gem_extdir}/lib
+%else
+mkdir -p %{buildroot}%{ruby_sitearch}
+mv %{buildroot}%{gem_libdir}/*.so %{buildroot}%{ruby_sitearch}/
+%endif
# Shebang
for f in $(find %{buildroot}%{gem_instdir} -name \*.rb)
@@ -195,7 +200,11 @@ popd
%files
%defattr(-,root, root,-)
+%if 0%{?fedora} >= 17
%{gem_extdir}
+%else
+%{ruby_sitearch}/*.so
+%endif
%dir %{gem_instdir}/
%doc %{gem_instdir}/[A-Z]*
%exclude %{gem_instdir}/Rakefile
@@ -218,6 +227,9 @@ popd
%endif
%changelog
+* Wed Apr 11 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.8.6-1
+- 0.8.6
+
* Sun Feb 5 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 0.8.5-4
- F-17: kill compat ruby-%%{gem_name} package
diff --git a/sources b/sources
index e7697d8..d3ac068 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7e20eb6f38f5dcffdcbb1acae156ea7d hpricot-0.8.5-modified.gem
+5d737234720f3847cc5def6c0047f2e4 hpricot-0.8.6-modified.gem
More information about the scm-commits
mailing list