rebuild with perl 5.32
[packages/perl-mecab.git] / perl-mecab.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires mecab dictionary)
4 #
5 Summary:        MeCab module for Perl
6 Summary(pl.UTF-8):      Moduł MeCab dla Perla
7 Name:           perl-mecab
8 Version:        0.996
9 Release:        12
10 License:        GPL v2 or LGPL v2.1 or BSD
11 Group:          Development/Languages/Perl
12 #Source0Download: http://code.google.com/p/mecab/downloads/list
13 Source0:        http://mecab.googlecode.com/files/mecab-perl-%{version}.tar.gz
14 # Source0-md5:  af03fd644dfdfa239c63ae6279bfc4ce
15 URL:            http://code.google.com/p/mecab/
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  mecab-devel >= 0.996
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %{?with_tests:BuildRequires:    mecab-ipadic}
21 Requires:       mecab >= 0.996
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 MeCab module for Perl.
26
27 %description -l pl.UTF-8
28 Moduł MeCab dla Perla.
29
30 %prep
31 %setup -q -n mecab-perl-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36
37 %{__make} \
38         CC="%{__cxx}"
39         OPTIMIZE="%{rpmcxxflags}"
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc AUTHORS BSD COPYING README bindings.html
55 %{perl_vendorarch}/MeCab.pm
56 %dir %{perl_vendorarch}/auto/MeCab
57 %attr(755,root,root) %{perl_vendorarch}/auto/MeCab/MeCab.so
This page took 0.110457 seconds and 4 git commands to generate.