mecab-perl-vl.spec 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. %define ver 0.994
  2. %define rel 1
  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}-%{release}-buildroot
  13. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  14. BuildRequires: perl
  15. BuildRequires: mecab-devel
  16. BuildRequires: mecab-ipadic
  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 Jan 21 2013 IWAI, Masaharu <iwai@alib.jp> 0.994-1
  44. - initial build for Vine Linux