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