From 15b40f446525a28c74bfe4b5df905f34d3c9c7e01c18e7c5c005944eec3a6417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 26 Feb 2025 13:52:34 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-Class-Factory-Util revision e9c89d7a6126ab996588bf9764a62aa9 --- perl-Class-Factory-Util.changes | 6 +++++ perl-Class-Factory-Util.spec | 44 +++++++++++++++------------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/perl-Class-Factory-Util.changes b/perl-Class-Factory-Util.changes index ff5037b..9190583 100644 --- a/perl-Class-Factory-Util.changes +++ b/perl-Class-Factory-Util.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 6 22:17:37 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Fri Nov 18 11:10:45 UTC 2011 - coolo@suse.com diff --git a/perl-Class-Factory-Util.spec b/perl-Class-Factory-Util.spec index 77af049..b452d60 100644 --- a/perl-Class-Factory-Util.spec +++ b/perl-Class-Factory-Util.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Class-Factory-Util # -# Copyright (c) 2011 SUSE LINUX Products 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,51 +12,47 @@ # 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/ # -# norootforbuild - -Name: perl-Class-Factory-Util %define cpan_name Class-Factory-Util +Name: perl-Class-Factory-Util +Version: 1.700.0 +Release: 0 +# 1.7 -> normalize -> 1.700.0 +%define cpan_version 1.7 +License: Artistic-1.0 OR GPL-1.0-or-later Summary: Provide utility methods for factory classes -Version: 1.7 -Release: 1 -License: GPL-1.0+ or Artistic-1.0 -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Class-Factory-Util/ -#Source: http://www.cpan.org/modules/by-module/Class/Class-Factory-Util-%{version}.tar.bz2 -Source: %{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl -BuildRequires: perl(Module::Build) BuildRequires: perl-macros +BuildRequires: perl(Module::Build) +Provides: perl(Class::Factory::Util) = %{version} +%undefine __perllib_provides +%{perl_requires} %description This module exports a method that is useful for factory classes. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes LICENSE README +%doc Changes README +%license LICENSE %changelog