Perlbal/Perlbal.spec

177 lines
5.3 KiB
RPMSpec

Name: Perlbal
Version: 1.80
Release: 12%{?dist}
Summary: Reverse-proxy load balancer and webserver
License: GPL+ or Artistic
Group: System Environment/Daemons
URL: http://search.cpan.org/dist/Perlbal/
Source0: http://www.laqee.unal.edu.co/CPAN/authors/id/D/DO/DORMANDO/%{name}-%{version}.tar.gz
Source1: perlbal.init
Patch0: Perlbal-1.80-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(BSD::Resource)
BuildRequires: perl(Danga::Socket)
BuildRequires: perl(IO::AIO)
BuildRequires: perl(Net::Netmask)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(BSD::Resource)
Requires: perl(IO::AIO)
Requires: perl(Net::Netmask)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
%description
Perlbal is a single-threaded event-based server supporting HTTP load
balancing, web serving, and a mix of the two. Perlbal can act as either a web
server or a reverse proxy.
One of the defining things about Perlbal is that almost everything can be
configured or reconfigured on the fly without needing to restart the software.
A basic configuration file containing a management port enables you to easily
perform operations on a running instance of Perlbal.
Perlbal can also be extended by means of per-service (and global) plugins that
can override many parts of request handling and behavior.
%prep
%setup -q -n Perlbal-%{version}
# Avoid the need for Test::More ≥ 0.94
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
install -D -p -m 0644 conf/webserver.conf %{buildroot}%{_sysconfdir}/perlbal/perlbal.conf
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/perlbal
mkdir -p doc/examples
mv conf/* doc/examples
#%check
#make test
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add perlbal
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del perlbal
/sbin/service perlbal stop >/dev/null 2>&1 || :
fi
%postun
if [ $1 -ge 1 ] ; then
/sbin/service perlbal condrestart > /dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/perlbal
%config(noreplace) %{_sysconfdir}/perlbal/perlbal.conf
%{_initrddir}/perlbal
%doc CHANGES doc/*
%{perl_vendorlib}/*
%{_bindir}/perlbal
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Wed Mar 05 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-12
- fix unresolves dependency
* Thu Feb 27 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-11
- add iff defined bootstrap
* Thu Feb 27 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-10
- fix bz#1069711
* Thu Feb 20 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-9
- fix patch
* Thu Feb 06 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-8
- add patch test more
* Mon Feb 03 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-7
- change check
- fix dependecy
* Mon Feb 03 2014 Luis Bazan <lbazan@fedoraproject.org> - 1.80-6
- Build in el6
* Thu Sep 13 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-5
- Requires perl Test More
* Thu Sep 13 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-4
- Danga Socket is stable now
* Wed Aug 01 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-3
- enable BuildRequires danga-Socket
* Fri Jun 22 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-2
- remove buildrequire
* Fri Jun 22 2012 Luis Bazan <lbazan@fedoraproject.org> - 1.80-1
- New Upstream Version
* Wed Jul 20 2011 Luis Bazan <lbazan@bakertillypanama.com> - 1.79-2
- rebuilt
* Wed Jul 13 2011 Luis Bazan <bazanluis20@gmail.com> 1.79-1
- Upstream released new version: http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.79/CHANGES
* Tue Apr 06 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.75-1
- Upstream released new version
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.70-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.70-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Oct 19 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.70-2
- Use Perlbal::XS::HTTPHeaders to speed up header parsing
* Sun Mar 09 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.70-1
- 1.70 (fixes build for perl 5.10.0)
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.60-2
- don't need patch, merged with 1.60
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.60-1
- 1.60
* Thu Feb 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.59-2
- rebuild for new perl
* Wed Jun 20 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.59-1
- Upstream released new version
- Received patch from upstream for failing buffered upload test (240693)
* Sat May 12 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.58-1
- Initial import