|
|
|
@@ -1,134 +1,94 @@
|
|
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
# norootforbuild
|
|
|
|
|
#
|
|
|
|
|
# spec file for package perl-Server-Control
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2020 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Server-Control
|
|
|
|
|
Version: 0.14
|
|
|
|
|
Version: 0.20
|
|
|
|
|
Release: 0
|
|
|
|
|
%define cpan_name Server-Control
|
|
|
|
|
Summary: Flexible apachectl style control for servers
|
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JS/JSWARTZ/Server-Control-%{version}.tar.gz
|
|
|
|
|
Patch1: perl-Server-Control-install_serverctlp.patch
|
|
|
|
|
URL: http://search.cpan.org/dist/Server-Control
|
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
License: Perl License
|
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
|
%{perl_requires}
|
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl(Test::Class)
|
|
|
|
|
BuildRequires: perl(Guard) >= 0.5
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
|
BuildRequires: perl(Net::Server)
|
|
|
|
|
BuildRequires: perl(Test::Log::Dispatch)
|
|
|
|
|
BuildRequires: perl(HTTP::Server::Simple) >= 0.28
|
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
BuildRequires: perl(Test::Most)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(Hash::MoreUtils)
|
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
|
BuildRequires: perl(Pod::Usage)
|
|
|
|
|
BuildRequires: perl(File::Which)
|
|
|
|
|
BuildRequires: perl(Apache::ConfigParser) >= 1.01
|
|
|
|
|
BuildRequires: perl(YAML::Any)
|
|
|
|
|
BuildRequires: perl(MooseX::StrictConstructor) >= 0.08
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(List::MoreUtils) >= 0.13
|
|
|
|
|
BuildRequires: perl(Moose) >= 0.66
|
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
|
BuildRequires: perl(File::Slurp) >= 9999.13
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
BuildRequires: perl(Log::Any::Adapter::Dispatch) >= 0.05
|
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
|
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(IO::Socket)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(List::MoreUtils) >= 0.13
|
|
|
|
|
BuildRequires: perl(Log::Any::Adapter::Dispatch) >= 0.05
|
|
|
|
|
BuildRequires: perl(Moose) >= 0.66
|
|
|
|
|
BuildRequires: perl(MooseX::StrictConstructor) >= 0.08
|
|
|
|
|
BuildRequires: perl(Net::Server)
|
|
|
|
|
BuildRequires: perl(Proc::ProcessTable) >= 0.39
|
|
|
|
|
BuildRequires: perl(Log::Any)
|
|
|
|
|
BuildRequires: perl-Log-Any-Adapter
|
|
|
|
|
BuildRequires: perl(Unix::Lsof) >= 0.0.9
|
|
|
|
|
BuildRequires: perl(MooseX::Traits) >= 0.07
|
|
|
|
|
Requires: perl(Hash::MoreUtils)
|
|
|
|
|
Requires: perl(Capture::Tiny)
|
|
|
|
|
Requires: perl(Pod::Usage)
|
|
|
|
|
Requires: perl(File::Which)
|
|
|
|
|
BuildRequires: perl(Test::Class)
|
|
|
|
|
BuildRequires: perl(Test::Log::Dispatch)
|
|
|
|
|
BuildRequires: perl(Test::Most)
|
|
|
|
|
BuildRequires: perl(YAML::Any)
|
|
|
|
|
Requires: perl(Apache::ConfigParser) >= 1.01
|
|
|
|
|
Requires: perl(YAML::Any)
|
|
|
|
|
Requires: perl(MooseX::StrictConstructor) >= 0.08
|
|
|
|
|
Requires: perl(File::Spec::Functions)
|
|
|
|
|
Requires: perl(List::MoreUtils) >= 0.13
|
|
|
|
|
Requires: perl(Moose) >= 0.66
|
|
|
|
|
Requires: perl(Capture::Tiny)
|
|
|
|
|
Requires: perl(File::Slurp) >= 9999.13
|
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
|
Requires: perl(Log::Any::Adapter::Dispatch) >= 0.05
|
|
|
|
|
Requires: perl(Time::HiRes)
|
|
|
|
|
Requires: perl(File::Which)
|
|
|
|
|
Requires: perl(Hash::MoreUtils)
|
|
|
|
|
Requires: perl(IPC::System::Simple) >= 1.18
|
|
|
|
|
Requires: perl(IO::Socket)
|
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
|
Requires: perl(List::MoreUtils) >= 0.13
|
|
|
|
|
Requires: perl(Log::Any::Adapter::Dispatch) >= 0.05
|
|
|
|
|
Requires: perl(Moose) >= 0.66
|
|
|
|
|
Requires: perl(MooseX::StrictConstructor) >= 0.08
|
|
|
|
|
Requires: perl(Proc::ProcessTable) >= 0.39
|
|
|
|
|
Requires: perl(Unix::Lsof) >= 0.0.9
|
|
|
|
|
Requires: perl(MooseX::Traits) >= 0.07
|
|
|
|
|
Requires: perl(YAML::Any)
|
|
|
|
|
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.
|
|
|
|
|
'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.
|
|
|
|
|
|
|
|
|
|
%package -n apachectlp
|
|
|
|
|
Summary: More featureful Replacement for apachectl
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n apachectlp
|
|
|
|
|
Apachectlp is a more featureful Perl-based replacement for apachectl.
|
|
|
|
|
|
|
|
|
|
%package -n serverctlp
|
|
|
|
|
Summary: Apachectl style controller for servers
|
|
|
|
|
Group: System/Management
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n serverctlp
|
|
|
|
|
Serverctlp is an apachectl style controller for servers.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n "Server-Control-%{version}"
|
|
|
|
|
%patch1
|
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
#very fragile %__make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%dir %{perl_vendorlib}/Server
|
|
|
|
|
%{perl_vendorlib}/Server/Control
|
|
|
|
|
%{perl_vendorlib}/Server/Control.pm
|
|
|
|
|
%dir %{perl_vendorarch}/auto/Server
|
|
|
|
|
%{perl_vendorarch}/auto/Server/Control
|
|
|
|
|
%doc %{perl_man3dir}/Server::Control.%{perl_man3ext}%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/Server::Control::*.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
|
|
%files -n apachectlp
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/apachectlp
|
|
|
|
|
%doc %{_mandir}/man1/apachectlp.1%{ext_man}
|
|
|
|
|
|
|
|
|
|
%files -n serverctlp
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/serverctlp
|
|
|
|
|
%doc %{_mandir}/man1/serverctlp.1%{ext_man}
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
|
%doc Changes NOTES README
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|