forked from pool/perl-Benchmark-Timer
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
cf0c2c385a | |||
5d8d8cfa20 |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 21:21:03 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 17 05:05:06 UTC 2018 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Benchmark-Timer
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,27 +12,29 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Benchmark-Timer
|
||||
Version: 0.7112
|
||||
Release: 0
|
||||
#Upstream: GPL-2.0+
|
||||
%define cpan_name Benchmark-Timer
|
||||
Summary: Benchmarking with statistical confidence
|
||||
Name: perl-Benchmark-Timer
|
||||
Version: 0.711.200
|
||||
Release: 0
|
||||
# 0.7112 -> normalize -> 0.711.200
|
||||
%define cpan_version 0.7112
|
||||
#Upstream: GPL-2.0-or-later
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Benchmark-Timer/
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCOPPIT/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Benchmarking with statistical confidence
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCOPPIT/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
|
||||
BuildRequires: perl(Test::Compile)
|
||||
BuildRequires: perl(UNIVERSAL::require)
|
||||
BuildRequires: perl(URI::Escape)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -58,19 +60,20 @@ choose to skip any number of initial trials to cut down on initial case
|
||||
irregularities.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
# MANUAL BEGIN
|
||||
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
|
||||
sed -i -e 's,/usr/local/bin/perl,/usr/bin/perl,' delta.pl
|
||||
# MANUAL END
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -78,7 +81,6 @@ sed -i -e 's,/usr/local/bin/perl,/usr/bin/perl,' delta.pl
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc CHANGES README TODO
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user