# # spec file for package perl-Server-Control # # 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 Server-Control Name: perl-Server-Control Version: 0.200.0 Release: 0 # 0.20 -> normalize -> 0.200.0 %define cpan_version 0.20 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Flexible apachectl style control for servers URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Apache::ConfigParser) >= 1.10.0 BuildRequires: perl(Capture::Tiny) BuildRequires: perl(File::Slurp) >= 9999.13 BuildRequires: perl(File::Which) BuildRequires: perl(Guard) >= 0.5 BuildRequires: perl(HTTP::Server::Simple) >= 0.28 BuildRequires: perl(Hash::MoreUtils) BuildRequires: perl(IPC::System::Simple) >= 1.18 BuildRequires: perl(List::MoreUtils) >= 0.13 BuildRequires: perl(Log::Any::Adapter::Dispatch) >= 0.50.0 BuildRequires: perl(Moose) >= 0.66 BuildRequires: perl(MooseX::StrictConstructor) >= 0.08 BuildRequires: perl(Net::Server) BuildRequires: perl(Proc::ProcessTable) >= 0.39 BuildRequires: perl(Test::Class) BuildRequires: perl(Test::Log::Dispatch) BuildRequires: perl(Test::Most) BuildRequires: perl(YAML::Any) Requires: perl(Apache::ConfigParser) >= 1.10.0 Requires: perl(Capture::Tiny) Requires: perl(File::Slurp) >= 9999.13 Requires: perl(File::Which) Requires: perl(Hash::MoreUtils) Requires: perl(IPC::System::Simple) >= 1.18 Requires: perl(List::MoreUtils) >= 0.13 Requires: perl(Log::Any::Adapter::Dispatch) >= 0.50.0 Requires: perl(Moose) >= 0.66 Requires: perl(MooseX::StrictConstructor) >= 0.08 Requires: perl(Proc::ProcessTable) >= 0.39 Requires: perl(YAML::Any) Provides: perl(Server::Control) = %{version} Provides: perl(Server::Control::Apache) = %{version} Provides: perl(Server::Control::HTTPServerSimple) = %{version} Provides: perl(Server::Control::NetServer) = %{version} Provides: perl(Server::Control::Nginx) = %{version} Provides: perl(Server::Control::Starman) = %{version} Provides: perl(Server::Control::Test::PoliteApache) Provides: perl(Server::Control::Util) Provides: perl(Server::Control::t::Apache) Provides: perl(Server::Control::t::Base) Provides: perl(Server::Control::t::HTTPServerSimple) Provides: perl(Server::Control::t::NetServer) Provides: perl(Server::Control::t::Sanity) Provides: perl(Server::Control::t::Starman) Provides: perl(Server::Control::t::Util) %undefine __perllib_provides Recommends: perl(MooseX::Traits) >= 0.07 Recommends: perl(Unix::Lsof) >= 0.0.9 %{perl_requires} %description 'Server::Control' allows you to control servers in the spirit of apachectl, where a server is any background process which listens to a port and has a pid file. It is designed to be subclassed for different types of servers. The original motivation was to eliminate all those little annoyances that can occur when starting and stopping a server doesn't quite go right. %prep %autosetup -n %{cpan_name}-%{cpan_version} %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 NOTES README %license LICENSE %changelog