]> git.pld-linux.org Git - packages/perl-Term-ReadLine-Gnu.git/blob - perl-Term-ReadLine-Gnu.spec
- release 4: do not place *.orig files in examples.
[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:        4
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 %patch0 -p1
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 rm -f eg/*.orig
56 install eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README
64 %dir %{perl_sitearch}/Term/ReadLine
65 %{perl_sitearch}/Term/ReadLine/Gnu*
66 %dir %{perl_sitearch}/auto/Term/ReadLine
67 %dir %{perl_sitearch}/auto/Term/ReadLine/Gnu
68 %attr(755,root,root) %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.so
69 %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.bs
70 %{perl_sitearch}/auto/Term/ReadLine/Gnu/XS
71 %{_mandir}/man3/*
72 %{_examplesdir}/%{name}-%{version}
This page took 0.027811 seconds and 3 git commands to generate.