Bug 648898

Summary: Review Request: python-dslib - A free Python library for accessing Czech Data Boxes (ISDS)
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: Package ReviewAssignee: Stanislav Ochotnicky <sochotni>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: fedora-package-review, lemenkov, notting, sochotni
Target Milestone: ---Flags: sochotni: fedora-review?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-08 12:39:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 648973    

Description Petr Pisar 2010-11-02 13:11:55 UTC
Spec URL: http://ppisar.fedorapeople.org/python-dslib/python-dslib.spec
SRPM URL: http://ppisar.fedorapeople.org/python-dslib/python-dslib-1.1-1.fc13.src.rpm
Description:
dslib is a Python library for accessing a `Data box' - an electronic
communication interface endorsed by the Czech government.

Scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2571241

$ rpmlint python-dslib.spec ../SRPMS/python-dslib-1.1-1.fc13.src.rpm ../RPMS/noarch/python-dslib-*
python-dslib.spec: W: no-cleaning-of-buildroot %install
python-dslib.spec: W: no-cleaning-of-buildroot %clean
python-dslib.spec: W: no-buildroot-tag
python-dslib.spec: W: no-%clean-section
python-dslib.src: W: no-cleaning-of-buildroot %install
python-dslib.src: W: no-cleaning-of-buildroot %clean
python-dslib.src: W: no-buildroot-tag
python-dslib.src: W: no-%clean-section
3 packages and 1 specfiles checked; 0 errors, 8 warnings.

This is post F-11 spec file where BuildRoot stuff is obsolete.

The spec file creates main packages and optional dependent sub-package. Everything is pure python.

Comment 1 Stanislav Ochotnicky 2010-11-05 12:16:31 UTC
I'll do the review

Comment 2 Stanislav Ochotnicky 2010-11-05 12:52:34 UTC
OK: rpmlint must be run on every package. The output should be posted in the review.
python-dslib.src: W: no-cleaning-of-buildroot %install
python-dslib.src: W: no-cleaning-of-buildroot %clean
python-dslib.src: W: no-buildroot-tag
python-dslib.src: W: no-%clean-section
3 packages and 0 specfiles checked; 0 errors, 4 warnings.

Why things were omitted from spec file was explained (no plan for EPEL packaging)

OK: The package must be named according to the Package Naming Guidelines .
OK: The spec file name must match the base package %{name}, in the format %{name}.spec unless your package has an exemption.
NEEDSWORK: The package must meet the Packaging Guidelines .

 * sql sub-package should Require exact version (including release) of main package
 * Group tags for main package and sql package are also incorrect I
   believe (Development/Libraries is probably more suitable)


OK: The package must be licensed with a Fedora approved license and meet the Licensing Guidelines .
OK: The License field in the package spec file must match the actual license.
OK: 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.
OK: All independent sub-packages have License of their own (if it exists)
OK: The spec file must be written in American English.
OK: The spec file for the package MUST be legible.
oK: 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.
OK: The package MUST successfully compile and build into binary rpms on at least one primary architecture.
OK: All build dependencies must be listed in BuildRequires
NA: 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.
NEEDSWORK: Packages must NOT bundle copies of system libraries.

As you yourself have noted in the spec file: this package bundles 2
other libraries, both somewhat modified. You will need FESCO exception
for bundling these inside dslib. Until then, I won't be able to
approve this package.

OK: 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.
OK: A Fedora package must not list a file more than once in the spec file's %files listings.
OK: Permissions on files must be set properly. Executables should be set with executable permissions, for example. Every %files section must include a %defattr(...) line.
OK: Each package must consistently use macros.
OK: The package must contain code, or permissable content.
NA: 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).
OK: 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.
OK: Packages must not own files or directories already owned by other packages.
OK: All filenames in rpm packages must be valid UTF-8.

All in all just minor things + that bundled libraries that need FESCO
exception (or some way of patching them :-) )

Comment 3 Petr Pisar 2010-11-05 14:30:12 UTC
Required changes submitted on
Spec URL: http://ppisar.fedorapeople.org/python-dslib/python-dslib.spec

FESCO ticket: https://fedorahosted.org/fesco/ticket/484

Comment 4 Petr Pisar 2010-11-11 08:39:52 UTC
FESCo has given up their competency in bundling area in favor of FPC.
FPC ticket: https://fedorahosted.org/fpc/ticket/26

Comment 5 Petr Pisar 2012-10-08 12:39:26 UTC
This library has been reviewed independently (bug #854690) after major rework by upstream resolving all the bundling issues

*** This bug has been marked as a duplicate of bug 854690 ***