# # Conditional build: # _with_tests - perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Term %define pnam ReadLine-Gnu Summary: Term::ReadLine::Gnu Perl module Summary(cs): Modul Term::ReadLine::Gnu pro Perl Summary(da): Perlmodul Term::ReadLine::Gnu Summary(de): Term::ReadLine::Gnu Perl Modul Summary(es): Módulo de Perl Term::ReadLine::Gnu Summary(fr): Module Perl Term::ReadLine::Gnu Summary(it): Modulo di Perl Term::ReadLine::Gnu Summary(ja): Term::ReadLine::Gnu Perl ĽâĽ¸ĽĺĄźĽë Summary(ko): Term::ReadLine::Gnu ĆŢ ¸đÁŮ Summary(no): Perlmodul Term::ReadLine::Gnu Summary(pl): Moduł Perla Term::ReadLine::Gnu Summary(pt): Módulo de Perl Term::ReadLine::Gnu Summary(pt_BR): Módulo Perl Term::ReadLine::Gnu Summary(ru): íĎÄŐĚŘ ÄĚŃ Perl Term::ReadLine::Gnu Summary(sv): Term::ReadLine::Gnu Perlmodul Summary(uk): íĎÄŐĚŘ ÄĚŃ Perl Term::ReadLine::Gnu Summary(zh_CN): Term::ReadLine::Gnu Perl ÄŁżé Name: perl-Term-ReadLine-Gnu Version: 1.13 Release: 2 License: distributable Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz Patch0: %{name}-paths.patch BuildRequires: ncurses-devel >= 5.2 BuildRequires: perl >= 5.6.1 BuildRequires: readline-devel >= 4.2 BuildRequires: rpm-perlprov >= 3.0.3-18 Provides: perl(Term::ReadLine::Gnu::XS) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: perl-Term-Readline-Gnu %description Perl Term::ReadLine::Gnu module. This is an implementation of the interface to the GNU Readline Library. This module gives you input line editing facility, input history management facility, word completion facility, etc. It uses the real GNU Readline Library. And this module has the interface with the almost all variables and functions which are documented in the GNU Readline/History Library. So you can program your custom editing function, your custom completion function, and so on with Perl. This may be useful for prototyping before programming with C. %description -l pl Moduł Perla Term::ReadLine::Gnu. Jest on implementacją interfejsu do biblioteki GNU Readline. Udostępnia linię wprowadzania tekstu z możliwością edycji, zarządzania historią, automatycznym dopełnianiem itp. Używa biblioteki GNU Readline, ma interfejs do prawie wszystkich zmiennych i funkcji bibliotek Readline i History - można więc oprogramować własne funkcje edycji, dopełniania itp. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %build perl Makefile.PL %{__make} OPTIMIZE="%{rpmcflags} -DPERL_POLLUTE" # tests require a working X connection %{?_with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install DESTDIR=$RPM_BUILD_ROOT rm -f eg/*.orig install eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README %dir %{perl_sitearch}/Term/ReadLine %{perl_sitearch}/Term/ReadLine/Gnu* %dir %{perl_sitearch}/auto/Term/ReadLine %dir %{perl_sitearch}/auto/Term/ReadLine/Gnu %attr(755,root,root) %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.so %{perl_sitearch}/auto/Term/ReadLine/Gnu/*.bs # empty autosplit.ix, but requred %dir %{perl_sitearch}/auto/Term/ReadLine/Gnu/XS %{perl_sitearch}/auto/Term/ReadLine/Gnu/XS/autosplit.ix %{_mandir}/man3/* %dir %{_examplesdir}/%{name}-%{version} %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*