SPECS: perl-perlipq.spec (NEW), perl-Tree-Binary.spec (NEW) - new

radek radek at pld-linux.org
Wed Aug 6 13:11:32 CEST 2008


Author: radek                        Date: Wed Aug  6 11:11:32 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-perlipq.spec (NONE -> 1.1)  (NEW), perl-Tree-Binary.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-perlipq.spec
diff -u /dev/null SPECS/perl-perlipq.spec:1.1
--- /dev/null	Wed Aug  6 13:11:32 2008
+++ SPECS/perl-perlipq.spec	Wed Aug  6 13:11:26 2008
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	perlipq
+Summary:	IPTables::IPv4::IPQueue − Perl extension for libipq
+#Summary(pl.UTF-8):	
+Name:		perl-perlipq
+Version:	1.25
+Release:	1
+License:	GPL v2+
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/J/JM/JMORRIS/perlipq-1.25.tar.gz
+# Source0-md5:	212b66e26a80fb9e474b0d9c8c683c2e
+URL:		http://search.cpan.org/dist/perlipq/
+BuildRequires:	iptables-devel
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Perlipq (IPTables::IPv4::IPQueue) is a Perl extension for iptables
+userspace packet queuing via libipq.
+
+Packets may be selected from the stack via the iptables QUEUE target and
+passed to userspace.  Perlipq allows these packets to be manipulated in
+Perl and passed back to the stack.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"IPTables::IPv4::IPQueue", LIBS=>"-lipq")' \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%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 *.pl
+%{perl_vendorarch}/IPTables/IPv4/*.pm
+%dir %{perl_vendorarch}/auto/IPTables/IPv4/IPQueue
+%{perl_vendorarch}/auto/IPTables/IPv4/IPQueue/*.ix
+%attr(755,root,root) %{perl_vendorarch}/auto/IPTables/IPv4/IPQueue/*.so
+%{_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  2008/08/06 11:11:26  radek
+- new
+

================================================================
Index: SPECS/perl-Tree-Binary.spec
diff -u /dev/null SPECS/perl-Tree-Binary.spec:1.1
--- /dev/null	Wed Aug  6 13:11:32 2008
+++ SPECS/perl-Tree-Binary.spec	Wed Aug  6 13:11:26 2008
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Tree
+%define	pnam	Binary
+Summary:	Tree::Binary - A Object Oriented Binary Tree for Perl
+#Summary(pl.UTF-8):	
+Name:		perl-Tree-Binary
+Version:	0.07
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Tree/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	a5f9a000a7accc4550965892ba80952f
+URL:		http://search.cpan.org/dist/Tree-Binary/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is a fully object oriented implementation of a binary
+tree. Binary trees are a specialized type of tree which has only
+two possible branches, a left branch and a right branch. While it
+is possible to use an n-ary tree, like Tree::Simple, to fill most of
+your binary tree needs, a true binary tree object is just easier to
+mantain and use.
+
+# %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 README
+%{perl_vendorlib}/Tree/*.pm
+%{perl_vendorlib}/Tree/Binary
+%{_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  2008/08/06 11:11:26  radek
+- new
+
================================================================


More information about the pld-cvs-commit mailing list