[Mageia-dev] perl-Sys-Mmap package review
Guillaume Rousse
guillomovitch at gmail.com
Thu Sep 1 00:17:59 CEST 2011
Le 31/08/2011 15:20, Barry Jackson a écrit :
> Hello,
> Would someone please review the attached src.rpm for the above, with a
> view to committing it.
Here you have...
You'd better use an author-neutral URL for the sources, such as
http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz
This way, if another maintainer submit a new version, the URL will stay
valid (and automatic update tool will work).
The runtime depency on perl is useless: you can't install mageia without
perl anyway, and the minimal version isn't very helpful either.
But you do need a build dependency (buildrequires) on perl-devel, as it
is a native perl package, you won't be able to build without it.
you should not include the debug files (the .debug, and the source
files), they will be automatically included in the implicit
perl-Sys-Mmap-debug package. Especially as the path you're using here is
x86_64-specific :) So just forget them.
You should not own the %{perl_vendorlib} directory (it belongs to perl
package), but just the subdirectory %{perl_vendorlib}/Sys, which is the
base directory for your package files.
The %clean section isn't needed anymore with rpm 4.8
Usually, the document files (%doc macro) are listed first, but that's
purely cosmetic.
--
Guillaume
More information about the Mageia-dev
mailing list