Bug 754088

Summary: Review Request: python-restauth-common - Collects various code used in RestAuth server/client implementations
Product: [Fedora] Fedora Reporter: Jan Kaluža <jkaluza>
Component: Package ReviewAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jskarvad, mati, notting, package-review
Target Milestone: ---Flags: jskarvad: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-restauth-common-0.5.1-3.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-12 22:02:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Kaluža 2011-11-15 11:46:01 UTC
Spec URL: http://jkaluza.fedorapeople.org/python-restauth-common.spec
SRPM URL: http://jkaluza.fedorapeople.org/python-restauth-common-0.5.1-1.fc15.src.rpm
Description:

Hi,
I've finished packaging of python-restauth-common Python module. This module collects various code used in RestAuth server/client implementations.

It depends on python-mimeparse: https://bugzilla.redhat.com/show_bug.cgi?id=754064
Consider reviewing also python-mimeparse before reviewing this package please.

$ rpmlint python-restauth-common-0.5.1-1.fc15.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

$ rpmlint *restauth-common*
2 packages and 0 specfiles checked; 0 errors, 0 warnings.

Comment 1 Jan Kaluža 2011-11-15 11:57:36 UTC
I'm sorry for confusing, but this package doesn't depend on python-mimeparse. It's "restauth" package which has that dependency.

Comment 2 Jaroslav Škarvada 2011-11-21 11:08:54 UTC
MUST items:
[YES] rpmplint is silent
[YES] Package meets naming guidelines.
[YES] Package meets packaging guidelines.
[YES] Spec file matches base package name.
[YES] License file is present, matching with spec file.
[YES] Licensing Guidelines are met.
[!] Spec file is legible and in American English.
  I would prefer summary like: Python module containing small set of classes
  used by both RestAuth server/client implementations
  or similar.
  
  Description differs for python and python3! The python3 description is probably for the restauth itself.

[YES] Sources match upstream.
[YES] Package builds OK.
[!] BuildRequires are correct.
I cannot find the python-setuptools-devel in rawhide.
Is the python-setuptools really needed? It seems to build OK without it.

[YES] Package doesn't bundle copies of system libraries.
[YES] Package owns all the directories it creates.
[YES] Package has no duplicity in %files.
[YES] Permission on files are set properly.
[NO] Spec file has consistant macro usage.
  Please use %{optflags} instead of $RPM_OPT_FLAGS or $RPM_BUILD_ROOT instead of %{buildroot}.
[YES] Package is code or permissible content.
[YES] %doc files don't affect runtime.
[YES] Package doesn't own files/directories that other packages own.
[YES] All files are valid UTF-8.

Should items:
[YES] Package builds in mock.
[YES] Package uses sane scriptlets.

Some more comments:
There is extra space in both %doc (only cosmetic issue :)

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
is probably not needed any more.

The defattr is also not needed.

AFAIK the above have only sense if it is planned to package for RHEL-5 EPEL. If so there should be also more additions (e.g. %clean section, ...).

Please consider building and packaging the docs.

Comment 3 Jan Kaluža 2011-11-22 11:32:50 UTC
All mentioned problem should be fixed in:

Spec URL: http://jkaluza.fedorapeople.org/python-restauth-common.spec
SRPM URL:
http://jkaluza.fedorapeople.org/python-restauth-common-0.5.1-2.fc16.src.rpm

Comment 4 Jaroslav Škarvada 2011-11-28 10:53:45 UTC
Several new warnings pops up now:
python-restauth-common-doc.noarch: W: hidden-file-or-dir /usr/share/doc/python-restauth-common-doc-0.5.1/html/.buildinfo
python-restauth-common.noarch: E: summary-too-long C Python module containing small set of classes used by both RestAuth server/client implementations
python-restauth-common.src: E: summary-too-long C Python module containing small set of classes used by both RestAuth server/client implementations
python3-restauth-common.noarch: E: summary-too-long C Python module containing small set of classes used by both RestAuth server/client implementations

The requires for doc should be probably changed to:
Requires: python-restauth-common = %{version}-%{release}

The %files -n python3-restauth-common still contains %defattr.

I think, you shouldn't package doctrees cache.

Comment 5 Jan Kaluža 2011-11-28 13:12:05 UTC
All the new bugs should be fixed in:
Spec URL: http://jkaluza.fedorapeople.org/python-restauth-common.spec
SRPM URL:
http://jkaluza.fedorapeople.org/python-restauth-common-0.5.1-3.fc16.src.rpm

Comment 6 Jaroslav Škarvada 2011-11-29 15:07:59 UTC
Looks OK for me, giving fedora-review +

Comment 7 Jan Kaluža 2011-11-30 07:00:59 UTC
New Package SCM Request
=======================
Package Name: python-restauth-common
Short Description: Collects various code used in RestAuth server/client implementations
Owners: jkaluza
Branches: f15 f16
InitialCC: jskarvad

Comment 8 Gwyn Ciesla 2011-11-30 10:52:30 UTC
Git done (by process-git-requests).

Comment 9 Fedora Update System 2011-12-01 09:17:02 UTC
python-restauth-common-0.5.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-restauth-common-0.5.1-3.fc16

Comment 10 Fedora Update System 2011-12-04 02:22:00 UTC
python-restauth-common-0.5.1-3.fc16 has been pushed to the Fedora 16 testing repository.

Comment 11 Fedora Update System 2011-12-12 22:02:21 UTC
python-restauth-common-0.5.1-3.fc16 has been pushed to the Fedora 16 stable repository.