File perl-Net-IP.spec of Package perl-Net-IP

#
# spec file for package perl-Net-IP
#
# Copyright (c) 2011 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-IP
Url:            http://cpan.org/modules/by-module/Net/
License:        Artistic-1.0
Group:          Development/Libraries/Perl
Provides:       perl_Net-IP
Obsoletes:      perl_Net-IP
AutoReqProv:    on
Summary:        allow easy manipulation of IPv4 and IPv6 addresses
Version:        1.25
Release:        61
Source:         Net-IP-%{version}.tar.gz
Patch:          %{name}-%{version}-zero_address.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros

%description
This is the Net::IP module, designed to allow easy manipulation of IPv4
and IPv6 addresses.



Authors:
--------
    Manuel Valente

%prep
%setup -n Net-IP-%{version} -q
%patch

%build
perl Makefile.PL
make %{?_smp_mflags}

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Changes MANIFEST README
/usr/bin/*
%{_mandir}/man3/*
%dir %perl_vendorlib/Net
%perl_vendorlib/Net/IP.pm
%dir %perl_vendorarch/auto/Net
%perl_vendorarch/auto/Net/IP

%changelog
openSUSE Build Service is sponsored by