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

69 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Term-ShellUI
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Term-ShellUI
Version: 0.92
Release: 0
Summary: Sophisticated Command Line User Interface
License: MIT
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Term-ShellUI
Source: http://search.cpan.org/CPAN/authors/id/B/BR/BRONSON/Term-ShellUI-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
%{perl_requires}
%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
%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}
%changelog