8
0
forked from pool/perl-TryCatch

Compare commits

...

10 Commits

Author SHA256 Message Date
39206a034c Accepting request 591559 from devel:languages:perl
Fix build (forwarded request 588046 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/591559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-TryCatch?expand=0&rev=7
2018-03-28 08:32:58 +00:00
1d96c8054b Accepting request 588046 from home:bmwiedemann:branches:devel:languages:perl
Fix build

OBS-URL: https://build.opensuse.org/request/show/588046
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=10
2018-03-27 11:05:37 +00:00
Stephan Kulow
3c68992c2d Accepting request 177534 from devel:languages:perl
- updated to 1.003002, no changelog (forwarded request 177509 from coolo)

OBS-URL: https://build.opensuse.org/request/show/177534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-TryCatch?expand=0&rev=4
2013-06-06 10:57:57 +00:00
Stephan Kulow
453ed74f28 Accepting request 177509 from home:coolo:update-perl
- updated to 1.003002, no changelog

OBS-URL: https://build.opensuse.org/request/show/177509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=8
2013-06-04 15:35:51 +00:00
Stephan Kulow
5ad155e027 Accepting request 98368 from devel:languages:perl
new perl package

OBS-URL: https://build.opensuse.org/request/show/98368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-TryCatch?expand=0&rev=1
2012-01-09 10:17:01 +00:00
Stephan Kulow
f17614e61b regenerate
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=6
2011-12-28 11:57:11 +00:00
Stephan Kulow
25ce15d0bb 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-TryCatch?expand=0&rev=5
2010-12-03 14:54:54 +00:00
Stephan Kulow
59498bbf84 siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=4
2010-12-01 13:56:52 +00:00
Stephan Kulow
d0f4ee26f1 - remove /var/adm/perl-modules
- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=3
2010-11-29 19:00:25 +00:00
Pascal Bleser
568db528fe only run tests on >= 11.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TryCatch?expand=0&rev=2
2010-11-04 23:06:16 +00:00
4 changed files with 102 additions and 55 deletions

View File

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

3
TryCatch-1.003002.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sat Mar 17 05:22:04 UTC 2018 - bwiedemann@suse.com
- Fix build
-------------------------------------------------------------------
Tue Jun 4 15:26:53 UTC 2013 - coolo@suse.com
- updated to 1.003002, no changelog
-------------------------------------------------------------------
Wed Dec 1 13:35:55 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:31:25 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Thu Nov 4 22:56:04 UTC 2010 - pascal.bleser@opensuse.org

View File

@@ -1,79 +1,106 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# spec file for package perl-TryCatch
#
# Copyright (c) 2013 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-TryCatch
Version: 1.003000
Version: 1.003002
Release: 0
Summary: First Class try catch Semantics for Perl
Source: http://search.cpan.org/CPAN/authors/id/A/AS/ASH/TryCatch-%{version}.tar.gz
URL: http://search.cpan.org/dist/TryCatch
%define cpan_name TryCatch
Summary: first class try catch semantics for Perl, without source filters.
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
Url: http://search.cpan.org/dist/TryCatch/
Source: http://www.cpan.org/authors/id/A/AS/ASH/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: make
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Exception)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl-macros
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.12
BuildRequires: perl(B::Hooks::OP::Check) >= 0.18
BuildRequires: perl(ExtUtils::Depends) >= 0.302
BuildRequires: perl(B::Hooks::OP::PPAddr) >= 0.03
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(XSLoader)
BuildRequires: perl(Scope::Upper) >= 0.06
BuildRequires: perl(Parse::Method::Signatures) >= 1.003012
BuildRequires: perl(Sub::Exporter) >= 0.979
BuildRequires: perl(B::Hooks::EndOfScope) >= 0.08
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(Variable::Magic) >= 0.28
BuildRequires: perl(Devel::Declare) >= 0.005007
BuildRequires: perl(Moose)
Requires: perl(XSLoader)
Requires: perl(Scope::Upper) >= 0.06
Requires: perl(Parse::Method::Signatures) >= 1.003012
Requires: perl(Sub::Exporter) >= 0.979
Requires: perl(B::Hooks::EndOfScope) >= 0.08
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(Parse::Method::Signatures) >= 1.003012
BuildRequires: perl(Scope::Upper) >= 0.06
BuildRequires: perl(Sub::Exporter) >= 0.979
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Variable::Magic) >= 0.28
BuildRequires: perl(namespace::clean) >= 0.20
#BuildRequires: perl(Class::Throwable)
#BuildRequires: perl(CPANPLUS::Backend)
#BuildRequires: perl(Devel::Declare::Context::Simple)
#BuildRequires: perl(Devel::PartialDump)
#BuildRequires: perl(Exception::Class)
#BuildRequires: perl(File::Copy::Recursive)
#BuildRequires: perl(inc::Module::Install) >= 0.79
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::AutoInstall)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Moose::Util::TypeConstraints)
#BuildRequires: perl(MooseX::Types::Structured)
#BuildRequires: perl(NoType)
#BuildRequires: perl(NoVarName)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Path::Class)
#BuildRequires: perl(TryCatch)
#BuildRequires: perl(TryCatchTest)
#BuildRequires: perl(XML::SAX::Base)
#BuildRequires: perl(XML::SAX::Expat)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(B::Hooks::EndOfScope) >= 0.12
Requires: perl(B::Hooks::OP::Check) >= 0.18
Requires: perl(MooseX::Types)
Requires: perl(B::Hooks::OP::PPAddr) >= 0.03
Requires: perl(Variable::Magic) >= 0.28
Requires: perl(Devel::Declare) >= 0.005007
Requires: perl(Moose)
Requires: perl(MooseX::Types)
Requires: perl(Parse::Method::Signatures) >= 1.003012
Requires: perl(Scope::Upper) >= 0.06
Requires: perl(Sub::Exporter) >= 0.979
Requires: perl(Variable::Magic) >= 0.28
Requires: perl(namespace::clean) >= 0.20
%{perl_requires}
%description
This module aims to provide a nicer syntax and method to catch errors in
Perl, similar to what is found in other languages (such as Java, Python or
C++). The standard method of using "eval {}; if ($@) {}" is often prone to
subtle bugs, primarily that its far too easy to stomp on the error in
error handlers. And also eval/if isn't the nicest idiom.
C++). The standard method of using 'eval {}; if ($@) {}' is often prone to
subtle bugs, primarily that its far too easy to stomp on the error in error
handlers. And also eval/if isn't the nicest idiom.
%prep
%setup -q -n "TryCatch-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
PERL5LIB=. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%__rm "%{buildroot}%{perl_vendorarch}"/{bench,bench_ok}.pl
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorarch}/TryCatch.pm
%{perl_vendorarch}/auto/TryCatch
%doc %{perl_man3dir}/TryCatch.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes MYMETA.json MYMETA.yml README
%changelog