2024-07-19 19:50:29 +00:00
committed by Git OBS Bridge
parent 5a9d27a6dd
commit f9cea4694b

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-CHI-Driver-Redis
#
# Copyright (c) 2019 SUSE LINUX 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
@@ -16,21 +16,22 @@
#
Name: perl-CHI-Driver-Redis
Version: 0.10
Release: 0
%define cpan_name CHI-Driver-Redis
Summary: Redis driver for CHI
Name: perl-CHI-Driver-Redis
Version: 0.100.0
Release: 0
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IB/IBURRELL/%{cpan_name}-%{version}.tar.gz
Summary: Redis driver for CHI
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IB/IBURRELL/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CHI) >= 0.36
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(Moo)
BuildRequires: perl(Redis) >= 1.901
BuildRequires: perl(Test::Class)
@@ -40,6 +41,9 @@ Requires: perl(CHI) >= 0.36
Requires: perl(Moo)
Requires: perl(Redis) >= 1.901
Requires: perl(URI)
Provides: perl(CHI::Driver::Redis) = %{version}
Provides: perl(CHI::Driver::Redis::t::CHIDriverTests)
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(Date::Parse)
@@ -55,11 +59,11 @@ my hope that if it is failing and the cache is not required for your work,
you can ignore its warnings.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%check
make test
@@ -70,7 +74,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE