SPECS: perl-Sys-Syscall.spec (NEW), perl-Danga-Socket.spec (NEW) -...

radek radek at pld-linux.org
Sun Sep 16 12:02:12 CEST 2007


Author: radek                        Date: Sun Sep 16 10:02:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-Sys-Syscall.spec (NONE -> 1.1)  (NEW), perl-Danga-Socket.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Sys-Syscall.spec
diff -u /dev/null SPECS/perl-Sys-Syscall.spec:1.1
--- /dev/null	Sun Sep 16 12:02:12 2007
+++ SPECS/perl-Sys-Syscall.spec	Sun Sep 16 12:02:07 2007
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Sys
+%define	pnam	Syscall
+Summary:	Sys::Syscall - access system calls that Perl doesn't normally provide access to
+#Summary(pl.UTF-8):	
+Name:		perl-Sys-Syscall
+Version:	0.22
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	a29b1ddd6fea9f7e11f0f82534d4204c
+URL:		http://search.cpan.org/dist/Sys-Syscall/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Use epoll, sendfile, from Perl.  Mostly Linux-only support now, but
+more syscalls/OSes planned for future.
+
+# %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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES
+%{perl_vendorlib}/Sys/*.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  2007/09/16 10:02:07  radek
+- new
+

================================================================
Index: SPECS/perl-Danga-Socket.spec
diff -u /dev/null SPECS/perl-Danga-Socket.spec:1.1
--- /dev/null	Sun Sep 16 12:02:12 2007
+++ SPECS/perl-Danga-Socket.spec	Sun Sep 16 12:02:07 2007
@@ -0,0 +1,76 @@
+# $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	Danga
+%define	pnam	Socket
+Summary:	Danga::Socket - Event loop and event-driven async socket base class
+#Summary(pl.UTF-8):	
+Name:		perl-Danga-Socket
+Version:	1.57
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Danga/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	094386c6ada4d8f4be40691897061f79
+URL:		http://search.cpan.org/dist/Danga-Socket/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires:	perl-Sys-Syscall
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is an abstract base class for objects backed by a socket which
+provides the basic framework for event-driven asynchronous IO,
+designed to be fast.  Danga::Socket is both a base class for objects,
+and an event loop.
+
+# %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
+%dir %{perl_vendorlib}/Danga
+%{perl_vendorlib}/Danga/*.pm
+%{_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  2007/09/16 10:02:07  radek
+- new
+
================================================================


More information about the pld-cvs-commit mailing list