File perl-Net-CIDR-openSUSE_10.2.spec of Package perl-Net-CIDR

# $Id: perl-Net-CIDR.spec 5674 2007-08-02 18:47:32Z dries $

# Authority: dries
# Upstream: Sam Varshavchik <sam$email-scan,com>

%define real_name Net-CIDR
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib)
%define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib)

Summary: Manipulate IPv4/IPv6 netblocks in CIDR notation
Name: perl-Net-CIDR
Version: 0.11
%define releasesuffix opensuse10.2
Release: 1.2
License: Artistic
Group: Applications/CPAN

Packager: Dries Verachtert <>
Vendor: Dries RPM Repository
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl, perl(ExtUtils::MakeMaker)

With this module, you can manipulate IPv4/IPv6 netblocks in CIDR notation.

%setup -n %{real_name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS="vendor"  destdir="%{buildroot}" 
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod
%{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)
%doc Changes README
%doc %{_mandir}/man3/*

* Wed Mar 22 2006 Dries Verachtert <> - 0.11-1.2
- Rebuild for Fedora Core 5.

* Sat Nov  5 2005 Dries Verachtert <> - 0.11-1
- Updated to release 0.11.

* Thu Jul 22 2004 Dries Verachtert <> - 0.10-1
- Initial package.