SPECS: perl-POE-Component-Server-SimpleHTTP.spec (NEW) - initial, ...
agaran
agaran at pld-linux.org
Tue Jan 8 08:50:40 CET 2008
Author: agaran Date: Tue Jan 8 07:50:40 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial, builds but test fail here, rel 0.1 because need to know why it fails
---- Files affected:
SPECS:
perl-POE-Component-Server-SimpleHTTP.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-POE-Component-Server-SimpleHTTP.spec
diff -u /dev/null SPECS/perl-POE-Component-Server-SimpleHTTP.spec:1.1
--- /dev/null Tue Jan 8 08:50:40 2008
+++ SPECS/perl-POE-Component-Server-SimpleHTTP.spec Tue Jan 8 08:50:35 2008
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir POE
+%define pnam Component-Server-SimpleHTTP
+Summary: POE::Component::Server::SimpleHTTP - Perl extension to serve HTTP requests in POE.
+#Summary(pl):
+Name: perl-POE-Component-Server-SimpleHTTP
+Version: 1.30
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e45f32723485de6af929c7fd3bc55743
+Patch0: %{name}-nointeractivebuild.patch
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(HTTP::Date)
+BuildRequires: perl(HTTP::Request)
+BuildRequires: perl(HTTP::Response)
+BuildRequires: perl(POE) >= 0.38
+BuildRequires: perl(LWP::ConnCache)
+BuildRequires: perl(LWP::UserAgent)
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module makes serving up HTTP requests a breeze in POE.
+
+The hardest thing to understand in this module is the HANDLERS. That's it!
+
+The standard way to use this module is to do this:
+
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/POE/Component/Server/*.pm
+%{perl_vendorlib}/POE/Component/Server/SimpleHTTP
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%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 2008-01-08 07:50:35 agaran
+- initial, builds but test fail here, rel 0.1 because need to know why it fails
+
================================================================
More information about the pld-cvs-commit
mailing list