[hivex/f16] - New upstream version 1.3.0. - This version adds Ruby bindings, so there is a new subpackage 'ruby-

Richard W.M. Jones rjones at fedoraproject.org
Mon Aug 15 10:19:51 UTC 2011


commit 32358fc9bc1110750287c4be8510aa845c002c93
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Aug 15 10:47:08 2011 +0100

    - New upstream version 1.3.0.
    - This version adds Ruby bindings, so there is a new subpackage 'ruby-hivex'.
    (cherry picked from commit 54ce3b6ecc129dce44e4fae89b6fa738132690dd)

 .gitignore |    1 +
 hivex.spec |   32 +++++++++++++++++++++++++++++++-
 sources    |    2 +-
 3 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 436ef33..dab5129 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ hivex-1.2.2.tar.gz
 /hivex-1.2.6.tar.gz
 /hivex-1.2.7.tar.gz
 /hivex-1.2.8.tar.gz
+/hivex-1.3.0.tar.gz
diff --git a/hivex.spec b/hivex.spec
index 6d8be0c..ca8ff23 100644
--- a/hivex.spec
+++ b/hivex.spec
@@ -6,7 +6,7 @@
 %endif
 
 Name:           hivex
-Version:        1.2.8
+Version:        1.3.0
 Release:        1%{?dist}
 Summary:        Read and write Windows Registry binary hive files
 
@@ -28,6 +28,8 @@ BuildRequires:  ocaml
 BuildRequires:  ocaml-findlib-devel
 %endif
 BuildRequires:  python-devel
+BuildRequires:  ruby-devel
+BuildRequires:  rubygem-rake
 BuildRequires:  readline-devel
 BuildRequires:  libxml2-devel
 
@@ -67,6 +69,8 @@ For Perl bindings, see 'perl-hivex'.
 
 For Python bindings, see 'python-hivex'.
 
+For Ruby bindings, see 'ruby-hivex'.
+
 
 %package devel
 Summary:        Development tools and libraries for %{name}
@@ -140,6 +144,21 @@ Requires:      %{name} = %{version}-%{release}
 python-%{name} contains Python bindings for %{name}.
 
 
+%package -n ruby-%{name}
+Summary:       Ruby bindings for %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      ruby(abi) = 1.8
+Requires:      ruby
+Provides:      ruby(hivex) = %{version}
+
+%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
+%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
+
+%description -n ruby-%{name}
+ruby-%{name} contains Ruby bindings for %{name}.
+
+
 %prep
 %setup -q
 
@@ -255,7 +274,18 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/*.so
 
 
+%files -n ruby-%{name}
+%defattr(-,root,root,-)
+%doc ruby/doc/site/*
+%{ruby_sitelib}/hivex.rb
+%{ruby_sitearch}/_hivex.so
+
+
 %changelog
+* Mon Aug 15 2011 Richard W.M. Jones <rjones at redhat.com> - 1.3.0-1
+- New upstream version 1.3.0.
+- This version adds Ruby bindings, so there is a new subpackage 'ruby-hivex'.
+
 * Fri Aug 12 2011 Richard W.M. Jones <rjones at redhat.com> - 1.2.8-1
 - New upstream version 1.2.8.
 - Remove 4 upstream patches.
diff --git a/sources b/sources
index 1bae7c8..42ab0ad 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f8fd5472abf1f606e7541865eab5bab8  hivex-1.2.8.tar.gz
+9102b7bd9f1a348cb955dfdcfa179eeb  hivex-1.3.0.tar.gz


More information about the scm-commits mailing list