2024-07-21 20:13:22 +00:00
committed by Git OBS Bridge
parent 3b3280b7f8
commit 8ec1500d47

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Cache (Version 0.16)
# spec file for package perl-File-Cache
#
# 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,22 +12,25 @@
# 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-File-Cache
Version: 0.16
Release: 1
License: CHECK(GPL+ or Artistic)
%define cpan_name File-Cache
Name: perl-File-Cache
Version: 0.160.0
Release: 0
# 0.16 -> normalize -> 0.160.0
%define cpan_version 0.16
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
Summary: Share data between processes via filesystem
Url: http://search.cpan.org/dist/File-Cache/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/D/DC/DCLINTON/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCLINTON/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(File::Cache) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -49,25 +52,22 @@ the _cache_depth_ value, which defaults to 0. Objects are stored in the
cache using a method which depends on the _persistence_mechanism_ value.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
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 COPYING CREDITS DISCLAIMER README TODO
%doc CHANGES CREDITS DISCLAIMER README TODO
%license COPYING
%changelog