rpms/perl-Net-SNMP/devel perl-Net-SNMP.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jose Pedro Oliveira (jpo) fedora-extras-commits at redhat.com
Thu May 18 09:05:11 UTC 2006


Author: jpo

Update of /cvs/extras/rpms/perl-Net-SNMP/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16276/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-Net-SNMP.spec 
Log Message:
auto-import perl-Net-SNMP-5.2.0-1 on branch devel from perl-Net-SNMP-5.2.0-1.src.rpm


--- NEW FILE perl-Net-SNMP.spec ---
Name:           perl-Net-SNMP
Version:        5.2.0
Release:        1%{?dist}
Summary:        Object oriented interface to SNMP

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/Net-SNMP/
Source0:        http://www.cpan.org/authors/id/D/DT/DTOWN/Net-SNMP-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  perl(Crypt::DES)
BuildRequires:  perl(Digest::HMAC)
BuildRequires:  perl(Digest::SHA1)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
#Requires:       perl(Crypt::Rijndael)
#Requires:       perl(Socket6)

%description
The Net::SNMP module implements an object oriented interface to the
Simple Network Management Protocol.  Perl applications can use the
module to retrieve or update information on a remote host using the
SNMP protocol.  The module supports SNMP version-1, SNMP version-2c
(Community-Based SNMPv2), and SNMP version-3.  The Net::SNMP module
assumes that the user has a basic understanding of the Simple Network
Management Protocol and related network management concepts.


%prep
%setup -q -n Net-SNMP-%{version}
%{__perl} -pi -e 's|^#!\s+/usr/local/bin/perl|#!%{__perl}|' examples/*.pl
chmod -c a-x examples/*.pl

# Requirements: exclude perl(Socket6)
cat <<__EOF__ > %{name}-perlreq
#!/bin/sh
/usr/lib/rpm/perl.req \$* | grep -v '^perl(Socket6)'
__EOF__
%define __perl_requires %{_builddir}/Net-SNMP-%{version}/%{name}-perlreq
chmod +x %{__perl_requires}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc Changes README examples/
%{_bindir}/*
%{perl_vendorlib}/Net/
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3pm*


%changelog
* Sat May 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 5.2.0-1
- First build.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Net-SNMP/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	18 May 2006 09:04:42 -0000	1.1
+++ .cvsignore	18 May 2006 09:05:11 -0000	1.2
@@ -0,0 +1 @@
+Net-SNMP-5.2.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Net-SNMP/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	18 May 2006 09:04:42 -0000	1.1
+++ sources	18 May 2006 09:05:11 -0000	1.2
@@ -0,0 +1 @@
+0e717723f843ab22a93248833f3ebff7  Net-SNMP-5.2.0.tar.gz




More information about the fedora-extras-commits mailing list