Trying to package perl-Net-IP-CMatch

Steven Pritchard steve at silug.org
Mon Oct 3 18:35:48 UTC 2005


On Mon, Oct 03, 2005 at 01:20:44PM -0500, Steven Pritchard wrote:
> On Mon, Oct 03, 2005 at 11:54:43AM -0600, Orion Poplawski wrote:
> > Gah, that will teach me to not copy from one package to another, but 
> > always start from the template!  Thanks!
> 
> Or start from cpanspec...  :-)
> 
>   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168838

Which reminds me...  I probably haven't been trying hard enough to
"sell" this to everyone, but I really think it is a nice tool.  In
this case, the vast majority of the work of building the rpm can be
done by cpanspec:

  $ cpanspec --build --verbose Net::IP::CMatch
  Updating /home/steve/.cpan/sources/modules/02packages.details.txt.gz...
  Fetching /home/steve/.cpan/sources/modules/02packages.details.txt.gz from http://ftp.kspei.com/pub/perl/cpan/modules/02packages.details.txt.gz...
  Fetching Net-IP-CMatch-0.02.tar.gz from http://ftp.kspei.com/pub/perl/cpan/authors/id/B/BE/BEAU/Net-IP-CMatch-0.02.tar.gz...
  Building rpms from perl-Net-IP-CMatch.spec
  [...]
  + exit 0
  $ rpmlint perl-Net-IP-CMatch-0.02-1.src.rpm 
  W: perl-Net-IP-CMatch invalid-license CHECK(GPL or Artistic)
  $ rpmlint x86_64/perl-Net-IP-CMatch-0.02-1.x86_64.rpm 
  W: perl-Net-IP-CMatch invalid-license CHECK(GPL or Artistic)

In other words, the license needs to be verified, but otherwise the
thing builds, "make test" passes, and rpmlint is happy.  Looking at
the spec file, %description could use some work too, but that's also
very minor.

I have the CPAN environment variable set to my local mirror, BTW.
That or --cpan/-c can be used to override the default of www.cpan.org.

Steve
-- 
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: steve at kspei.com             http://www.kspei.com/
Phone: (618)398-3000               Mobile: (618)567-7320




More information about the fedora-extras-list mailing list