Projects
Eulaceura:Factory
perl-multidimensional
_service:obs_scm:perl-multidimensional.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-multidimensional.spec of Package perl-multidimensional
Name: perl-multidimensional Version: 0.014 Release: 1 Summary: Disables multidimensional array emulation License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/multidimensional Source0: https://cpan.metacpan.org/authors/id/I/IL/ILMARI/multidimensional-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.1 # B::Hooks::OP::Check is examined by ExtUtils::Depends in Makefile.PL BuildRequires: perl(B::Hooks::OP::Check) >= 0.19 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(if) # Lexical::SealRequireHints not used on Perl >= 5.12 BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(File::Spec) BuildRequires: perl(lib) BuildRequires: perl(Test::More) >= 0.88 # Optional tests: # CPAN::Meta not useful # CPAN::Meta::Prereqs not useful %{?perl_default_filter} # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$ # Remove private modules %global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(MyTest\\) %description Perl's multidimensional array emulation stems from the days before the language had references, but these days it mostly serves to bite you when you typo a hash slice by using the $ sigil instead of @. This module lexically makes using multidimensional array emulation a fatal error at compile time. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Test::More) >= 0.88 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n multidimensional-%{version} # Fix shebangs for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh unset AUTHOR_TESTING cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check unset AUTHOR_TESTING export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/multidimensional* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Apr 12 2024 lifeifei <lifeifei@kylinos.cn> - 0.014-1 - Package init
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