forked from pool/perl-Archive-Zip
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
87442dc67d | |||
bc69132a6f |
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 12 17:23:46 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 13 03:07:23 UTC 2020 - <timueller+perl@suse.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Archive-Zip
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LINUX 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
|
||||
@@ -16,23 +16,36 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Archive-Zip
|
||||
Version: 1.68
|
||||
Release: 0
|
||||
%define cpan_name Archive-Zip
|
||||
Summary: Provide an interface to ZIP archive files
|
||||
Name: perl-Archive-Zip
|
||||
Version: 1.680.0
|
||||
Release: 0
|
||||
# 1.68 -> normalize -> 1.680.0
|
||||
%define cpan_version 1.68
|
||||
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/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Provide an interface to ZIP archive files
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Compress::Raw::Zlib) >= 2.017
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
Requires: perl(Compress::Raw::Zlib) >= 2.017
|
||||
Provides: perl(Archive::Zip) = %{version}
|
||||
Provides: perl(Archive::Zip::Archive) = %{version}
|
||||
Provides: perl(Archive::Zip::BufferedFileHandle) = %{version}
|
||||
Provides: perl(Archive::Zip::DirectoryMember) = %{version}
|
||||
Provides: perl(Archive::Zip::FileMember) = %{version}
|
||||
Provides: perl(Archive::Zip::Member) = %{version}
|
||||
Provides: perl(Archive::Zip::MemberRead) = %{version}
|
||||
Provides: perl(Archive::Zip::MockFileHandle) = %{version}
|
||||
Provides: perl(Archive::Zip::NewFileMember) = %{version}
|
||||
Provides: perl(Archive::Zip::StringMember) = %{version}
|
||||
Provides: perl(Archive::Zip::Tree) = %{version}
|
||||
Provides: perl(Archive::Zip::ZipFileMember) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -57,12 +70,13 @@ One can use Archive::Zip::MemberRead to read the zip file archive members
|
||||
as if they were files.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
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}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -73,7 +87,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples README.md
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user