Accepting request 295974 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295974 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
f07318a894
commit
5a42e961a8
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bb5b339b9f6ea257e993c96667e84e24e52dc3c63cb097c5128f1cdf4b556bb0
|
|
||||||
size 26938
|
|
3
Term-Shell-0.06.tar.gz
Normal file
3
Term-Shell-0.06.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:01e1250a14a05472ae25f30a31d6fcbeedcfc73f62fde84af736ab0ba074a49d
|
||||||
|
size 35774
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 13 19:25:06 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.06
|
||||||
|
see /usr/share/doc/packages/perl-Term-Shell/Changes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 09 17:11:30 UTC 2013 - pascal.bleser@opensuse.org
|
Mon Sep 09 17:11:30 UTC 2013 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
|
||||||
#
|
#
|
||||||
# spec file for package perl-Term-Shell
|
# spec file for package perl-Term-Shell
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,52 +17,62 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Term-Shell
|
Name: perl-Term-Shell
|
||||||
Version: 0.04
|
Version: 0.06
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple Command-Line Shell Framework
|
%define cpan_name Term-Shell
|
||||||
License: GPL-2.0+ or Artistic-1.0
|
Summary: A simple command-line shell framework.
|
||||||
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
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/
|
||||||
Url: http://search.cpan.org/dist/Term-Shell
|
Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl(Module::Build)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Term::Shell lets you write simple command-line shells. All the boring
|
Term::Shell lets you write simple command-line shells. All the boring
|
||||||
details like command-line parsing, terminal handling, and tab completion
|
details like command-line parsing, terminal handling, and tab completion
|
||||||
are handled for you.
|
are handled for you.
|
||||||
|
|
||||||
|
The base class comes with two commands pre-defined: exit and help.
|
||||||
|
|
||||||
|
To write a shell with an 'exec' command, do something like this:
|
||||||
|
|
||||||
|
package MyShell;
|
||||||
|
use base qw(Term::Shell); # or manually edit @MyShell::ISA.
|
||||||
|
|
||||||
|
sub run_exec {
|
||||||
|
my ($o, $cmd, @args) = @_;
|
||||||
|
if ($cmd ne $0) {
|
||||||
|
print "I'm sorry you're leaving us...\n";
|
||||||
|
}
|
||||||
|
exec $cmd, @args;
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
When Term::Shell needs to handle the 'exec' command, it will invoke this
|
||||||
|
method. That's all there is to it! You write handlers, and Term::Shell
|
||||||
|
handles the gory details.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Term-Shell-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl ./Build.PL
|
%{__perl} Build.PL installdirs=vendor
|
||||||
./Build
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
|
||||||
./Build pure_install \
|
|
||||||
--destdir "%{buildroot}" \
|
|
||||||
--installdirs vendor
|
|
||||||
|
|
||||||
%perl_process_packlist
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%clean
|
%install
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README examples
|
%doc Changes examples LICENSE README scripts
|
||||||
%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
|
%changelog
|
||||||
|
Reference in New Issue
Block a user