[marisa] Update to 0.2.1-3.
Daiki Ueno
ueno at fedoraproject.org
Thu Feb 7 08:05:27 UTC 2013
commit 0bc396760c18eea7b4c71c4dab160a732cceb563
Author: Daiki Ueno <ueno at unixuser.org>
Date: Thu Feb 7 17:05:11 2013 +0900
Update to 0.2.1-3.
marisa.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 77 insertions(+), 1 deletions(-)
---
diff --git a/marisa.spec b/marisa.spec
index 583d853..61ff4b7 100644
--- a/marisa.spec
+++ b/marisa.spec
@@ -1,11 +1,15 @@
Name: marisa
Version: 0.2.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Static and spece-efficient trie data structure library
License: BSD
URL: https://code.google.com/p/marisa-trie/
Source0: https://marisa-trie.googlecode.com/files/marisa-0.2.1.tar.gz
+BuildRequires: swig
+BuildRequires: perl-devel
+BuildRequires: python2-devel
+BuildRequires: ruby-devel
%description
Matching Algorithm with Recursively Implemented StorAge (MARISA) is a
@@ -38,6 +42,34 @@ The %{name}-tools package contains tools for developing applications
that use %{name}.
+%package perl
+Summary: Perl language binding for marisa
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description perl
+Perl language binding for marisa
+
+
+%package python
+Summary: Python language binding for marisa
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description python
+Python language binding for marisa
+
+
+%package ruby
+Summary: Ruby language binding for marisa
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: ruby(abi) = 1.9.1
+
+%description ruby
+Ruby language binding for groonga
+
+
%prep
%setup -q
@@ -48,10 +80,41 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
+pushd bindings/perl
+%{__perl} Makefile.PL INC="-I%{_builddir}/%{name}-%{version}/lib" LIBS="-L%{_builddir}/%{name}-%{version}/lib/.libs"
+make %{?_smp_mflags}
+popd
+
+pushd bindings/python
+%{__python} setup.py build_ext --include-dirs="%{_builddir}/%{name}-%{version}/lib" --library-dirs="%{_builddir}/%{name}-%{version}/lib/.libs"
+%{__python} setup.py build
+popd
+
+pushd bindings/ruby
+ruby extconf.rb --with-opt-include="%{_builddir}/%{name}-%{version}/lib" --with-opt-lib="%{_builddir}/%{name}-%{version}/lib/.libs"
+make
+popd
%install
%make_install INSTALL="install -p"
+
+# install Perl bindings
+pushd bindings/perl
+%make_install INSTALL="install -p"
+popd
+
+# install Python bindings
+pushd bindings/python
+%{__python} setup.py install --root="$RPM_BUILD_ROOT"
+popd
+
+# install Ruby bindings
+pushd bindings/ruby
+%make_install INSTALL="install -p"
+popd
+
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -name 'perllocal.pod' -exec rm -f {} ';'
%post -p /sbin/ldconfig
@@ -71,8 +134,21 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%files tools
%{_bindir}/marisa*
+%files perl
+%{perl_sitearch}/*
+%exclude %dir %{perl_sitearch}/auto/
+
+%files python
+%{python_sitearch}/*
+
+%files ruby
+%{ruby_sitearchdir}/*
+
%changelog
+* Thu Feb 7 2013 Daiki Ueno <dueno at redhat.com> - 0.2.1-3
+- add perl, python, ruby bindings
+
* Fri Feb 1 2013 Daiki Ueno <dueno at redhat.com> - 0.2.1-2
- remove unnesseary BR
- don't embed rpath in executables
More information about the scm-commits
mailing list