SPECS: perl-POE-Session-Attribute.spec (NEW) - initial, 0.80, rel ...

agaran agaran at pld-linux.org
Tue Aug 1 20:18:29 CEST 2006


Author: agaran                       Date: Tue Aug  1 18:18:29 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, 0.80, rel 0.1, builds here

---- Files affected:
SPECS:
   perl-POE-Session-Attribute.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-POE-Session-Attribute.spec
diff -u /dev/null SPECS/perl-POE-Session-Attribute.spec:1.1
--- /dev/null	Tue Aug  1 20:18:29 2006
+++ SPECS/perl-POE-Session-Attribute.spec	Tue Aug  1 20:18:24 2006
@@ -0,0 +1,73 @@
+# $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
+%define		pdir	POE
+%define		pnam	Session-Attribute
+Summary:	perl(POE::Session::Attribute) - Use attributes to define your POE Sessions
+Name:		perl-POE-Session-Attribute
+Version:	0.80
+Release:	0.1
+# "same as perl 5.8.7 or any later perl 5"
+License:	GPLv1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	a7fda22ae8b59cac410c1b688541abd6
+URL:		http://search.cpan.org/dist/POE-Session-Attribute/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires:	perl-POE
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module's purpose is to save you some boilerplate code around
+POE::Session->create() method. Just inherit your class from
+POE::Session::Attribute and define some states using attributes.  Method
+"spawn()" in your package will be provided by POE::Session::Attribute (of
+course, you can override it, if any). 
+POE::Session::Attribute tries to be reasonably compatible with
+POE::Session::AttributeBased. As for now, all material test cases from
+POE::Session::AttributeBased distribution v0.03 run without errors with
+POE::Session::Attribute.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/POE/Session/Attribute.pm
+%{_mandir}/man3/*
+
+%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  2006/08/01 18:18:24  agaran
+- initial, 0.80, rel 0.1, builds here
+
================================================================


More information about the pld-cvs-commit mailing list