100 lines
3.1 KiB
RPMSpec
100 lines
3.1 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-NetAddr-IP
|
|
Version: 4.079
|
|
Release: 2mamba
|
|
Summary: NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libperl
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
%description
|
|
NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets .
|
|
|
|
%prep
|
|
%setup -q -n NetAddr-IP-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
done
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.079-2mamba
|
|
- rebuilt with perl 5.24
|
|
|
|
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 4.079-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Feb 05 2016 Automatic Build System <autodist@mambasoft.it> 4.078-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Aug 14 2015 Automatic Build System <autodist@mambasoft.it> 4.077-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Thu Jul 10 2014 Automatic Build System <autodist@mambasoft.it> 4.075-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 4.073-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Dec 18 2013 Automatic Build System <autodist@mambasoft.it> 4.071-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Sep 14 2013 Automatic Build System <autodist@mambasoft.it> 4.070-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun May 26 2013 Automatic Build System <autodist@mambasoft.it> 4.069-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Apr 05 2013 Automatic Build System <autodist@mambasoft.it> 4.068-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Apr 01 2013 Automatic Build System <autodist@mambasoft.it> 4.067-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Feb 08 2013 Automatic Build System <autodist@mambasoft.it> 4.066-1mamba
|
|
- update to 4.066
|
|
|
|
* Sat Nov 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.007-2mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.007-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.004-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed May 09 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.004-1mamba
|
|
- package created by autospec
|