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

Revision 12173, 2.8 KB checked in by ara_t, 5 years ago (diff)

perl-Term-ReadLine?-Gnu: rebuild with readline-8.0 and ncurses-6.1

Line 
1Name:           perl-Term-ReadLine-Gnu
2Version:        1.26
3Release:        2%{?_dist_release}
4Summary:        Perl extension for the GNU Readline/History Library
5Summary(ja):    GNU Readline/History ライブラリのための Perl 拡張
6License:        GPL+ or Artistic
7Group:          Development/Libraries
8URL:            http://search.cpan.org/dist/Term-ReadLine-Gnu/
9Source0:        http://www.cpan.org/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-%{version}.tar.gz
10
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
12BuildRequires:  expect
13BuildRequires:  ncurses-devel
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%prep
22%setup -q -n Term-ReadLine-Gnu-%{version}
23
24%build
25# Fix permissions and shebang paths at one shot
26find . -type f -exec chmod 0664 '{}' \; \
27       -exec sed 's,^#! */usr/local,#!%{_prefix},' -i '{}' \;
28%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
29make %{?_smp_mflags}
30
31
32%install
33rm -rf $RPM_BUILD_ROOT
34
35make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
36
37find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
38find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
39find $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
46expect -c '
47        spawn make test
48        expect eof
49        exit [lindex [wait] 3]
50'
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55
56%files
57%defattr(-,root,root,-)
58%doc README
59%{_bindir}/perlsh
60%{perl_vendorarch}/auto/*
61%{perl_vendorarch}/Term*
62%{_mandir}/man1/perlsh.1*
63%{_mandir}/man3/*
64
65
66%changelog
67* Tue Sep 03 2019 Toshiaki Ara <ara_t@384.jp> 1.26-2
68- rebuild with readline-8.0 and ncurses-6.1
69
70* Sun Mar 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.26-1
71- new upstream release
72- built with readline 6.3
73
74* Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.24-1
75- updated to 1.24
76- dropt Patch0
77- built with perl 5.16.3
78
79* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.17a-2
80- rebuild with perl-5.12.3
81
82* Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17a-1
83- initial build for Vine Linux
84
85* Wed Jul 02 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-4
86- Remote the workaround introduced in previous change
87- Disable Visual Bell test
88
89* Tue Jul 01 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-3
90- Patch around rt#56500 perl bug hoping for better tomorrows
91
92* Sat Jun 28 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-2
93- Tun the test suite with a pseudo-terminal
94
95* Fri Jun 27 2008 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> 1.17a-1
96- Specfile autogenerated by cpanspec 1.75.
Note: See TracBrowser for help on using the repository browser.