2010-09-12 11:51:15 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2013-09-09 17:45:25 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-09-12 11:51:15 +00:00
|
|
|
|
|
|
|
Name: perl-Term-Shell
|
2013-09-09 17:45:25 +00:00
|
|
|
Version: 0.04
|
2010-09-12 11:51:15 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple Command-Line Shell Framework
|
2013-09-09 17:45:25 +00:00
|
|
|
License: GPL-2.0+ or Artistic-1.0
|
2010-09-12 11:51:15 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-09-09 17:45:25 +00:00
|
|
|
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
|
2010-11-30 19:28:35 +00:00
|
|
|
%{perl_requires}
|
2010-09-12 11:51:15 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:51:45 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-09-09 17:45:25 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2010-09-12 11:51:15 +00:00
|
|
|
|
|
|
|
%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
|
2013-09-09 17:45:25 +00:00
|
|
|
%__perl ./Build.PL
|
|
|
|
./Build
|
2010-09-12 11:51:15 +00:00
|
|
|
|
|
|
|
%install
|
2013-09-09 17:45:25 +00:00
|
|
|
./Build pure_install \
|
|
|
|
--destdir "%{buildroot}" \
|
|
|
|
--installdirs vendor
|
|
|
|
|
2010-09-12 11:51:15 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
2013-09-09 17:45:25 +00:00
|
|
|
./Build test
|
2010-09-12 11:51:15 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
|
2013-09-09 17:45:25 +00:00
|
|
|
%changelog
|