# # spec file for package perl-File-Binary # # 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 # 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 File-Binary Name: perl-File-Binary Version: 1.7 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Binary file reading module 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 BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(IO::File) >= 1.14 BuildRequires: perl(IO::Scalar) >= 1.126 Requires: perl(IO::File) >= 1.14 Requires: perl(IO::Scalar) >= 1.126 %{perl_requires} %description *File::Binary* is a Binary file reading module, hence the name, and was originally used to write a suite of modules for manipulating Macromedia SWF files. However it's grown beyond that and now actually, err, works. And is generalised. And EVERYTHING! Yay! It has methods for reading and writing signed and unsigned 8, 16 and 32 bit integers, at some point in the future I'll figure out a way of putting in methods for >32bit integers nicely but until then, patches welcome. It hasn't retained backwards compatability with the old version of this module for cleanliness sakes and also because the old interface was pretty braindead. %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 %perl_gen_filelist %files -f %{name}.files %doc Changes README %changelog