2022-05-17 08:33:52 +00:00
committed by Git OBS Bridge
parent 56d4ff5681
commit fac9326f07
3 changed files with 55 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Binary (Version 1.7)
# spec file for package perl-File-Binary
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,26 @@
# 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/
#
%define cpan_name File-Binary
Name: perl-File-Binary
Version: 1.7
Release: 1
License: CHECK(GPL+ or Artistic)
%define cpan_name File-Binary
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Binary file reading module
Url: http://search.cpan.org/dist/File-Binary/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::File) >= 1.14
BuildRequires: perl(IO::Scalar) >= 1.126
BuildRequires: perl(Test::More)
Requires: perl(IO::File) >= 1.14
Requires: perl(IO::Scalar) >= 1.126
Requires: perl(Test::More)
%{perl_requires}
%description
@@ -54,25 +51,22 @@ module for cleanliness sakes and also because the old interface was pretty
braindead.
%prep
%setup -q -n %{cpan_name}-%{version}
%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} %{?_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 README
%changelog