2008-12-21 11:38:23 +00:00
|
|
|
#
|
2011-11-17 15:36:14 +00:00
|
|
|
# spec file for package perl-IO-Zlib
|
2008-12-21 11:38:23 +00:00
|
|
|
#
|
2024-04-06 12:48:39 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2008-12-21 11:38:23 +00:00
|
|
|
#
|
2011-11-17 15:36:14 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-10-14 09:44:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-12-21 11:38:23 +00:00
|
|
|
#
|
|
|
|
|
2011-11-17 15:36:14 +00:00
|
|
|
|
2023-01-04 15:55:24 +00:00
|
|
|
%define cpan_name IO-Zlib
|
2008-12-21 11:38:23 +00:00
|
|
|
Name: perl-IO-Zlib
|
2024-04-06 12:48:39 +00:00
|
|
|
Version: 1.150.0
|
2020-10-14 09:44:29 +00:00
|
|
|
Release: 0
|
2024-04-06 12:48:39 +00:00
|
|
|
# 1.15 -> normalize -> 1.150.0
|
|
|
|
%define cpan_version 1.15
|
2020-10-14 09:44:29 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-01-04 15:55:24 +00:00
|
|
|
Summary: IO:: style interface to L<Compress::Zlib>
|
2020-10-14 09:44:29 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-04-06 12:48:39 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMHUGHES/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:14:51 +02:00
|
|
|
Source100: README.md
|
2020-10-14 09:44:29 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Compress::Zlib) >= 2
|
|
|
|
Requires: perl(Compress::Zlib) >= 2
|
2024-04-06 12:48:39 +00:00
|
|
|
Provides: perl(IO::Zlib) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2010-12-03 14:39:00 +00:00
|
|
|
%{perl_requires}
|
2008-12-21 11:38:23 +00:00
|
|
|
|
|
|
|
%description
|
2020-10-14 09:44:29 +00:00
|
|
|
'IO::Zlib' provides an IO:: style interface to Compress::Zlib and hence to
|
|
|
|
gzip/zlib compressed files. It provides many of the same methods as the
|
|
|
|
IO::Handle interface.
|
2008-12-21 11:38:23 +00:00
|
|
|
|
2020-10-14 09:44:29 +00:00
|
|
|
Starting from IO::Zlib version 1.02, IO::Zlib can also use an external
|
|
|
|
_gzip_ command. The default behaviour is to try to use an external _gzip_
|
|
|
|
if no 'Compress::Zlib' can be loaded, unless explicitly disabled by
|
2008-12-21 11:38:23 +00:00
|
|
|
|
2020-10-14 09:44:29 +00:00
|
|
|
use IO::Zlib qw(:gzip_external 0);
|
2008-12-21 11:38:23 +00:00
|
|
|
|
2020-10-14 09:44:29 +00:00
|
|
|
If explicitly enabled by
|
|
|
|
|
|
|
|
use IO::Zlib qw(:gzip_external 1);
|
|
|
|
|
|
|
|
then the external _gzip_ is used *instead* of 'Compress::Zlib'.
|
2008-12-21 11:38:23 +00:00
|
|
|
|
|
|
|
%prep
|
2024-04-06 12:48:39 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2008-12-21 11:38:23 +00:00
|
|
|
|
|
|
|
%build
|
2020-10-14 09:44:29 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-01-04 15:55:24 +00:00
|
|
|
%make_build
|
2009-05-31 00:42:41 +00:00
|
|
|
|
|
|
|
%check
|
2008-12-21 11:38:23 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2009-05-31 00:42:41 +00:00
|
|
|
%perl_make_install
|
2008-12-21 11:38:23 +00:00
|
|
|
%perl_process_packlist
|
2020-10-14 09:44:29 +00:00
|
|
|
%perl_gen_filelist
|
2008-12-21 11:38:23 +00:00
|
|
|
|
2020-10-14 09:44:29 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc ChangeLog README.md
|
2008-12-21 11:38:23 +00:00
|
|
|
|
|
|
|
%changelog
|