forked from pool/perl-IO-Compress
- updated to 2.101 see /usr/share/doc/packages/perl-IO-Compress/Changes 2.101 20 February 2021 * fix version numbers in meta files OBS-URL: https://build.opensuse.org/request/show/874801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Compress?expand=0&rev=30
67 lines
2.2 KiB
RPMSpec
67 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package perl-IO-Compress
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name IO-Compress
|
|
Name: perl-IO-Compress
|
|
Version: 2.101
|
|
Release: 0
|
|
Summary: IO Interface to compressed data files/buffers
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Compress::Raw::Bzip2) >= 2.101
|
|
BuildRequires: perl(Compress::Raw::Zlib) >= 2.101
|
|
Requires: perl(Compress::Raw::Bzip2) >= 2.101
|
|
Requires: perl(Compress::Raw::Zlib) >= 2.101
|
|
%{perl_requires}
|
|
|
|
%description
|
|
IO Interface to compressed data files/buffers
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
# MANUAL BEGIN
|
|
# Avoid file conflicts with perl core
|
|
mv %{buildroot}/usr/bin/streamzip %{buildroot}/usr/bin/streamzip-%{version}
|
|
mv %{buildroot}/usr/bin/zipdetails %{buildroot}/usr/bin/zipdetails-%{version}
|
|
mv %{buildroot}/usr/share/man/man1/streamzip.1 %{buildroot}/usr/share/man/man1/streamzip-%{version}.1
|
|
mv %{buildroot}/usr/share/man/man1/zipdetails.1 %{buildroot}/usr/share/man/man1/zipdetails-%{version}.1
|
|
# MANUAL END
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes examples README
|
|
|
|
%changelog
|