8
0

Compare commits

...

4 Commits

2 changed files with 24 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 12 18:04:39 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 4 12:26:41 UTC 2024 - pgajdos@suse.com Mon Mar 4 12:26:41 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Cache-LRU # spec file for package perl-Cache-LRU
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,27 +12,30 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-Cache-LRU
Version: 0.04
Release: 0
%define cpan_name Cache-LRU %define cpan_name Cache-LRU
Summary: Simple, Fast Implementation of Lru Cache in Pure Perl Name: perl-Cache-LRU
License: Artistic-1.0 or GPL-1.0+ Version: 0.40.0
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Cache-LRU/ # 0.04 -> normalize -> 0.40.0
Source0: https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/%{cpan_name}-%{version}.tar.gz %define cpan_version 0.04
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple, fast implementation of LRU cache in pure perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
Patch0: perl526.patch Patch0: perl526.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires) BuildRequires: perl(Test::Requires)
Provides: perl(Cache::LRU) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -40,14 +43,14 @@ Cache::LRU is a simple, fast implementation of an in-memory LRU cache in
pure perl. pure perl.
%prep %prep
%autosetup -p1 -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -55,7 +58,6 @@ pure perl.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog