|
|
a7ad6e |
Name: marisa
|
|
|
a7ad6e |
Version: 0.2.4
|
|
|
f4a999 |
Release: 3%{?dist}
|
|
|
a7ad6e |
Summary: Static and spece-efficient trie data structure library
|
|
|
a7ad6e |
|
|
|
a7ad6e |
License: BSD or LGPL
|
|
|
a7ad6e |
URL: https://code.google.com/p/marisa-trie/
|
|
|
a7ad6e |
Source0: https://marisa-trie.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
a7ad6e |
BuildRequires: swig
|
|
|
a7ad6e |
BuildRequires: perl-devel
|
|
|
a7ad6e |
BuildRequires: python2-devel
|
|
|
a7ad6e |
BuildRequires: ruby-devel
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description
|
|
|
a7ad6e |
Matching Algorithm with Recursively Implemented StorAge (MARISA) is a
|
|
|
a7ad6e |
static and space-efficient trie data structure. And libmarisa is a C++
|
|
|
a7ad6e |
library to provide an implementation of MARISA. Also, the package of
|
|
|
a7ad6e |
libmarisa contains a set of command line tools for building and
|
|
|
a7ad6e |
operating a MARISA-based dictionary.
|
|
|
a7ad6e |
|
|
|
a7ad6e |
A MARISA-based dictionary supports not only lookup but also reverse
|
|
|
a7ad6e |
lookup, common prefix search and predictive search.
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%package devel
|
|
|
a7ad6e |
Summary: Development files for %{name}
|
|
|
a7ad6e |
Group: Development/Libraries
|
|
|
a7ad6e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description devel
|
|
|
a7ad6e |
The %{name}-devel package contains libraries and header files for
|
|
|
a7ad6e |
developing applications that use %{name}.
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%package tools
|
|
|
a7ad6e |
Summary: Tools for %{name}
|
|
|
a7ad6e |
Group: Development/Tools
|
|
|
a7ad6e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description tools
|
|
|
a7ad6e |
The %{name}-tools package contains tools for developing applications
|
|
|
a7ad6e |
that use %{name}.
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%package perl
|
|
|
a7ad6e |
Summary: Perl language binding for marisa
|
|
|
a7ad6e |
Group: Development/Libraries
|
|
|
a7ad6e |
Requires: %{name} = %{version}-%{release}
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description perl
|
|
|
a7ad6e |
Perl language binding for marisa
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%package python
|
|
|
a7ad6e |
Summary: Python language binding for marisa
|
|
|
a7ad6e |
Group: Development/Libraries
|
|
|
a7ad6e |
Requires: %{name} = %{version}-%{release}
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description python
|
|
|
a7ad6e |
Python language binding for marisa
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%package ruby
|
|
|
a7ad6e |
Summary: Ruby language binding for marisa
|
|
|
a7ad6e |
Group: Development/Libraries
|
|
|
a7ad6e |
Requires: %{name} = %{version}-%{release}
|
|
|
a7ad6e |
%if (0%{?fedora} >= 19 || 0%{?rhel} >= 7)
|
|
|
a7ad6e |
Requires: ruby(release) = 2.0.0
|
|
|
a7ad6e |
%else
|
|
|
a7ad6e |
Requires: ruby(abi) = 1.9.1
|
|
|
a7ad6e |
%endif
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%description ruby
|
|
|
a7ad6e |
Ruby language binding for groonga
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%prep
|
|
|
a7ad6e |
%setup -q
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%build
|
|
|
a7ad6e |
%configure --disable-static
|
|
|
a7ad6e |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
a7ad6e |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
a7ad6e |
make %{?_smp_mflags}
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# build Perl bindings
|
|
|
a7ad6e |
pushd bindings/perl
|
|
|
a7ad6e |
%{__perl} Makefile.PL INC="-I%{_builddir}/%{name}-%{version}/lib" LIBS="-L%{_builddir}/%{name}-%{version}/lib/.libs"
|
|
|
a7ad6e |
make %{?_smp_mflags}
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# build Python bindings
|
|
|
a7ad6e |
pushd bindings/python
|
|
|
a7ad6e |
%{__python} setup.py build_ext --include-dirs="%{_builddir}/%{name}-%{version}/lib" --library-dirs="%{_builddir}/%{name}-%{version}/lib/.libs"
|
|
|
a7ad6e |
%{__python} setup.py build
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# build Ruby bindings
|
|
|
a7ad6e |
pushd bindings/ruby
|
|
|
a7ad6e |
ruby extconf.rb --with-opt-include="%{_builddir}/%{name}-%{version}/lib" --with-opt-lib="%{_builddir}/%{name}-%{version}/lib/.libs" --vendor
|
|
|
a7ad6e |
make
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%install
|
|
|
a7ad6e |
%make_install INSTALL="install -p"
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# install Perl bindings
|
|
|
a7ad6e |
pushd bindings/perl
|
|
|
a7ad6e |
%make_install INSTALL="install -p"
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# install Python bindings
|
|
|
a7ad6e |
pushd bindings/python
|
|
|
a7ad6e |
%{__python} setup.py install --root="$RPM_BUILD_ROOT"
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
# install Ruby bindings
|
|
|
a7ad6e |
pushd bindings/ruby
|
|
|
a7ad6e |
%make_install INSTALL="install -p"
|
|
|
a7ad6e |
popd
|
|
|
a7ad6e |
|
|
|
a7ad6e |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
a7ad6e |
find $RPM_BUILD_ROOT -name 'perllocal.pod' -exec rm -f {} ';'
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%post -p /sbin/ldconfig
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%postun -p /sbin/ldconfig
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files
|
|
|
a7ad6e |
%doc docs/* AUTHORS COPYING README
|
|
|
a7ad6e |
%{_libdir}/*.so.*
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files devel
|
|
|
a7ad6e |
%{_includedir}/*
|
|
|
a7ad6e |
%{_libdir}/*.so
|
|
|
a7ad6e |
%{_libdir}/pkgconfig/*.pc
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files tools
|
|
|
a7ad6e |
%{_bindir}/marisa*
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files perl
|
|
|
a7ad6e |
%{perl_sitearch}/*
|
|
|
a7ad6e |
%exclude %dir %{perl_sitearch}/auto/
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files python
|
|
|
a7ad6e |
%{python_sitearch}/*
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%files ruby
|
|
|
a7ad6e |
%{ruby_vendorarchdir}/*
|
|
|
a7ad6e |
|
|
|
a7ad6e |
|
|
|
a7ad6e |
%changelog
|
|
|
f4a999 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.4-3
|
|
|
f4a999 |
- Mass rebuild 2014-01-24
|
|
|
f4a999 |
|
|
|
f4a999 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.4-2
|
|
|
f4a999 |
- Mass rebuild 2013-12-27
|
|
|
f4a999 |
|
|
|
a7ad6e |
* Wed Sep 4 2013 Daiki Ueno <dueno@redhat.com> - 0.2.4-1.1
|
|
|
a7ad6e |
- use 'ruby(release)' on RHEL 7 as well as Fedora 19 (Closes: #1002870)
|
|
|
a7ad6e |
- disable workaround for ruby bindings needed for earlier Fedora 19
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Thu May 2 2013 Daiki Ueno <dueno@redhat.com> - 0.2.4-1
|
|
|
a7ad6e |
- new upstream release
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Wed Mar 20 2013 Vít Ondruch <vondruch@redhat.com> - 0.2.2-2
|
|
|
a7ad6e |
- Move Ruby bindings into correct location.
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Thu Mar 14 2013 Daiki Ueno <dueno@redhat.com> - 0.2.2-1
|
|
|
a7ad6e |
- new upstream release
|
|
|
a7ad6e |
- for Fedora 19 or later, use 'ruby(release)' instead of 'ruby(abi)',
|
|
|
a7ad6e |
and also update the required Ruby ABI/release version to 2.0.0
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Thu Feb 7 2013 Daiki Ueno <dueno@redhat.com> - 0.2.1-3
|
|
|
a7ad6e |
- add perl, python, ruby bindings
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Fri Feb 1 2013 Daiki Ueno <dueno@redhat.com> - 0.2.1-2
|
|
|
a7ad6e |
- remove unnesseary BR
|
|
|
a7ad6e |
- don't embed rpath in executables
|
|
|
a7ad6e |
- add docs
|
|
|
a7ad6e |
- drop buildroot cleanup
|
|
|
a7ad6e |
- preserve timestamp when make install
|
|
|
a7ad6e |
|
|
|
a7ad6e |
* Thu Jan 24 2013 Daiki Ueno <dueno@redhat.com> - 0.2.1-1
|
|
|
a7ad6e |
- initial packaging
|
|
|
a7ad6e |
|