Init package for ruby-mecab
(cherry picked from commit cb60319dd7fb977241fb0ab51327e8153a6e4d06)
This commit is contained in:
parent
7567c0c465
commit
f4f7bb496e
BIN
mecab-ruby-0.996.tar.gz
Normal file
BIN
mecab-ruby-0.996.tar.gz
Normal file
Binary file not shown.
62
ruby-mecab.spec
Normal file
62
ruby-mecab.spec
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
%define mainver 0.996
|
||||||
|
#%%define betaver pre3
|
||||||
|
%define relnumber 6
|
||||||
|
%define srcname mecab-ruby
|
||||||
|
|
||||||
|
|
||||||
|
Name: ruby-mecab
|
||||||
|
Version: %{mainver}
|
||||||
|
Release: %{?betaver:0.}%{relnumber}%{?betaver:.%betaver}.18
|
||||||
|
Summary: Ruby binding for MeCab
|
||||||
|
|
||||||
|
# License is the same as MeCab
|
||||||
|
License: BSD or LGPLv2+ or GPL+
|
||||||
|
URL: http://mecab.sourceforge.net/
|
||||||
|
Source0: http://mecab.googlecode.com/files/%{srcname}-%{mainver}%{?betaver}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
# This is not release number specific
|
||||||
|
BuildRequires: mecab-devel = %{version}
|
||||||
|
# ruby-devel requires ruby-libs and not require ruby
|
||||||
|
BuildRequires: ruby
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
# %%check
|
||||||
|
BuildRequires: mecab-jumandic
|
||||||
|
|
||||||
|
Requires: mecab = %{version}
|
||||||
|
Requires: ruby
|
||||||
|
|
||||||
|
Provides: ruby(mecab) = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{srcname}-%{version}%{?betaver}
|
||||||
|
|
||||||
|
%build
|
||||||
|
ruby extconf.rb
|
||||||
|
%{__make} %{?_smp_mflags} \
|
||||||
|
CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
%{__make} install \
|
||||||
|
DESTDIR=$RPM_BUILD_ROOT \
|
||||||
|
INSTALL="%{__install} -c -p" \
|
||||||
|
RUBYARCHDIR=${RPM_BUILD_ROOT}%{ruby_vendorarchdir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
ruby -I. test.rb
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc bindings.html
|
||||||
|
%doc AUTHORS COPYING BSD GPL LGPL
|
||||||
|
|
||||||
|
%{ruby_vendorarchdir}/*MeCab*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Oct 10 2022 peijiankang <peijiankang@kylinos.cn> - 0.996-6.18
|
||||||
|
- Init package for ruby-mecab
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user