From c28b18f99de61a502fb98a7f0b6bef1ac6f93bf4abc1f0437cd87517cbc38fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 27 Jul 2024 21:44:56 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perlbal?expand=0&rev=3 --- perl-Perlbal.spec | 88 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 70 insertions(+), 18 deletions(-) diff --git a/perl-Perlbal.spec b/perl-Perlbal.spec index 71467b5..a72ffb8 100644 --- a/perl-Perlbal.spec +++ b/perl-Perlbal.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Perlbal # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,25 @@ # 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/ # -Name: perl-Perlbal -Version: 1.80 -Release: 0 %define cpan_name Perlbal +Name: perl-Perlbal +Version: 1.800.0 +Release: 0 +# 1.80 -> normalize -> 1.800.0 +%define cpan_version 1.80 +License: Artistic-1.0 OR GPL-1.0-or-later Summary: Reverse-proxy load balancer and webserver -License: GPL-1.0+ or Artistic-1.0 -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Perlbal/ -Source: http://www.cpan.org/authors/id/D/DO/DORMANDO/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DO/DORMANDO/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(BSD::Resource) -BuildRequires: perl(Danga::Socket) >= 1.44 +BuildRequires: perl(Danga::Socket) >= 1.440 BuildRequires: perl(HTTP::Date) BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Response) @@ -38,28 +38,81 @@ BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Sys::Syscall) BuildRequires: perl(Test::More) >= 0.94 Requires: perl(BSD::Resource) -Requires: perl(Danga::Socket) >= 1.44 +Requires: perl(Danga::Socket) >= 1.440 Requires: perl(HTTP::Date) Requires: perl(HTTP::Request) Requires: perl(HTTP::Response) Requires: perl(LWP::UserAgent) Requires: perl(Sys::Syscall) Requires: perl(Test::More) >= 0.94 +Provides: perl(PalImg) +Provides: perl(PaletteModify) +Provides: perl(Perlbal) = %{version} +Provides: perl(Perlbal::AIO) +Provides: perl(Perlbal::BackendHTTP) +Provides: perl(Perlbal::Cache) = 1.0.0 +Provides: perl(Perlbal::ChunkedUploadState) +Provides: perl(Perlbal::ClientHTTP) +Provides: perl(Perlbal::ClientHTTPBase) +Provides: perl(Perlbal::ClientManage) +Provides: perl(Perlbal::ClientProxy) +Provides: perl(Perlbal::CommandContext) +Provides: perl(Perlbal::Fields) +Provides: perl(Perlbal::HTTPHeaders) +Provides: perl(Perlbal::ManageCommand) +Provides: perl(Perlbal::Plugin::AccessControl) +Provides: perl(Perlbal::Plugin::AutoRemoveLeadingDir) +Provides: perl(Perlbal::Plugin::Cgilike) +Provides: perl(Perlbal::Plugin::Cgilike::Request) +Provides: perl(Perlbal::Plugin::EchoService) +Provides: perl(Perlbal::Plugin::EchoService::Client) +Provides: perl(Perlbal::Plugin::FlvStreaming) +Provides: perl(Perlbal::Plugin::Highpri) +Provides: perl(Perlbal::Plugin::Include) +Provides: perl(Perlbal::Plugin::LazyCDN) +Provides: perl(Perlbal::Plugin::MaxContentLength) +Provides: perl(Perlbal::Plugin::NotModified) +Provides: perl(Perlbal::Plugin::Palimg) +Provides: perl(Perlbal::Plugin::Queues) +Provides: perl(Perlbal::Plugin::Redirect) +Provides: perl(Perlbal::Plugin::Stats) +Provides: perl(Perlbal::Plugin::Stats::Storage) +Provides: perl(Perlbal::Plugin::Throttle) = 1.200.0 +Provides: perl(Perlbal::Plugin::Throttle::Store) +Provides: perl(Perlbal::Plugin::Throttle::Store::Memcached) +Provides: perl(Perlbal::Plugin::Throttle::Store::Memory) +Provides: perl(Perlbal::Plugin::Vhosts) +Provides: perl(Perlbal::Plugin::Vpaths) +Provides: perl(Perlbal::Plugin::XFFExtras) +Provides: perl(Perlbal::Pool) +Provides: perl(Perlbal::ReproxyManager) +Provides: perl(Perlbal::Service) +Provides: perl(Perlbal::Socket) +Provides: perl(Perlbal::SocketSSL) +Provides: perl(Perlbal::SocketSSL2) +Provides: perl(Perlbal::TCPListener) +Provides: perl(Perlbal::Test) +Provides: perl(Perlbal::Test::WebClient) +Provides: perl(Perlbal::Test::WebServer) +Provides: perl(Perlbal::UploadListener) +Provides: perl(Perlbal::Util) +%undefine __perllib_provides %{perl_requires} %description Reverse-proxy load balancer and webserver %prep -%setup -q -n %{cpan_name}-%{version} -find . -type f -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{cpan_version} + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -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 @@ -67,7 +120,6 @@ find . -type f -print0 | xargs -0 chmod 644 %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc CHANGES CONTRIBUTING doc perlbal README %changelog