Projects
Eulaceura:Mainline
perl-POSIX-strptime
_service:obs_scm:perl-POSIX-strptime.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-POSIX-strptime.spec of Package perl-POSIX-strptime
Name: perl-POSIX-strptime Version: 0.13 Release: 1 Summary: Perl extension to the POSIX date parsing strptime(3) function License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/POSIX-strptime Source0: https://cpan.metacpan.org/authors/id/G/GO/GOZER/POSIX-strptime-%{version}.tar.gz BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Module::Signature) BuildRequires: perl(POSIX) BuildRequires: perl(Socket) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(vars) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) %{?perl_default_filter} %description Perl interface to strptime(3). %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n POSIX-strptime-%{version} # Help generators to recognize Perl scripts 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 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} find %{buildroot} -type f -name .packlist -delete # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} # Remove author tests rm -f %{buildroot}%{_libexecdir}/%{name}/t/00* 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 %{_fixperms} %{buildroot}/* %check make test %files %doc Changes %{perl_vendorarch}/auto/* %{perl_vendorarch}/POSIX* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Mon Apr 01 2024 konglidong <konglidong@uniontech.com> - 0.13-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