perl-Term-Encoding-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %define pkgname Term-Encoding
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.02
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Detect encoding of the current terminal
  14. Summary(ja): 現在の端末のエンコーディングを検出する
  15. # Dependency
  16. Requires: perl
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. BuildRequires: perl
  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-0.02
  27. %build
  28. perl Makefile.PL
  29. %{__make}
  30. %install
  31. %{__rm} -rf ${RPM_BUILD_ROOT}
  32. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  33. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v ^%{_mandir} |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > %{name}.files
  38. if [ "$(cat %{name}.files)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. # remove unnecessary files.
  43. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  44. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Term/Encoding/.packlist
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %files -f %{name}.files
  48. %defattr(-,root,root)
  49. %doc Changes
  50. %{_mandir}/*/*
  51. %changelog
  52. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.02-1
  53. - initial build for Vine Linux