2024-07-19 20:02:17 +00:00
committed by Git OBS Bridge
parent b696cc1b53
commit 9ff840b466

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Cache-Adaptive (Version 0.03)
# spec file for package perl-Cache-Adaptive
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,31 +12,28 @@
# 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-Cache-Adaptive
Version: 0.03
Release: 1
License: GPL+ or Artistic
%define cpan_name Cache-Adaptive
Summary: A Cache Engine with Adaptive Lifetime Control
Url: http://search.cpan.org/dist/Cache-Adaptive/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/K/KA/KAZUHO/%{cpan_name}-%{version}.tar.gz
Name: perl-Cache-Adaptive
Version: 0.30.0
Release: 0
# 0.03 -> normalize -> 0.30.0
%define cpan_version 0.03
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Cache Engine with Adaptive Lifetime Control
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Cache::MemoryCache)
BuildRequires: perl(Class::Accessor::Fast) >= 0.3
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::Util) >= 1.18
BuildRequires: perl(Module::Install)
BuildRequires: perl(Time::HiRes) >= 1.65
Requires: perl(Class::Accessor::Fast) >= 0.3
Requires: perl(List::Util) >= 1.18
Requires: perl(Time::HiRes) >= 1.65
Provides: perl(Cache::Adaptive) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -46,25 +43,23 @@ process time for building the cache entry, etc., through the definition of
the 'check_load' callback.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog