Bug 627223 - Review Request: perl-File-FnMatch - Simple filename and pathname matching
Summary: Review Request: perl-File-FnMatch - Simple filename and pathname matching
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Stephen Gallagher
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-25 12:28 UTC by Colin Coe
Modified: 2011-02-04 16:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-04 16:34:15 UTC
Type: ---
Embargoed:
iarnell: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Comment 1 Colin Coe 2010-08-26 14:22:36 UTC
Spec URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch.spec
SRPM URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-2.fc13.src.rpm

[coec@bob rpmbuild]$ rpmlint SPECS/perl-File-FnMatch.spec SRPMS/perl-File-FnMatch-0.02-2.fc13.src.rpm 
1 packages and 1 specfiles checked; 0 errors, 0 warnings.
[coec@bob rpmbuild]

Comment 2 Stephen Gallagher 2010-08-31 14:15:20 UTC
Review does not pass: see below.


#  MUST: rpmlint must be run on every package. The output should be posted in the review.[1]
FAIL

perl-File-FnMatch.x86_64: W: private-shared-object-provides /usr/lib64/perl5/auto/File/FnMatch/FnMatch.so FnMatch.so()(64bit)
3 packages and 0 specfiles checked; 0 errors, 1 warnings.
[sgallagh@sgallagh rpms]$ rpmlint -i *
perl-File-FnMatch.x86_64: W: private-shared-object-provides /usr/lib64/perl5/auto/File/FnMatch/FnMatch.so FnMatch.so()(64bit)
A shared object soname provides is provided by a file in a path from which
other packages should not directly load shared objects from.  Such shared
objects should thus not be depended on and they should not result in provides
in the containing package.  Get rid of the provides if appropriate, for
example by filtering it out during build.  Note that in some cases this may
require disabling rpmbuild's internal dependency generator.

3 packages and 1 specfiles checked; 0 errors, 1 warnings.

# MUST: The package must be named according to the Package Naming Guidelines .
PASS

# MUST: The spec file name must match the base package %{name}, in the format %{name}.spec unless your package has an exemption. [2] .
PASS

# MUST: The package must meet the Packaging Guidelines .
FAIL (see rpmlint output)

# MUST: The package must be licensed with a Fedora approved license and meet the Licensing Guidelines .
PASS

# MUST: The License field in the package spec file must match the actual license. [3]
PASS

# MUST: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package must be included in %doc.[4]
N/A

# MUST: The spec file must be written in American English. [5]
PASS

# MUST: The spec file for the package MUST be legible. [6]
PASS

# MUST: The sources used to build the package must match the upstream source, as provided in the spec URL. Reviewers should use md5sum for this task. If no upstream URL can be specified for this package, please see the Source URL Guidelines for how to deal with this.
PASS

