SPECS: Perlbal.spec (NEW) - new
radek
radek at pld-linux.org
Sun Sep 16 19:14:34 CEST 2007
Author: radek Date: Sun Sep 16 17:14:34 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
Perlbal.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/Perlbal.spec
diff -u /dev/null SPECS/Perlbal.spec:1.1
--- /dev/null Sun Sep 16 19:14:34 2007
+++ SPECS/Perlbal.spec Sun Sep 16 19:14:29 2007
@@ -0,0 +1,104 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without autodeps # don't BR packages needed only for resolving deps
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+Summary: Perlbal - Reverse-proxy load balancer and webserver
+#Summary(pl.UTF-8):
+Name: Perlbal
+Version: 1.59
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/B/BR/BRADFITZ/Perlbal-%{version}.tar.gz
+# Source0-md5: 7d098abd4434b70f13638cdff3e2383a
+Source1: perlbal.init
+Source2: perlbal.sysconfig
+Patch0: %{name}-no_use_lib.patch
+URL: http://www.danga.com/perlbal/
+Requires(post,preun): /sbin/chkconfig
+BuildRequires: rpmbuild(macros) >= 1.228
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires: perl-BSD-Resource
+BuildRequires: perl-Danga-Socket >= 1.44
+BuildRequires: perl-Sys-Syscall
+BuildRequires: perl-libwww
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautoreq 'perl(Perlbal.*)'
+
+%description
+Perlbal is a single-threaded event-based server supporting HTTP load
+balancing, web serving, and a mix of the two.
+
+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.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/perlbal
+install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/perlbal
+cp -r conf $RPM_BUILD_ROOT%{_sysconfdir}/perlbal
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add perlbal
+%service perlbal restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q perlbal stop
+ /sbin/chkconfig --del perlbal
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES doc conf
+%{perl_vendorlib}/*.pm
+%{perl_vendorlib}/Perlbal/
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man?/*
+%attr(754,root,root) /etc/rc.d/init.d/perlbal
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/perlbal
+%dir %{_sysconfdir}/perlbal
+%attr(740,root,root) %{_sysconfdir}/perlbal/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/09/16 17:14:29 radek
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list