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

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