source: projects/specs/branches/6/p/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu-vl.spec @ 3739

Revision 3739, 2.5 KB checked in by Takemikaduchi, 13 years ago (diff)

rebuild with perl-5.12.3

Line 
1Name:           perl-Term-ReadLine-Gnu
2Version:        1.17a
3Release:        2%{?_dist_release}
4Summary:        Perl extension for the GNU Readline/History Library
5License:        GPL+ or Artistic
6Group:          Development/Libraries
7URL:            http://search.cpan.org/dist/Term-ReadLine-Gnu/
8Source0:        http://www.cpan.org/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-%{version}.tar.gz
9Patch0:         perl-Term-ReadLine-Gnu-1.17-vbtest.patch
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11BuildRequires:  perl(ExtUtils::MakeMaker)
12BuildRequires:  ncurses-devel
13BuildRequires:  readline-devel >= 2.1
14BuildRequires:  perl >= 5.7
15BuildRequires:  expect
16Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
17
18
19%description
20An 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
30find . -type f -exec chmod 0664 '{}' \; \
31       -exec sed 's,^#! */usr/local,#!%{_prefix},' -i '{}' \;
32%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
33make %{?_smp_mflags}
34
35
36%install
37rm -rf $RPM_BUILD_ROOT
38
39make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
40
41find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
42find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
43find $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
50expect -c '
51        spawn make test
52        expect eof
53        exit [lindex [wait] 3]
54'
55
56
57%clean
58rm -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* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.17a-2
71- rebuild with perl-5.12.3
72
73* Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17a-1
74- initial build for Vine Linux
75
76* Wed Jul 02 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-4
77- Remote the workaround introduced in previous change
78- Disable Visual Bell test
79
80* Tue Jul 01 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-3
81- Patch around rt#56500 perl bug hoping for better tomorrows
82
83* Sat Jun 28 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-2
84- Tun the test suite with a pseudo-terminal
85
86* Fri Jun 27 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-1
87- Specfile autogenerated by cpanspec 1.75.
Note: See TracBrowser for help on using the repository browser.