]> git.pld-linux.org Git - packages/perl-Term-ReadLine-Gnu.git/blob - perl-Term-ReadLine-Gnu.spec
cfc09fa4877ebd9ff8e119122393c6d032ce5687
[packages/perl-Term-ReadLine-Gnu.git] / perl-Term-ReadLine-Gnu.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define pdir    Term
3 %define pnam    ReadLine-Gnu
4 Summary:        Perl Term::ReadLine::Gnu module
5 Summary(pl):    Modu³ Perla Term::ReadLine::Gnu
6 Name:           perl-Term-ReadLine-Gnu
7 Version:        1.12
8 Release:        2
9 License:        distributable
10 Group:          Development/Languages/Perl
11 Source0:        ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 Patch0:         %{name}-paths.patch
13 BuildRequires:  ncurses-devel >= 5.2
14 BuildRequires:  perl >= 5.6.1
15 BuildRequires:  readline-devel >= 4.2
16 BuildRequires:  rpm-perlprov >= 3.0.3-18
17 Provides:       perl(Term::ReadLine::Gnu::XS)
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      perl-Term-Readline-Gnu
20
21 %description
22 Perl Term::ReadLine::Gnu module.
23
24 This is an implementation of the interface to the GNU Readline
25 Library. This module gives you input line editing facility, input
26 history management facility, word completion facility, etc. It uses
27 the real GNU Readline Library. And this module has the interface with
28 the almost all variables and functions which are documented in the GNU
29 Readline/History Library. So you can program your custom editing
30 function, your custom completion function, and so on with Perl. This
31 may be useful for prototyping before programming with C.
32
33 %description -l pl
34 Modu³ Perla Term::ReadLine::Gnu. Jest on implementacj± interfejsu do
35 biblioteki GNU Readline. Udostêpnia liniê wprowadzania tekstu z
36 mo¿liwo¶ci± edycji, zarz±dzania histori±, automatycznym dope³nianiem
37 itp. U¿ywa biblioteki GNU Readline, ma interfejs do prawie wszystkich
38 zmiennych i funkcji bibliotek Readline i History - mo¿na wiêc
39 oprogramowaæ w³asne funkcje edycji, dope³niania itp.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %patch -p0
44
45 %build
46 perl Makefile.PL
47 %{__make} OPTIMIZE="%{rpmcflags} -DPERL_POLLUTE"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 install eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %dir %{perl_sitearch}/Term/ReadLine
64 %{perl_sitearch}/Term/ReadLine/Gnu*
65 %dir %{perl_sitearch}/auto/Term/ReadLine
66 %dir %{perl_sitearch}/auto/Term/ReadLine/Gnu
67 %attr(755,root,root) %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.so
68 %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.bs
69 %{perl_sitearch}/auto/Term/ReadLine/Gnu/XS
70 %{_mandir}/man3/*
71 %{_examplesdir}/%{name}-%{version}
This page took 0.021914 seconds and 2 git commands to generate.