Projects
openEuler:24.03:SP1:Everything:64G
perl-Syntax-Keyword-Try
_service:tar_scm:perl-Syntax-Keyword-Try.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:perl-Syntax-Keyword-Try.spec of Package perl-Syntax-Keyword-Try
Name: perl-Syntax-Keyword-Try Version: 0.29 Release: 1 Summary: try/catch/finally syntax for perl License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Syntax-Keyword-Try/ Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Syntax-Keyword-Try-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(XS::Parse::Keyword::Builder) >= 0.06 BuildRequires: perl(warnings) # Run-time BuildRequires: perl(:VERSION) >= 5.14 BuildRequires: perl(B) BuildRequires: perl(B::Deparse) BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(XSLoader) BuildRequires: perl(XS::Parse::Keyword) >= 0.06 # Tests BuildRequires: perl(overload) BuildRequires: perl(Test2::IPC) BuildRequires: perl(Test2::V0) BuildRequires: perl(threads) Requires: perl(XS::Parse::Keyword) >= 0.06 %description This module provides a syntax plugin that implements exception-handling semantics in a form familiar to users of other languages, being built on a block labeled with the try keyword, followed by at least one of a catch or finally block. %prep %setup -q -n Syntax-Keyword-Try-%{version} for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} rm %{buildroot}%{_libexecdir}/%{name}/t/99pod.t cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') ./Build test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Syntax* %{_mandir}/man3/* %{_libexecdir}/%{name} %changelog * Fri Sep 08 2023 chenchen <chen_aka_jan@163.com> - 0.29-1 - Upgrade to version 0.29 * Thu May 11 2023 xu_ping <707078654@qq.com> - 0.28-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2