Files
perl-Term-ShellUI/perl-Term-ShellUI.spec

58 lines
1.7 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
Name: perl-Term-ShellUI
Version: 0.9
Release: 0
Summary: Sophisticated Command Line User Interface
Source: http://search.cpan.org/CPAN/authors/id/B/BR/BRONSON/Term-ShellUI-%{version}.tar.gz
URL: http://search.cpan.org/dist/Term-ShellUI
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%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 "Term-ShellUI-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README Changes
%dir %{perl_vendorlib}/Term
%{perl_vendorlib}/Term/ShellUI.pm
%dir %{perl_vendorlib}/Text
%dir %{perl_vendorlib}/Text/Shellwords
%{perl_vendorlib}/Text/Shellwords/Cursor.pm
%doc %{perl_man3dir}/Term::ShellUI.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Text::Shellwords::Cursor.%{perl_man3ext}%{ext_man}