[packages/hivex] - added ruby binding

qboosh qboosh at pld-linux.org
Fri Sep 21 22:14:56 CEST 2012


commit 7b1109ecdc8c3f8dda1acef37ccc410dafd0b031
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 21 22:15:53 2012 +0200

    - added ruby binding

 hivex.spec | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)
---
diff --git a/hivex.spec b/hivex.spec
index 87818ce..9a3f912 100644
--- a/hivex.spec
+++ b/hivex.spec
@@ -1,6 +1,4 @@
 #
-# TODO: ruby bindings
-#
 # Conditional build:
 %bcond_without	static_libs	# don't build static libraries
 #
@@ -14,13 +12,13 @@ License:	LGPL v2.1
 Group:		Libraries
 Source0:	http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz
 # Source0-md5:	87f6101c0cd1f7954367323326f34201
-BuildRequires:	autoconf
+BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
+BuildRequires:	gettext-devel >= 0.17
 BuildRequires:	libtool
-BuildRequires:	libxml2-devel
+BuildRequires:	libxml2-devel >= 2.0
 BuildRequires:	ocaml
 BuildRequires:	ocaml-findlib
-#-devel
 BuildRequires:	perl-ExtUtils-MakeMaker
 BuildRequires:	perl-IO-stringy
 BuildRequires:	perl-Test-Simple
@@ -30,6 +28,8 @@ BuildRequires:	python
 BuildRequires:	python-devel
 BuildRequires:	readline-devel
 BuildRequires:	rpmbuild(macros) >= 1.527
+BuildRequires:	ruby-devel
+BuildRequires:	ruby-rake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -114,15 +114,25 @@ Python bindings for hivex library.
 %description -n python-hivex -l pl.UTF-8
 Wiązania Pythona do biblioteki hivex.
 
+%package -n ruby-hivex
+Summary:	Ruby bindings for hivex library
+Summary(pl.UTF-8):	Wiązania języka Ruby do biblioteki hivex
+Group:		Development/Languages
+Requires:	%{name} = %{version}-%{release}
+
+%description -n ruby-hivex
+Ruby bindings for hivex library.
+
+%description -n ruby-hivex -l pl.UTF-8
+Wiązania języka Ruby do biblioteki hivex.
+
 %prep
 %setup -q
 
 %build
 %configure \
-	ac_cv_lib_ruby_ruby_init=no \
-	ac_cv_prog_RAKE=no \
-	%{__enable_disable static_libs static} \
-	--disable-silent-rules
+	--disable-silent-rules \
+	%{__enable_disable static_libs static}
 
 %{__make} \
 	INSTALLDIRS=vendor
@@ -210,3 +220,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/libhivexmod.so
 %{py_sitedir}/hivex.py[co]
+
+%files -n ruby-hivex
+%defattr(644,root,root,755)
+%attr(755,root,root) %{ruby_sitearchdir}/_hivex.so
+%{ruby_sitelibdir}/hivex.rb
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hivex.git/commitdiff/7b1109ecdc8c3f8dda1acef37ccc410dafd0b031



More information about the pld-cvs-commit mailing list