diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..79bf6b9 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# baz.patch: PATCH-FIX-OPENSUSE +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +license: Perl +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-File-Binary.changes b/perl-File-Binary.changes index 8c4546a..2731799 100644 --- a/perl-File-Binary.changes +++ b/perl-File-Binary.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 17 08:33:30 UTC 2022 - Dirk Stoecker + +- fix build + ------------------------------------------------------------------- Thu Apr 14 08:33:21 UTC 2011 - coolo@opensuse.org diff --git a/perl-File-Binary.spec b/perl-File-Binary.spec index 3425e28..15f08e0 100644 --- a/perl-File-Binary.spec +++ b/perl-File-Binary.spec @@ -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