Files
perl-Perlbal/perl-Perlbal.spec
2025-08-12 18:16:27 +02:00

127 lines
4.6 KiB
RPMSpec

#
# spec file for package perl-Perlbal
#
# 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
# 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 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
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DO/DORMANDO/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(BSD::Resource)
BuildRequires: perl(Danga::Socket) >= 1.440
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Sys::Syscall)
BuildRequires: perl(Test::More) >= 0.94
Requires: perl(BSD::Resource)
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
%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_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGES CONTRIBUTING doc perlbal README
%changelog