Files
perl-Term-Shell/perl-Term-Shell.spec

71 lines
2.0 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Term-Shell
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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-Shell
Version: 0.04
Release: 0
Summary: Simple Command-Line Shell Framework
License: GPL-2.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Term-Shell-%{version}.tar.gz
Url: http://search.cpan.org/dist/Term-Shell
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
%description
Term::Shell lets you write simple command-line shells. All the boring
details like command-line parsing, terminal handling, and tab completion
are handled for you.
%prep
%setup -q -n "Term-Shell-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install \
--destdir "%{buildroot}" \
--installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README examples
%dir %{perl_vendorlib}/Term
%{perl_vendorlib}/Term/Shell.pm
%doc %{perl_vendorlib}/Term/Shell.pod
%dir %{perl_vendorarch}/auto/Term
%{perl_vendorarch}/auto/Term/Shell
%doc %{perl_man3dir}/Term::Shell.%{perl_man3ext}%{ext_man}
%changelog