]> git.pld-linux.org Git - SPECS.git/blob - ruby-mecab.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / ruby-mecab.spec
1 Summary:        MeCab module for Ruby
2 Summary(pl.UTF-8):      Moduł MeCab dla języka Ruby
3 Name:           ruby-mecab
4 Version:        0.996
5 Release:        7
6 License:        GPL v2 or LGPL v2.1 or BSD
7 Group:          Development/Languages
8 # Source0Download: http://code.google.com/p/mecab/downloads/list
9 Source0:        http://mecab.googlecode.com/files/mecab-ruby-%{version}.tar.gz
10 # Source0-md5:  d72937048a8aeb3ae8da69139a959210
11 URL:            http://code.google.com/p/mecab/
12 BuildRequires:  libstdc++-devel
13 BuildRequires:  mecab-devel >= 0.996
14 BuildRequires:  rpm-rubyprov
15 BuildRequires:  rpmbuild(macros) >= 1.665
16 BuildRequires:  ruby-devel >= 1:1.8.6
17 Requires:       mecab >= 0.996
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 MeCab module for Ruby.
22
23 %description -l pl.UTF-8
24 Moduł MeCab dla języka Ruby.
25
26 %prep
27 %setup -q -n mecab-ruby-%{version}
28
29 %build
30 %{__ruby} extconf.rb \
31         --vendor
32
33 %{__make} \
34         V=1 \
35         CXX="%{__cc}" \
36         CXXFLAGS="%{rpmcxxflags} -fPIC" \
37         ldflags="%{rpmldflags}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc AUTHORS BSD COPYING README bindings.html
50 %attr(755,root,root) %{ruby_vendorarchdir}/MeCab.so
This page took 0.485855 seconds and 3 git commands to generate.