source: projects/specs/trunk/p/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu-vl.spec @ 9167

Revision 9167, 2.6 KB checked in by inagaki, 9 years ago (diff)

2014-12-19 Ryoichi INAGAKI <ryo1@…>

  • perl-Authen-{Captcha, Radius, SASL}, perl-DBM-Deep, perl-DateTime?-Format-{HTTP, Mail}, perl-Dist-CheckConflicts?, perl-Eval-Closure, perl-Package-DeprecationManager?, perl-Regexp-Common, perl-Term-ReadLine?-Gnu, perl-Text-Template: updated
  • perl-DateTime?-Format-{IBeat, W3CDTF}, perl-Declare-Constraints-Simple, perl-Text-Markdown: rebuilt
  • perl-String-Random: NEW


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