2024-07-14 18:03:55 +00:00
committed by Git OBS Bridge
parent fac9326f07
commit 5486cce598

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-File-Binary # spec file for package perl-File-Binary
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,22 @@
%define cpan_name File-Binary %define cpan_name File-Binary
Name: perl-File-Binary Name: perl-File-Binary
Version: 1.7 Version: 1.700.0
Release: 0 Release: 0
# 1.7 -> normalize -> 1.700.0
%define cpan_version 1.7
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Binary file reading module Summary: Binary file reading module
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(IO::File) >= 1.14 BuildRequires: perl(IO::File) >= 1.14
BuildRequires: perl(IO::Scalar) >= 1.126 BuildRequires: perl(IO::Scalar) >= 1.126.0
Requires: perl(IO::File) >= 1.14 Requires: perl(IO::File) >= 1.14
Requires: perl(IO::Scalar) >= 1.126 Requires: perl(IO::Scalar) >= 1.126.0
%{perl_requires} %{perl_requires}
%description %description
@@ -51,8 +53,9 @@ module for cleanliness sakes and also because the old interface was pretty
braindead. braindead.
%prep %prep
%autosetup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor