Package starman: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | Name: starman Version: 0.4014 Release: alt1 Serial: 1 Summary: High-performance preforking PSGI/Plack web server Group: Networking/WWW License: Perl Url: %CPAN Starman BuildArch: noarch Source0: %name-%version.tar Source1: %name.init Source2: %name.sysconfig Source3: %name.logrotate BuildRequires: perl-Plack perl-HTTP-Parser-XS perl-Net-Server perl-Module-Build-Tiny perl-Test-Requires perl-Data-Dump %add_findreq_skiplist */Plack/Handler/Starman.pm %description Starman is a PSGI perl web server that has unique features such as: * High Performance Uses the fast XS/C HTTP header parser * Preforking Spawns workers preforked like most high performance UNIX servers do. Starman also reaps dead children and automatically restarts the worker pool. * Signals Supports "HUP" for graceful restarts, and "TTIN"/"TTOU" to dynamically increase or decrease the number of worker processes. * Superdaemon aware Supports Server::Starter for hot deploy and graceful restarts. * Multiple interfaces and UNIX Domain Socket support Able to listen on multiple intefaces including UNIX sockets. * Small memory footprint Preloading the applications with "--preload-app" command line option enables copy-on-write friendly memory management. Also, the minimum memory usage Starman requires for the master process is 7MB and children (workers) is less than 3.0MB. * PSGI compatible Can run any PSGI applications and frameworks * HTTP/1.1 support Supports chunked requests and responses, keep-alive and pipeline requests. * UNIX only This server does not support Win32. %prep %setup -q %build %perl_vendor_build --install_path bindoc=%_man1dir %install %perl_vendor_install mkdir -p %buildroot/%_initdir install -m 755 %SOURCE1 %buildroot/%_initdir/%name mkdir -p %buildroot/%_sysconfdir/sysconfig/ install -m 644 %SOURCE2 %buildroot/%_sysconfdir/sysconfig/%name mkdir -p %buildroot/%_sysconfdir/logrotate.d/ install -m 644 %SOURCE3 %buildroot/%_sysconfdir/logrotate.d/%name mkdir -p %buildroot/var/log/%name %pre %_sbindir/groupadd -r -f _starman %_sbindir/useradd -r -g _starman -r -c "starman web server" -s /dev/null -d /dev/null -n _starman > /dev/null 2>&1 ||: %post %post_service %name %preun %preun_service %name %files %_bindir/%name %_man1dir/%name.1* %perl_vendor_privlib/Starman* %perl_vendor_privlib/HTTP/Server/PSGI/Net/Server/PreFork.pm %perl_vendor_privlib/Plack/Handler/Starman.pm %config(noreplace) %_sysconfdir/sysconfig/%name %_initdir/%name %_sysconfdir/logrotate.d/%name %attr(3770,root,_starman) /var/log/%name %doc Changes README.md %changelog * Thu Oct 15 2015 Igor Vlasenko <viy@altlinux.ru> 1:0.4014-alt1 - automated CPAN update * Wed Dec 17 2014 Igor Vlasenko <viy@altlinux.ru> 1:0.4011-alt1 - automated CPAN update * Fri Jul 04 2014 Igor Vlasenko <viy@altlinux.ru> 1:0.4009-alt1 - automated CPAN update * Mon Nov 19 2012 Eugene Prokopiev <enp@altlinux.ru> 1:0.3005-alt1 - New version 0.3005 - add --retry option for start-stop-daemon in initscript * Sat Oct 06 2012 Vladimir Lettiev <crux@altlinux.ru> 1:0.3003-alt1 - New version 0.3003 * Sat Jul 07 2012 Eugene Prokopiev <enp@altlinux.ru> 1:0.3001-alt1 - New version 0.3001 * Fri Feb 17 2012 Eugene Prokopiev <enp@altlinux.ru> 1:0.29_90-alt2 - add serial - add initscript and logrotate configuration * Fri Feb 17 2012 Eugene Prokopiev <enp@altlinux.ru> 0.29_90-alt1 - New version 0.29_90 * Thu Feb 16 2012 Eugene Prokopiev <enp@altlinux.ru> 0.2014-alt1 - New version 0.2014 * Thu Mar 03 2011 Vladimir Lettiev <crux@altlinux.ru> 0.2008-alt1 - New version 0.2008 * Thu Feb 10 2011 Vladimir Lettiev <crux@altlinux.ru> 0.2007-alt1 - initial build |