From 653ecb5ada73afebd2d682057ec72debe27ac2c6 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 8 Dec 2020 14:38:49 +0100 Subject: [PATCH] 0.9712 bump; Modernize spec --- .gitignore | 1 + perl-Graph.spec | 55 +++++++++++++++++++++++++++---------------------- sources | 2 +- 3 files changed, 32 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index a6e77ed..cbf4af7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ Graph-0.91.tar.gz /Graph-0.96.tar.gz /Graph-0.9704.tar.gz +/Graph-0.9712.tar.gz diff --git a/perl-Graph.spec b/perl-Graph.spec index 538db9a..b92c857 100644 --- a/perl-Graph.spec +++ b/perl-Graph.spec @@ -1,45 +1,52 @@ -%global cpan_version 0.9704 +%global cpan_version 0.9712 Name: perl-Graph # Keep 2-digit precision Version: %(echo '%{cpan_version}' | sed 's/\(\...\)\(.\)/\1.\2/') -Release: 15%{?dist} +Release: 1%{?dist} Summary: Perl module for dealing with graphs, the abstract data structures License: GPL+ or Artistic URL: https://metacpan.org/release/Graph -Source0: https://cpan.metacpan.org/authors/id/J/JH/JHI/Graph-%{cpan_version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/Graph-%{cpan_version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Getopt::Long) +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed # Run-time -BuildRequires: perl(AutoLoader) +BuildRequires: perl(B::Deparse) >= 0.61 BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exporter) +BuildRequires: perl(Heap::Fibonacci) >= 0.80 BuildRequires: perl(List::Util) BuildRequires: perl(overload) BuildRequires: perl(Safe) BuildRequires: perl(Scalar::Util) -BuildRequires: perl(strict) +BuildRequires: perl(Storable) >= 2.05 BuildRequires: perl(vars) -BuildRequires: perl(warnings) # Tests -BuildRequires: perl(B::Deparse) >= 0.61 +BuildRequires: perl(File::Spec) +BuildRequires: perl(Getopt::Long) BuildRequires: perl(lib) BuildRequires: perl(Math::Complex) -BuildRequires: perl(Storable) >= 2.05 -BuildRequires: perl(Test::More) +BuildRequires: perl(Test::More) >= 0.82 BuildRequires: perl(Text::Abbrev) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -Requires: perl(Carp) +# Optional tests +BuildRequires: perl(Devel::Cycle) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(Data::Dumper) +Requires: perl(Heap::Fibonacci) +Requires: perl(Safe) %description This is Graph, a Perl module for dealing with graphs, the abstract @@ -60,23 +67,17 @@ chmod 644 util/cover.sh %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} - +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -a \( -name .packlist \ - -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' - +%{make_install} +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +%{_fixperms} $RPM_BUILD_ROOT/* %check make test - - %files %doc README RELEASE DESIGN Changes TODO util %{perl_vendorlib}/* @@ -84,6 +85,10 @@ make test %changelog +* Tue Dec 08 2020 Jitka Plesnikova - 0.97.12-1 +- 0.9712 bump +- Modernize spec + * Tue Jul 28 2020 Fedora Release Engineering - 0.97.04-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 635fb34..42bb42e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1ab4e49420e56eeb1bc81d842aa8f3af Graph-0.9704.tar.gz +SHA512 (Graph-0.9712.tar.gz) = 9175e74ccc543578aabdae0eee7f1a0649197e5fad1252f2594f4d0c5e48d6a353460ad38dd63f4d5cdb3e21e19d1aa98f1be2f2253d438060d9069a246eb366