perl-Term-ReadLine-Gnu-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Name: perl-Term-ReadLine-Gnu
  2. Version: 1.17a
  3. Release: 1%{?_dist_release}
  4. Summary: Perl extension for the GNU Readline/History Library
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Term-ReadLine-Gnu/
  8. Source0: http://www.cpan.org/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-%{version}.tar.gz
  9. Patch0: perl-Term-ReadLine-Gnu-1.17-vbtest.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: ncurses-devel
  13. BuildRequires: readline-devel >= 2.1
  14. BuildRequires: perl >= 5.7
  15. BuildRequires: expect
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. %description
  18. An implementation of Term::ReadLine using the GNU Readline/History Library.
  19. %prep
  20. %setup -q -n Term-ReadLine-Gnu-1.17
  21. %patch0 -p1 -b .vbtest
  22. %build
  23. # Fix permissions and shebang paths at one shot
  24. find . -type f -exec chmod 0664 '{}' \; \
  25. -exec sed 's,^#! */usr/local,#!%{_prefix},' -i '{}' \;
  26. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  27. make %{?_smp_mflags}
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  31. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  32. find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
  33. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  34. %{_fixperms} $RPM_BUILD_ROOT
  35. %check
  36. # Expect is used so that we get a PTY, as if we were
  37. # in a real terminal, where readline works
  38. expect -c '
  39. spawn make test
  40. expect eof
  41. exit [lindex [wait] 3]
  42. '
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %files
  46. %defattr(-,root,root,-)
  47. %doc README
  48. %{perl_vendorarch}/auto/*
  49. %{perl_vendorarch}/Term*
  50. %{_mandir}/man3/*
  51. %changelog
  52. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17a-1
  53. - initial build for Vine Linux
  54. * Wed Jul 02 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-4
  55. - Remote the workaround introduced in previous change
  56. - Disable Visual Bell test
  57. * Tue Jul 01 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-3
  58. - Patch around rt#56500 perl bug hoping for better tomorrows
  59. * Sat Jun 28 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-2
  60. - Tun the test suite with a pseudo-terminal
  61. * Fri Jun 27 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-1
  62. - Specfile autogenerated by cpanspec 1.75.