b20968a
Name:           Perlbal
soporte 00bad94
Version:        1.80
e0ebe3d
Release:        3%{?dist}
Luis Bazan 252404f
Summary:        Reverse-proxy load balance and web-server
d70e1f7
License:        GPL+ or Artistic
b20968a
Group:          System Environment/Daemons
b20968a
URL:            http://search.cpan.org/dist/Perlbal/
soporte 00bad94
Source0:        http://www.laqee.unal.edu.co/CPAN/authors/id/D/DO/DORMANDO/Perlbal-1.80.tar.gz
b20968a
Source1:        perlbal.init
b20968a
BuildArch:      noarch
b20968a
b20968a
BuildRequires:    perl(ExtUtils::MakeMaker)
b20968a
BuildRequires:    perl(Test::More)
b20968a
BuildRequires:    perl(HTTP::Date)
b20968a
BuildRequires:    perl(HTTP::Response)
b20968a
BuildRequires:    perl(BSD::Resource)
b20968a
BuildRequires:    perl(Danga::Socket)
b20968a
BuildRequires:    perl(IO::AIO)
b606684
BuildRequires:    perl(LWP)
b20968a
b20968a
Requires:         perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
b20968a
Requires:         perl(IO::AIO)
b20968a
Requires:         perl(BSD::Resource)
b8c64fe
%if !%{defined perl_bootstrap}
9640130
Requires:         perl(Perlbal::XS::HTTPHeaders)
b8c64fe
%endif
b20968a
59ea10e
Requires(post):   chkconfig
59ea10e
Requires(preun):  chkconfig, initscripts
59ea10e
Requires(postun): chkconfig
b20968a
b20968a
%description
b20968a
Perlbal is a single-threaded event-based server supporting HTTP load 
b20968a
balancing, web serving, and a mix of the two. Perlbal can act as either a web 
b20968a
server or a reverse proxy. 
b20968a
b20968a
One of the defining things about Perlbal is that almost everything can be 
b20968a
configured or reconfigured on the fly without needing to restart the software. 
b20968a
A basic configuration file containing a management port enables you to easily 
b20968a
perform operations on a running instance of Perlbal. 
b20968a
b20968a
Perlbal can also be extended by means of per-service (and global) plugins that 
b20968a
can override many parts of request handling and behavior.
b20968a
b20968a
%prep
59ea10e
%setup -q
b20968a
b20968a
%build
b20968a
perl Makefile.PL INSTALLDIRS=vendor
b20968a
make %{?_smp_mflags}
b20968a
b20968a
%install
b20968a
make pure_install PERL_INSTALL_ROOT=%{buildroot}
b20968a
b20968a
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
b20968a
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
b20968a
b20968a
%{_fixperms} %{buildroot}/*
b20968a
b20968a
install -D -p -m 0644 conf/webserver.conf %{buildroot}%{_sysconfdir}/perlbal/perlbal.conf
59ea10e
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initddir}/perlbal
b20968a
mkdir -p doc/examples
b20968a
mv conf/* doc/examples
b20968a
b20968a
%check
b20968a
make test
b20968a
b20968a
%post
b20968a
/sbin/chkconfig --add perlbal
b20968a
b20968a
%preun
59ea10e
if [ $1 -eq 0 ]; then
b20968a
    /sbin/chkconfig --del perlbal
b20968a
    /sbin/service perlbal stop >/dev/null 2>&1 || :
b20968a
fi
b20968a
b20968a
%postun
b20968a
if [ $1 -ge 1 ] ; then
b20968a
    /sbin/service perlbal condrestart > /dev/null 2>&1 || :
b20968a
fi
b20968a
b20968a
%files
b20968a
%defattr(-,root,root,-)
b20968a
%dir %{_sysconfdir}/perlbal
b20968a
%config(noreplace) %{_sysconfdir}/perlbal/perlbal.conf
59ea10e
%{_initddir}/perlbal
b20968a
%doc CHANGES doc/*
b20968a
%{perl_vendorlib}/*
b20968a
%{_bindir}/perlbal
b20968a
%{_mandir}/man1/*
b20968a
%{_mandir}/man3/*
b20968a
b20968a
b20968a
%changelog
e0ebe3d
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.80-3
e0ebe3d
- Perl 5.16 re-rebuild of bootstrapped packages
e0ebe3d
84d0601
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1.80-2
84d0601
- Perl 5.16 rebuild
84d0601
soporte 00bad94
* Fri Jun 22 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-1
soporte 00bad94
- New upstream Version
soporte 00bad94
ca46586
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 1.79-6
ca46586
- Perl 5.16 rebuild
ca46586
6be75f2
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.79-5
6be75f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6be75f2
7ee9697
* Wed Jul 27 2011 Petr Pisar <ppisar@redhat.com> - 1.79-4
7ee9697
- Disable 5.14 perl_bootstrap
7ee9697
b8c64fe
* Tue Jul 26 2011 Petr Pisar <ppisar@redhat.com> - 1.79-3
b8c64fe
- Disable XS implementation to bootstrap
b8c64fe
Petr Sabata 463810f
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.79-2
Petr Sabata 463810f
- Perl mass rebuild
Petr Sabata 463810f
Luis Bazan 252404f
* Wed Jul 13 2011 Luis Bazan <bazanluis20@gmail.com> 1.79-1
Luis Bazan 252404f
- Upstream released new version: http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.79/CHANGES
Petr Sabata a6aeb16
aacaeb6
* Wed Feb 09 2011 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.78-1
aacaeb6
- Upstream released new version:
aacaeb6
  http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.78/CHANGES
aacaeb6
5313306
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.76-2
5313306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5313306
59ea10e
* Tue Jun 22 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.76-1
59ea10e
- Upstream released new version: http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.76/CHANGES
59ea10e
- Minor spec and initscript cleanup
59ea10e
5c9d255
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.75-2
5c9d255
- Mass rebuild with perl-5.12.0
5c9d255
048aa8d
* Tue Apr 06 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.75-1
048aa8d
- Upstream released new version
048aa8d
2fe35cc
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.70-5
2fe35cc
- rebuild against perl 5.10.1
2fe35cc
7745d27
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.70-4
7745d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7745d27
871dc76
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.70-3
871dc76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
871dc76
9640130
* Sun Oct 19 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.70-2
9640130
- Use Perlbal::XS::HTTPHeaders to speed up header parsing
9640130
2bbc415
* Sun Mar 09 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.70-1
2bbc415
- 1.70 (fixes build for perl 5.10.0)
2bbc415
8e6aba3
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.60-2
8e6aba3
- don't need patch, merged with 1.60
8e6aba3
2feb5e1
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.60-1
2feb5e1
- 1.60
2feb5e1
d70e1f7
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.59-2
d70e1f7
- rebuild for new perl
d70e1f7
b20968a
* Wed Jun 20 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.59-1
b20968a
- Upstream released new version
b20968a
- Received patch from upstream for failing buffered upload test (240693)
b20968a
* Sat May 12 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.58-1
b20968a
- Initial import
b20968a