Sync from SUSE:SLFO:Main perl-Class-Factory-Util revision e9c89d7a6126ab996588bf9764a62aa9

This commit is contained in:
Adrian Schröter 2025-02-26 13:52:34 +01:00
parent dd15a02404
commit 15b40f4465
2 changed files with 26 additions and 24 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 6 22:17:37 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Fri Nov 18 11:10:45 UTC 2011 - coolo@suse.com

View File

@ -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