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

35
cpanspec.yml Normal file
View File

@@ -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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 17 08:33:30 UTC 2022 - Dirk Stoecker <opensuse@dstoecker.de>
- fix build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 14 08:33:21 UTC 2011 - coolo@opensuse.org Thu Apr 14 08:33:21 UTC 2011 - coolo@opensuse.org

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 # 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
@@ -12,29 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Name: perl-File-Binary
Version: 1.7 Version: 1.7
Release: 1 Release: 0
License: CHECK(GPL+ or Artistic) License: Artistic-1.0 OR GPL-1.0-or-later
%define cpan_name File-Binary
Summary: Binary file reading module Summary: Binary file reading module
Url: http://search.cpan.org/dist/File-Binary/ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz
Source: http://www.cpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::File) >= 1.14 BuildRequires: perl(IO::File) >= 1.14
BuildRequires: perl(IO::Scalar) >= 1.126 BuildRequires: perl(IO::Scalar) >= 1.126
BuildRequires: perl(Test::More)
Requires: perl(IO::File) >= 1.14 Requires: perl(IO::File) >= 1.14
Requires: perl(IO::Scalar) >= 1.126 Requires: perl(IO::Scalar) >= 1.126
Requires: perl(Test::More)
%{perl_requires} %{perl_requires}
%description %description
@@ -54,25 +51,22 @@ module for cleanliness sakes and also because the old interface was pretty
braindead. braindead.
%prep %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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog