From ba4a5df05fa105396a4ee6afe0b40d6a88a513049ccff700e98357c5aedf33d9 Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Wed, 23 Jun 2021 09:20:52 +0000 Subject: [PATCH] Accepting request 901345 from home:pmonrealgonzalez:branches:devel:languages:perl - Fix autoupdate build: * Add required build and test dependencies * Update spec file and add cpanspec.yml OBS-URL: https://build.opensuse.org/request/show/901345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-SSLeay?expand=0&rev=50 --- cpanspec.yml | 40 ++++++++++++++++++++++++++++++++++++++ perl-Net-SSLeay.changes | 7 +++++++ perl-Net-SSLeay.spec | 43 ++++++++++++++--------------------------- 3 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..5b738e4 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,40 @@ +---- +#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: libopenssl-devel + BuildRequires: zlib-devel + BuildRequires: perl(Test::Exception) + BuildRequires: perl(Test::NoWarnings) + BuildRequires: perl(Test::Pod) >= 1.41 + BuildRequires: perl(Test::Warn) +#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: SUSE-NonFree +#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-Net-SSLeay.changes b/perl-Net-SSLeay.changes index 6fe9460..1fbba2b 100644 --- a/perl-Net-SSLeay.changes +++ b/perl-Net-SSLeay.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 22 12:31:18 UTC 2021 - Pedro Monreal + +- Fix autoupdate build: + * Add required build and test dependencies + * Update spec file and add cpanspec.yml + ------------------------------------------------------------------- Wed Jan 27 08:02:17 UTC 2021 - Dirk Müller diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec index dfc9160..2b0078d 100644 --- a/perl-Net-SSLeay.spec +++ b/perl-Net-SSLeay.spec @@ -22,50 +22,35 @@ Version: 1.90 Release: 0 Summary: Perl extension for using OpenSSL License: Artistic-2.0 -Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/C/CH/CHRISN/%{cpan_name}-%{version}.tar.gz -BuildRequires: libopenssl-devel -BuildRequires: openssl +Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros -BuildRequires: zlib-devel %{perl_requires} +# MANUAL BEGIN +BuildRequires: libopenssl-devel +BuildRequires: zlib-devel BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::NoWarnings) -BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(Test::Warn) +# MANUAL END %description -Net::SSLeay module contains perl bindings to openssl (http://www.openssl.org) library. -Net::SSLeay module basically comprise of: - High level functions for accessing web servers (by using HTTP/HTTPS) - Low level API (mostly mapped 1:1 to openssl's C functions) - Convenience functions (related to low level API but with more perl friendly interface) +This module provides Perl bindings for libssl (an SSL/TLS API) and +libcrypto (a cryptography API). %prep -%setup -q -n %{cpan_name}-%{version} - -# replace rest of /usr/local/bin/perl with /usr/bin/perl -for f in $(find . -type f -exec grep -l "%{_prefix}/local/bin/perl" {} \; ); do - sed -i -e "s@%{_prefix}/local/bin/perl@perl@g" $f -done -# delete .orig files created by patches -find . -type f -name "*.orig" -delete -# fix perm -pushd examples -chmod 0644 *.pl -popd +%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 OPTIMIZE="%{optflags} -Wall" < /dev/null -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build %check -%if ! 0%{?qemu_user_space_build} -make %{?_smp_mflags} test -%endif +make test %install %perl_make_install @@ -74,6 +59,6 @@ make %{?_smp_mflags} test %files -f %{name}.files %license LICENSE -%doc Changes Credits QuickRef README examples +%doc Changes Credits QuickRef README examples CONTRIBUTING.md %changelog