]> git.pld-linux.org Git - packages/perl-Test-POE-Server-TCP.git/commitdiff
- new spec, created using pldcpan, ver 0.12, rel 1, builds here
authorMaciej Pijanka <agaran@pld-linux.org>
Thu, 27 Nov 2008 19:14:42 +0000 (19:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Test-POE-Server-TCP.spec -> 1.1

perl-Test-POE-Server-TCP.spec [new file with mode: 0644]

diff --git a/perl-Test-POE-Server-TCP.spec b/perl-Test-POE-Server-TCP.spec
new file mode 100644 (file)
index 0000000..21bf256
--- /dev/null
@@ -0,0 +1,71 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Test
+%define        pnam    POE-Server-TCP
+Summary:       Test::POE::Server::TCP - A POE Component providing TCP server services for test cases
+#Summary(pl.UTF-8):    
+Name:          perl-Test-POE-Server-TCP
+Version:       0.12
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 862c7d7bb01fcf34561facad81d27cfb
+# generic URL, check or change before uncommenting
+#URL:          http://search.cpan.org/dist/Test-POE-Server-TCP/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-POE
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::POE::Server::TCP is a POE component that provides a TCP server framework for inclusion in 
+client component test cases, instead of having to roll your own.
+
+Once registered with the component, a session will receive events related to client connects, disconnects,
+input and flushed output. Each of these events will refer to a unique client ID which may be used in 
+communication with the component when sending data to the client or disconnecting a client connection.
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%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
+
+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}/Test/POE/Server/*.pm
+%dir %{perl_vendorlib}/Test/POE/Server
+# or that one to perl-dirs or perl-POE?
+%dir %{perl_vendorlib}/Test/POE
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
This page took 0.063068 seconds and 4 git commands to generate.