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 | |
---|
18 | |
---|
19 | %description |
---|
20 | An implementation of Term::ReadLine using the GNU Readline/History Library. |
---|
21 | |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n Term-ReadLine-Gnu-1.17 |
---|
25 | %patch0 -p1 -b .vbtest |
---|
26 | |
---|
27 | |
---|
28 | %build |
---|
29 | # Fix permissions and shebang paths at one shot |
---|
30 | find . -type f -exec chmod 0664 '{}' \; \ |
---|
31 | -exec sed 's,^#! */usr/local,#!%{_prefix},' -i '{}' \; |
---|
32 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
33 | make %{?_smp_mflags} |
---|
34 | |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf $RPM_BUILD_ROOT |
---|
38 | |
---|
39 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
40 | |
---|
41 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
---|
42 | find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; |
---|
43 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
44 | |
---|
45 | %{_fixperms} $RPM_BUILD_ROOT |
---|
46 | |
---|
47 | %check |
---|
48 | # Expect is used so that we get a PTY, as if we were |
---|
49 | # in a real terminal, where readline works |
---|
50 | expect -c ' |
---|
51 | spawn make test |
---|
52 | expect eof |
---|
53 | exit [lindex [wait] 3] |
---|
54 | ' |
---|
55 | |
---|
56 | |
---|
57 | %clean |
---|
58 | rm -rf $RPM_BUILD_ROOT |
---|
59 | |
---|
60 | |
---|
61 | %files |
---|
62 | %defattr(-,root,root,-) |
---|
63 | %doc README |
---|
64 | %{perl_vendorarch}/auto/* |
---|
65 | %{perl_vendorarch}/Term* |
---|
66 | %{_mandir}/man3/* |
---|
67 | |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17a-1 |
---|
71 | - initial build for Vine Linux |
---|
72 | |
---|
73 | * Wed Jul 02 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-4 |
---|
74 | - Remote the workaround introduced in previous change |
---|
75 | - Disable Visual Bell test |
---|
76 | |
---|
77 | * Tue Jul 01 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-3 |
---|
78 | - Patch around rt#56500 perl bug hoping for better tomorrows |
---|
79 | |
---|
80 | * Sat Jun 28 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-2 |
---|
81 | - Tun the test suite with a pseudo-terminal |
---|
82 | |
---|
83 | * Fri Jun 27 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-1 |
---|
84 | - Specfile autogenerated by cpanspec 1.75. |
---|