- Minor spec cleanup

- Add COPYING and Artistic
This commit is contained in:
Steven Pritchard 2005-09-06 01:22:08 +00:00
parent 27d3bce0db
commit ad1f2119b9

View File

@ -1,13 +1,11 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perl-Net-CIDR-Lite Name: perl-Net-CIDR-Lite
Version: 0.18 Version: 0.18
Release: 2%{?dist} Release: 3%{?dist}
Summary: Net::CIDR::Lite Perl module Summary: Net::CIDR::Lite Perl module
License: GPL or Artistic License: GPL or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Net-CIDR-Lite/ URL: http://search.cpan.org/dist/Net-CIDR-Lite/
Source0: http://www.cpan.org/modules/by-module/Net/Net-CIDR-Lite-0.18.tar.gz Source0: http://www.cpan.org/modules/by-module/Net/Net-CIDR-Lite-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -23,7 +21,6 @@ address ranges. Works for IPv4 and IPv6 addresses.
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -36,7 +33,10 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/* chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
%check || : perldoc -t perlgpl > COPYING
perldoc -t perlartistic > Artistic
%check
make test make test
%clean %clean
@ -44,11 +44,15 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README %doc Changes README COPYING Artistic
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 0.18-3
- Minor spec cleanup
- Add COPYING and Artistic
* Mon Aug 01 2005 Steven Pritchard <steve@kspei.com> 0.18-2 * Mon Aug 01 2005 Steven Pritchard <steve@kspei.com> 0.18-2
- Add BR Test::Pod and Test::Pod::Coverage for make test - Add BR Test::Pod and Test::Pod::Coverage for make test