# MUST: The package MUST successfully compile and build into binary rpms on at least one primary architecture. [7]
PASS (scratch-build in Koji for Fedora 13: http://koji.fedoraproject.org/koji/taskinfo?taskID=2437290 )

# MUST: If the package does not successfully compile, build or work on an architecture, then those architectures should be listed in the spec in ExcludeArch. Each architecture listed in ExcludeArch MUST have a bug filed in bugzilla, describing the reason that the package does not compile/build/work on that architecture. The bug number MUST be placed in a comment, next to the corresponding ExcludeArch line. [8]
N/A

# MUST: All build dependencies must be listed in BuildRequires, except for any that are listed in the exceptions section of the Packaging Guidelines ; inclusion of those as BuildRequires is optional. Apply common sense.
PASS

# MUST: The spec file MUST handle locales properly. This is done by using the %find_lang macro. Using %{_datadir}/locale/* is strictly forbidden.[9]
N/A

# MUST: Every binary RPM package (or subpackage) which stores shared library files (not just symlinks) in any of the dynamic linker's default paths, must call ldconfig in %post and %postun. [10]
N/A

# MUST: Packages must NOT bundle copies of system libraries.[11]
PASS

# MUST: If the package is designed to be relocatable, the packager must state this fact in the request for review, along with the rationalization for relocation of that specific package. Without this, use of Prefix: /usr is considered a blocker. [12]
N/A

# MUST: A package must own all directories that it creates. If it does not create a directory that it uses, then it should require a package which does create that directory. [13]
PASS

# MUST: A Fedora package must not list a file more than once in the spec file's %files listings. (Notable exception: license texts in specific situations)[14]
PASS

# MUST: Permissions on files must be set properly. Executables should be set with executable permissions, for example. Every %files section must include a %defattr(...) line. [15]
PASS

# MUST: Each package must consistently use macros. [16]
PASS

# MUST: The package must contain code, or permissable content. [17]
PASS

# MUST: Large documentation files must go in a -doc subpackage. (The definition of large is left up to the packager's best judgement, but is not restricted to size. Large can refer to either size or quantity). [18]
N/A

# MUST: If a package includes something as %doc, it must not affect the runtime of the application. To summarize: If it is in %doc, the program must run properly if it is not present. [18]
PASS

# MUST: Header files must be in a -devel package. [19]
N/A

# MUST: Static libraries must be in a -static package. [20]
N/A

# MUST: If a package contains library files with a suffix (e.g. libfoo.so.1.1), then library files that end in .so (without suffix) must go in a -devel package. [19]
N/A

# MUST: In the vast majority of cases, devel packages must require the base package using a fully versioned dependency: Requires: %{name} = %{version}-%{release} [21]
N/A

# MUST: Packages must NOT contain any .la libtool archives, these must be removed in the spec if they are built.[20]
N/A

# MUST: Packages containing GUI applications must include a %{name}.desktop file, and that file must be properly installed with desktop-file-install in the %install section. If you feel that your packaged GUI application does not need a .desktop file, you must put a comment in the spec file with your explanation. [22]
N/A

# MUST: Packages must not own files or directories already owned by other packages. The rule of thumb here is that the first package to be installed should own the files or directories that other packages may rely upon. This means, for example, that no package in Fedora should ever share ownership with any of the files or directories owned by the filesystem or man package. If you feel that you have a good reason to own a file or directory that another package owns, then please present that at package review time. [23]
PASS

# MUST: All filenames in rpm packages must be valid UTF-8. [24]
PASS

Comment 3 Colin Coe 2010-09-02 11:39:19 UTC
[coec@bob SPECS]$ cat /etc/fedora-release 
Fedora release 13 (Goddard)
[coec@bob SPECS]$ rpmlint perl-File-FnMatch.spec /home/coec/rpmbuild/SRPMS/perl-File-FnMatch-0.02-4.fc13.src.rpm ~/Downloads/perl-File-FnMatch-0.02-4.fc13.x86_64.rpm 
2 packages and 1 specfiles checked; 0 errors, 0 warnings.
[coec@bob SPECS]$ rpm -qp --provides ~/Downloads/perl-File-FnMatch-0.02-4.fc13.x86_64.rpm
FnMatch.so()(64bit)  
perl(File::FnMatch) = 0.02
perl-File-FnMatch = 0.02-4.fc13
perl-File-FnMatch(x86-64) = 0.02-4.fc13
[coec@bob SPECS]$ 

I've updated the spec file with
---
%global _use_internal_dependency_generator 0
%global __find_provides    %{_rpmconfigdir}/find-provides | grep -v %{srcname}
%global __find_requires    %{_rpmconfigdir}/find-requires | grep -v %{srcname}
---
at the beginning.  rpmlint is clean but rpm -qp --provides stills shows to .so file.

Unsure how to remove this....



Spec URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch.spec
SRPM URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-4.fc13.src.rpm
RPM URL: http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-4.fc13.x86_64.rpm

Comment 4 Colin Coe 2010-09-03 15:47:39 UTC
[coec@bob SPECS]$ rpmlint -i perl-File-FnMatch.spec ~/Downloads/perl-File-FnMatch-0.02-5.fc13.*.rpm
3 packages and 1 specfiles checked; 0 errors, 0 warnings.
[coec@bob SPECS]$

Spec URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch.spec
SRPM URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-5.fc13.src.rpm
RPM URLs:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-5.fc13.x86_64.rpm
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-5.fc13.i686.rpm

[coec@bob SPECS]$ rpm -qp --provides ~/Downloads/perl-File-FnMatch-0.02-5.fc13.x86_64.rpm 
perl(File::FnMatch) = 0.02
perl-File-FnMatch = 0.02-5.fc13
perl-File-FnMatch(x86-64) = 0.02-5.fc13
[coec@bob SPECS]$ rpm -qp --provides ~/Downloads/perl-File-FnMatch-0.02-5.fc13.i686.rpm 
perl(File::FnMatch) = 0.02
perl-File-FnMatch = 0.02-5.fc13
perl-File-FnMatch(x86-32) = 0.02-5.fc13
[coec@bob SPECS]$

Comment 5 Stephen Gallagher 2010-09-03 17:06:22 UTC
Review passes

Comment 6 Iain Arnell 2010-09-03 17:50:43 UTC
Clearing the review flag. Simply disabling autoprov is NOT acceptable.

Please read the perl packaging guidelines[1] (or better, the draft of the new guidelines[2]) to see how requires/provides can be selectively filtered.

[1] https://fedoraproject.org/wiki/Packaging:Perl#Filtering_Requires:_and_Provides
[2] https://fedoraproject.org/wiki/PackagingDraft:Perl#Filtering_Errant_Provides

Comment 7 Iain Arnell 2010-09-03 17:53:34 UTC
Gah! I mis-copied that second link. You really want to look at 

https://fedoraproject.org/wiki/PackagingDraft:Perl#General_Case

Comment 8 Colin Coe 2010-09-06 12:27:28 UTC
[coec@bob SPECS]$ rpm -qp --provides ~/Downloads/perl-File-FnMatch-0.02-6.fc13.x86_64.rpm 
perl(File::FnMatch) = 0.02
perl-File-FnMatch = 0.02-6.fc13
perl-File-FnMatch(x86-64) = 0.02-6.fc13
[coec@bob SPECS]$ rpm -qp --provides ~/Downloads/perl-File-FnMatch-0.02-6.fc13.i686.rpm 
perl(File::FnMatch) = 0.02
perl-File-FnMatch = 0.02-6.fc13
perl-File-FnMatch(x86-32) = 0.02-6.fc13
[coec@bob SPECS]$ rpmlint -i perl-File-FnMatch.spec \
../SRPMS/perl-File-FnMatch-0.02-6.fc13.src.rpm \
~/Downloads/perl-File-FnMatch-0.02-6.fc13.x86_64.rpm \
~/Downloads/perl-File-FnMatch-0.02-6.fc13.i686.rpm
3 packages and 1 specfiles checked; 0 errors, 0 warnings.

Spec URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch.spec
SRPM URL:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-6.fc13.src.rpm
RPM URLs:
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-6.fc13.x86_64.rpm
http://members.iinet.net.au/~coec/RPMS_for_review/perl-File-FnMatch/perl-File-FnMatch-0.02-6.fc13.i686.rpm

Hopefully its all good now.

Comment 9 Iain Arnell 2010-09-06 13:30:27 UTC
Thank you - that's better. Restoring the approval.

But you've revealed a slight gap in our documentation (which I'm about to fix). The %{?perl_default_filter} already filters out private libs - there's no need to add your own %filter_from_provides (but it certainly doesn't hurt).

Comment 10 Colin Coe 2010-09-06 13:50:18 UTC
New Package CVS Request
=======================
Package Name: perl-File-FnMatch
Short Description: Simple file-name and pathname matching
Owners: coec
Branches: F-12 F-13 F-14 EL-5 EL-6
InitialCC:

Comment 11 Kevin Fenzi 2010-09-06 23:44:43 UTC
Git done (by process-git-requests).

Comment 12 Iain Arnell 2011-02-04 16:34:15 UTC
Closing. Package has been imported and built a while back.


Note You need to log in before you can comment on or make changes to this bug.