[packages/perl-Term-ShellUI: 1/3] initial version (by pldcpan) (required by kpcli)
sls
sls at pld-linux.org
Fri Jan 22 23:17:57 CET 2016
commit ae9381aeb62215e460b82cfedd7a5f8b78dc709f
Author: Szymon Siwek <sls at pld-linux.org>
Date: Sat Jan 16 23:27:26 2016 +0100
initial version (by pldcpan) (required by kpcli)
perl-Term-ShellUI.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
---
diff --git a/perl-Term-ShellUI.spec b/perl-Term-ShellUI.spec
new file mode 100644
index 0000000..a356590
--- /dev/null
+++ b/perl-Term-ShellUI.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Term
+%define pnam ShellUI
+%include /usr/lib/rpm/macros.perl
+Summary: Term::ShellUI - A fully-featured shell-like command line environment
+Name: perl-Term-ShellUI
+Version: 0.92
+Release: 1
+License: MIT
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Term/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: a7a76e73f193ff3a01bdf683bcbb677e
+URL: http://search.cpan.org/dist/Term-ShellUI/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Term::ShellUI uses the history and autocompletion features of Term::ReadLine
+to present a sophisticated command-line interface to the user. It tries to
+make every feature that one would expect to see in a fully interactive shell
+trivial to implement.
+You simply declare your command set and let ShellUI take
+care of the heavy lifting.
+
+This module was previously called Term::GDBUI.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Term/*.pm
+%{perl_vendorlib}/Text/Shellwords/Cursor.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Term-ShellUI.git/commitdiff/1b0b31431c96e414c6759d07e30892c2180a4059
More information about the pld-cvs-commit
mailing list