Compare commits

...

10 Commits

Author SHA256 Message Date
590ba708d1 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=12
2024-07-30 21:31:54 +00:00
991942e284 Accepting request 927279 from devel:languages:perl:autoupdate
- updated to 0.13
   see /usr/share/doc/packages/perl-Term-Shell/Changes
  0.13    2021-10-21
      - Fix "Discrepancy between distro and Shell.pm version number"
          - https://github.com/shlomif/Term-Shell/pull/4
          - Thanks to @EmilianoBruni .

OBS-URL: https://build.opensuse.org/request/show/927279
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=11
2021-10-26 12:46:56 +00:00
3454a7041d Accepting request 841884 from devel:languages:perl:autoupdate
- updated to 0.12
   see /usr/share/doc/packages/perl-Term-Shell/Changes
  0.12    2020-10-14
      - Rebuild for new dist.ini / weaver.ini / etc. deps

OBS-URL: https://build.opensuse.org/request/show/841884
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=10
2020-10-15 11:24:27 +00:00
Stephan Kulow
c90cbe2c3b Accepting request 699789 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/699789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=9
2019-05-05 09:16:30 +00:00
Lars Vogdt
0abf8754f2 Accepting request 660846 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/660846
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=8
2019-01-02 15:10:16 +00:00
Stephan Kulow
a694a05f43 Accepting request 397493 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/397493
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=7
2016-05-25 07:34:11 +00:00
Stephan Kulow
5a42e961a8 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
2015-04-14 05:20:35 +00:00
Pascal Bleser
f07318a894 0.04
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=5
2013-09-09 17:45:25 +00:00
Stephan Kulow
658f5d0a53 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=4
2010-12-03 14:51:45 +00:00
Stephan Kulow
1f52968470 siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=3
2010-11-30 19:28:35 +00:00
5 changed files with 196 additions and 36 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7a5cfa53edc065a836e012ce31fafc97be8c8630c06ffc59d4ae3f624ea0fb2d
size 20397

3
Term-Shell-0.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53a0bdb2656891c508a470d93cb7e1cfeab38eea9e5829560a7d8b5f600f6bf2
size 36338

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,97 @@
-------------------------------------------------------------------
Fri Oct 22 03:11:15 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.13
see /usr/share/doc/packages/perl-Term-Shell/Changes
0.13 2021-10-21
- Fix "Discrepancy between distro and Shell.pm version number"
- https://github.com/shlomif/Term-Shell/pull/4
- Thanks to @EmilianoBruni .
-------------------------------------------------------------------
Thu Oct 15 03:10:51 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 0.12
see /usr/share/doc/packages/perl-Term-Shell/Changes
0.12 2020-10-14
- Rebuild for new dist.ini / weaver.ini / etc. deps
-------------------------------------------------------------------
Wed May 1 05:33:14 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.11
see /usr/share/doc/packages/perl-Term-Shell/Changes
0.11 2019-04-30
- Apply https://github.com/shlomif/Term-Shell/pull/3
- Fix aliases.
- Add tidyall, TestCount, PerlCritic, PerlTidy checks.
-------------------------------------------------------------------
Sun Dec 23 06:29:00 UTC 2018 - Stephan Kulow <coolo@suse.com>
- updated to 0.10
see /usr/share/doc/packages/perl-Term-Shell/Changes
0.10 2018-12-22
- Convert dist.ini to @SHLOMIF .
- Add .travis.yml / Travis-CI
- https://github.com/shlomif/Term-Shell/pull/1
- Thanks to https://github.com/jluis
- Bump minimal required version of perl to 5.014.
- https://github.com/shlomif/supporting-older-perl5-releases/blob/master/about-supporting-older-perl5-releases.pod
-------------------------------------------------------------------
Mon May 23 12:51:57 UTC 2016 - coolo@suse.com
- updated to 0.09
see /usr/share/doc/packages/perl-Term-Shell/Changes
0.09 2016-04-13
- Fix the copyright holder, license and year in dist.ini/meta-data.
- It should be Neil Watkiss / Perl 5 / 2001
- https://rt.cpan.org/Ticket/Display.html?id=113735
- Thanks to KENTNL for the report.
0.08 2016-04-13
- Remove stray Build/_build artifacts from the distribution:
- https://rt.cpan.org/Ticket/Display.html?id=113730
- Thanks to KENTNL
- Fix the link to the bugtracker, add META.json, and supply a meta-data
"Provides" section.
- https://rt.cpan.org/Ticket/Display.html?id=113731
- Thanks to KENTNL
0.07 2015-12-30
- Convert to Dist-Zilla.
- Add scripts/tag-release.pl
- Skip a failing test file ( t/03catchsmry.t ) on Windows:
- https://rt.cpan.org/Ticket/Display.html?id=40771
- https://rt.cpan.org/Ticket/Display.html?id=110555
-------------------------------------------------------------------
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
- fix spec file header
- update copyright to SPDX
- update to 0.04:
* add an explicit version to Term::Shell::OnScopeLeave - to settle the PAUSE
indexer
- 0.03 had no user visible changes
-------------------------------------------------------------------
Tue Nov 30 19:20:48 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:31:11 UTC 2010 - coolo@novell.com

View File

@@ -1,51 +1,89 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# spec file for package perl-Term-Shell
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Term-Shell
Name: perl-Term-Shell
Version: 0.02
Version: 0.130.0
Release: 0
Summary: Simple Command-Line Shell Framework
Source: http://search.cpan.org/CPAN/authors/id/N/NE/NEILW/Term-Shell-%{version}.tar.gz
URL: http://search.cpan.org/dist/Term-Shell
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
# 0.13 -> normalize -> 0.130.0
%define cpan_version 0.13
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple command-line shell framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-macros
BuildRequires: perl(Getopt::Long) >= 2.36
BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Text::Autoformat)
Requires: perl(Getopt::Long) >= 2.36
Requires: perl(Term::ReadKey)
Requires: perl(Text::Autoformat)
Provides: perl(Term::Shell) = %{version}
Provides: perl(Term::Shell::OnScopeLeave) = %{version}
%undefine __perllib_provides
%{perl_requires}
%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.
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
%setup -q -n "Term-Shell-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
%__make test
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%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}
%files -f %{name}.files
%doc Changes examples README README.md
%license LICENSE
%changelog