SPECS: perl-Net-CDP.spec (NEW) - initial

agaran agaran at pld-linux.org
Mon Mar 5 14:28:40 CET 2007


Author: agaran                       Date: Mon Mar  5 13:28:40 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   perl-Net-CDP.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Net-CDP.spec
diff -u /dev/null SPECS/perl-Net-CDP.spec:1.1
--- /dev/null	Mon Mar  5 14:28:40 2007
+++ SPECS/perl-Net-CDP.spec	Mon Mar  5 14:28:35 2007
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Net
+%define	pnam	CDP
+Summary:	Net::CDP - Cisco Discovery Protocol (CDP) advertiser/listener
+#Summary(pl):	
+Name:		perl-Net-CDP
+Version:	0.09
+Release:	0.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:	4cd5e76cae8fbd47591579db749ca2aa
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Carp::Clan)
+BuildRequires:	libpcap-devel
+BuildRequires:	libnet-devel >= 1.1.0
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Net::CDP module implements an advertiser/listener for the Cisco
+Discovery Protocol.
+
+CDP is a proprietary Cisco protocol for discovering devices on a network. A
+typical CDP implementation sends periodic CDP packets on every network
+port. It might also listen for packets for advertisements sent by neighboring
+devices.
+
+A Net::CDP object represents an advertiser/listener for a single network
+port. It can send and receive individual CDP packets, each represented by a
+Net::CDP::Packet object.
+
+To manage multiple ports simultaneously, you might like to take a look at
+Net::CDP::Manager.
+
+If you are upgrading code from an older version of Net::CDP, please read the
+/"UPGRADING FROM PREVIOUS VERSIONS" section below.
+
+
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+%{__install} -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv $RPM_BUILD_ROOT%{perl_vendorarch}/Net/example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Net/*.pm
+%dir %{perl_vendorarch}/auto/Net/CDP
+%{perl_vendorarch}/auto/Net/CDP/*.bs
+%{perl_vendorarch}/Net/CDP/*.pm
+%attr(755,root,root) %{perl_vendorarch}/auto/Net/CDP/*.so
+%{_examplesdir}/%{name}-%{version}
+%{_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/03/05 13:28:35  agaran
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list