perl-Term-Encoding-vl.spec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define pkgname Term-Encoding
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.02
  5. Release: 2%{?_dist_release}
  6. Summary: Detect encoding of the current terminal
  7. Summary(ja): 現在の端末のエンコーディングを検出する
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/~miyagawa/Term-Encoding/
  11. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: yasumichi
  19. %description
  20. Term::Encoding is a simple module to detect an encoding the current terminal
  21. expects, in various ways.
  22. %description -l ja
  23. Term::Encoding は、さまざまな方法で現在の端末のエンコーディングを検出する
  24. 簡単なモジュールです。
  25. %prep
  26. %setup -q -n Term-Encoding-%{version}
  27. %build
  28. perl Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make pure_install DESTDIR=$RPM_BUILD_ROOT
  33. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  34. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
  35. %{_fixperms} $RPM_BUILD_ROOT
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %check
  39. make test
  40. %files
  41. %defattr(-,root,root)
  42. %doc Changes
  43. %{perl_vendorlib}/Term/*
  44. %{_mandir}/man3/*
  45. %changelog
  46. * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.02-2
  47. - rebuilt with perl 5.16.3
  48. - installed module to vendor_perl
  49. - added BuildArch: noarch
  50. - added BR: perl(ExtUtils::MakeMaker)
  51. - added URL tag
  52. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.02-1
  53. - initial build for Vine Linux