perl-Net-SNMP/perl-Net-SNMP.spec

74 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Net-SNMP (Version 5.2.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Net-SNMP
BuildRequires: perl-Crypt-DES perl-Digest-HMAC
Version: 5.2.0
Release: 133
Provides: p_nsnmp
Obsoletes: p_nsnmp
Requires: perl-Digest-HMAC perl-Digest-SHA1 perl-Crypt-DES
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic
Url: http://search.cpan.org/perldoc?Net::SNMP
Summary: Net::SNMP Perl Module
Source: Net-SNMP-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Net::SNMP module implements an object oriented interface to the
Simple Network Management Protocol.
Authors:
--------
David M. Town <dtown@fore.com>
%prep
%setup -q -n Net-SNMP-%{version}
%build
find examples -type f | xargs -n 1 sed -i "s@#!\s*/usr/local/bin/perl@#!/usr/bin/perl@"
perl Makefile.PL
make %{?_smp_mflags}
make test
%install
rm -rf $RPM_BUILD_ROOT
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Changes README examples
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Net
%{perl_vendorarch}/auto/Net
%{_bindir}/*
/var/adm/perl-modules/%{name}
%changelog