mecab-perl-vl.spec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. %define ver 0.996
  2. %define rel 2
  3. Summary: MeCab perl module
  4. Summary(ja): MeCab のための Perl モジュール
  5. Name: mecab-perl
  6. Version: %{ver}
  7. Release: %{rel}%{_dist_release}
  8. License: GPL/LGPL/BSD
  9. Group: Development/Libraries
  10. URL: http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html
  11. Source0: http://mecab.googlecode.com/files/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: mecab-devel
  15. BuildRequires: mecab-ipadic
  16. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  17. Provides: perl-MeCab
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: iwaim
  21. %description
  22. MeCab perl module
  23. %prep
  24. %setup -q
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  27. %install
  28. %__rm -rf $RPM_BUILD_ROOT
  29. make DESTDIR=$RPM_BUILD_ROOT install
  30. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  31. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  32. %check
  33. perl test.pl
  34. %clean
  35. %__rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc README bindings.html test.pl AUTHORS COPYING BSD GPL LGPL
  39. %{perl_vendorarch}/MeCab.pm
  40. %dir %{perl_vendorarch}/auto/MeCab
  41. %{perl_vendorarch}/auto/MeCab/MeCab.so
  42. %changelog
  43. * Mon Nov 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.996-2
  44. - rebuilt with perl 5.16.3
  45. * Tue Dec 31 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.996-1
  46. - update to 0.996
  47. * Mon Jan 21 2013 IWAI, Masaharu <iwai@alib.jp> 0.994-1
  48. - initial build for Vine Linux