3 %bcond_with tests # perform "make test" (require a working X connection)
5 %include /usr/lib/rpm/macros.perl
7 %define pnam ReadLine-Gnu
8 Summary: Term::ReadLine::Gnu Perl module
9 Summary(cs): Modul Term::ReadLine::Gnu pro Perl
10 Summary(da): Perlmodul Term::ReadLine::Gnu
11 Summary(de): Term::ReadLine::Gnu Perl Modul
12 Summary(es): Módulo de Perl Term::ReadLine::Gnu
13 Summary(fr): Module Perl Term::ReadLine::Gnu
14 Summary(it): Modulo di Perl Term::ReadLine::Gnu
15 Summary(ja): Term::ReadLine::Gnu Perl ¥â¥¸¥å¡¼¥ë
16 Summary(ko): Term::ReadLine::Gnu ÆÞ ¸ðÁÙ
17 Summary(nb): Perlmodul Term::ReadLine::Gnu
18 Summary(pl): Modu³ Perla Term::ReadLine::Gnu
19 Summary(pt): Módulo de Perl Term::ReadLine::Gnu
20 Summary(pt_BR): Módulo Perl Term::ReadLine::Gnu
21 Summary(ru): íÏÄÕÌØ ÄÌÑ Perl Term::ReadLine::Gnu
22 Summary(sv): Term::ReadLine::Gnu Perlmodul
23 Summary(uk): íÏÄÕÌØ ÄÌÑ Perl Term::ReadLine::Gnu
24 Summary(zh_CN): Term::ReadLine::Gnu Perl Ä£¿é
25 Name: perl-Term-ReadLine-Gnu
29 License: GPL v1+ or Artistic
30 Group: Development/Languages/Perl
31 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
32 # Source0-md5: 33c96145ee94576e10eb0f1fd1b613d0
33 Patch0: %{name}-paths.patch
34 BuildRequires: ncurses-devel >= 5.2
35 BuildRequires: perl-devel >= 1:5.8.0
36 BuildRequires: readline-devel >= 4.2
37 BuildRequires: rpm-perlprov >= 4.1-13
38 Provides: perl(Term::ReadLine::Gnu::XS)
39 Obsoletes: perl-Term-Readline-Gnu
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Perl Term::ReadLine::Gnu module.
45 This is an implementation of the interface to the GNU Readline
46 Library. This module gives you input line editing facility, input
47 history management facility, word completion facility, etc. It uses
48 the real GNU Readline Library. And this module has the interface with
49 the almost all variables and functions which are documented in the GNU
50 Readline/History Library. So you can program your custom editing
51 function, your custom completion function, and so on with Perl. This
52 may be useful for prototyping before programming with C.
55 Modu³ Perla Term::ReadLine::Gnu. Jest on implementacj± interfejsu do
56 biblioteki GNU Readline. Udostêpnia liniê wprowadzania tekstu z
57 mo¿liwo¶ci± edycji, zarz±dzania histori±, automatycznym dope³nianiem
58 itp. U¿ywa biblioteki GNU Readline, ma interfejs do prawie wszystkich
59 zmiennych i funkcji bibliotek Readline i History - mo¿na wiêc
60 oprogramowaæ w³asne funkcje edycji, dope³niania itp.
63 %setup -q -n %{pdir}-%{pnam}-%{version}
67 %{__perl} Makefile.PL \
70 OPTIMIZE="%{rpmcflags} -DPERL_POLLUTE"
72 %{?with_tests:%{__make} test}
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
79 install DESTDIR=$RPM_BUILD_ROOT
81 install eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
89 %dir %{perl_vendorarch}/Term/ReadLine
90 %{perl_vendorarch}/Term/ReadLine/Gnu*
91 %dir %{perl_vendorarch}/auto/Term/ReadLine
92 %dir %{perl_vendorarch}/auto/Term/ReadLine/Gnu
93 %attr(755,root,root) %{perl_vendorarch}/auto/Term/ReadLine/Gnu/*.so
94 %{perl_vendorarch}/auto/Term/ReadLine/Gnu/*.bs
95 # empty autosplit.ix, but requred
96 %dir %{perl_vendorarch}/auto/Term/ReadLine/Gnu/XS
97 %{perl_vendorarch}/auto/Term/ReadLine/Gnu/XS/autosplit.ix
99 %dir %{_examplesdir}/%{name}-%{version}
100 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*