Bug 1069139

Summary: Review Request: python-gerritlib -- Client library for accessing Gerrit
Product: [Fedora] Fedora Reporter: Kashyap Chamarthy <kchamart>
Component: Package ReviewAssignee: Parag AN(पराग) <panemade>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kchamart, package-review
Target Milestone: ---Flags: panemade: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-27 14:12:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fedora-review tool un-edited output none

Description Kashyap Chamarthy 2014-02-24 10:09:42 UTC
SPEC: http://kashyapc.fedorapeople.org/spec-files/gerritlib.spec

SRPM: http://kashyapc.fedorapeople.org/srpms/gerritlib-0.3.0-1.fc20.src.rpm

Description: A Python library for interacting with Gerrit

Fedora Account System Username: kashyapc

Comment 1 Kashyap Chamarthy 2014-02-24 10:12:33 UTC
Successful Koji scratch build:

   $ koji build --scratch rawhide ../SRPMS/gerritlib-0.3.0-1.fc20.src.rpm
   Uploading srpm: ../SRPMS/gerritlib-0.3.0-1.fc20.src.rpm
   [====================================] 100% 00:00:01  14.66 KiB   8.31 KiB/sec
   Created task: 6564128
   Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=6564128
   Watching tasks (this may be safely interrupted)...
   6564128 build (rawhide, gerritlib-0.3.0-1.fc20.src.rpm): open (buildvm-12.phx2.fedoraproject.org)
     6564129 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, armv7hl): open (arm02-builder23.arm.fedoraproject.org)
     6564131 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, i686): open (buildvm-06.phx2.fedoraproject.org)
     6564130 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, x86_64): open (buildvm-17.phx2.fedoraproject.org)
     6564130 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, x86_64): open (buildvm-17.phx2.fedoraproject.org) -> closed
     0 free  3 open  1 done  0 failed
     6564131 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, i686): open (buildvm-06.phx2.fedoraproject.org) -> closed
     0 free  2 open  2 done  0 failed
     6564129 buildArch (gerritlib-0.3.0-1.fc20.src.rpm, armv7hl): open (arm02-builder23.arm.fedoraproject.org) -> closed
     0 free  1 open  3 done  0 failed
   6564128 build (rawhide, gerritlib-0.3.0-1.fc20.src.rpm): open (buildvm-12.phx2.fedoraproject.org) -> closed
     0 free  0 open  4 done  0 failed

   6564128 build (rawhide, gerritlib-0.3.0-1.fc20.src.rpm) completed successfully

Comment 2 Kashyap Chamarthy 2014-02-24 10:48:17 UTC
[rpmlint from AUTOMATED REVIEW TOOL OUTPUT]

    $ fedora-review -m fedora-rawhide-x86_64  --rpm-spec \
      -n ../SRPMS/gerritlib-0.3.0-1.fc20.src.rpm

[. . .]
Rpmlint
-------
Checking: gerritlib-0.3.0-1.fc21.x86_64.rpm
          gerritlib-0.3.0-1.fc21.src.rpm
gerritlib.x86_64: E: no-binary
gerritlib.x86_64: W: wrong-file-end-of-line-encoding /usr/share/doc/gerritlib/LICENSE
2 packages and 0 specfiles checked; 1 errors, 1 warnings.

Rpmlint (installed packages)
----------------------------
# rpmlint gerritlib
gerritlib.x86_64: E: no-binary
gerritlib.x86_64: W: wrong-file-end-of-line-encoding /usr/share/doc/gerritlib/LICENSE
1 packages and 0 specfiles checked; 1 errors, 1 warnings.
# echo 'rpmlint-done:'
[. . .]

Comment 3 Kashyap Chamarthy 2014-02-24 10:49:47 UTC
Created attachment 866926 [details]
fedora-review tool un-edited output

Comment 4 Kashyap Chamarthy 2014-02-24 11:17:04 UTC
Assigning to Parag as he kindly agreed, on IRC, to review.

Comment 5 Parag AN(पराग) 2014-02-24 15:32:32 UTC
1) This is a noarch package. Add following in spec
BuildArch:     noarch

2) Fix the wrong-file-end-of-line-encoding for LICENSE file by using in %prep
sed -i 's/\r//' LICENSE

3) source is a python module, package name should start with python- prefix.
python-gerritlib

Comment 6 Kashyap Chamarthy 2014-02-25 04:45:26 UTC
Thanks, Parag. Addressed all three points from comment #5:

SPEC: http://kashyapc.fedorapeople.org/spec-files/python-gerritlib.spec
SRPM: http://kashyapc.fedorapeople.org/srpms/python-gerritlib-0.3.0-1.fc20.src.rpm


Successful koji scratch build, with the renamed package
-------------------------------------------------------

$ koji build --scratch rawhide ../SRPMS/python-gerritlib-0.3.0-1.fc20.src.rpm
Uploading srpm: ../SRPMS/python-gerritlib-0.3.0-1.fc20.src.rpm
[====================================] 100% 00:00:01  14.73 KiB   9.90 KiB/sec
Created task: 6567780
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=6567780
Watching tasks (this may be safely interrupted)...
6567780 build (rawhide, python-gerritlib-0.3.0-1.fc20.src.rpm): open (buildvm-21.phx2.fedoraproject.org)
  6567781 buildArch (python-gerritlib-0.3.0-1.fc20.src.rpm, noarch): open (buildvm-16.phx2.fedoraproject.org)
  6567781 buildArch (python-gerritlib-0.3.0-1.fc20.src.rpm, noarch): open (buildvm-16.phx2.fedoraproject.org) -> closed
  0 free  1 open  1 done  0 failed
6567780 build (rawhide, python-gerritlib-0.3.0-1.fc20.src.rpm): open (buildvm-21.phx2.fedoraproject.org) -> closed
  0 free  0 open  2 done  0 failed

6567780 build (rawhide, python-gerritlib-0.3.0-1.fc20.src.rpm) completed successfully


rpmlint
--------

    $ rpmlint python-gerritlib.spec \
      ../SRPMS/python-gerritlib-0.3.0-1.fc20.src.rpm
    1 packages and 1 specfiles checked; 0 errors, 0 warnings.

Comment 7 Parag AN(पराग) 2014-02-25 04:58:05 UTC
Looks like python2 macro usage is not used. See https://fedoraproject.org/wiki/Packaging:Python#Macros

Comment 8 Kashyap Chamarthy 2014-02-25 06:05:36 UTC
(In reply to Parag AN(पराग) from comment #7)
> Looks like python2 macro usage is not used. See
> https://fedoraproject.org/wiki/Packaging:Python#Macros

Addressed, re-spun SRPM. Same URLs as of Comment #8

Comment 9 Kashyap Chamarthy 2014-02-25 06:20:21 UTC
(In reply to Kashyap Chamarthy from comment #8)
> (In reply to Parag AN(पराग) from comment #7)
> > Looks like python2 macro usage is not used. See
> > https://fedoraproject.org/wiki/Packaging:Python#Macros
> 
> Addressed, re-spun SRPM. Same URLs as of Comment #8

Sorry, I meant - Comment #6

Comment 10 Parag AN(पराग) 2014-02-25 06:30:14 UTC
Okay. Looks good now.

APPROVED.

Comment 11 Kashyap Chamarthy 2014-02-25 06:48:14 UTC
Thanks Parag.

Here's SPEC and SRPM (with Python2 macros defined for EPEL):

http://kashyapc.fedorapeople.org/spec-files/python-gerritlib.spec
http://kashyapc.fedorapeople.org/srpms/python-gerritlib-0.3.0-3.fc20.src.rpm

Comment 12 Kashyap Chamarthy 2014-02-25 06:51:42 UTC
Successful scratch build with SRPM from Comment #11

$ koji build --scratch rawhide ../SRPMS/python-gerritlib-0.3.0-3.fc20.src.rpm
Uploading srpm: ../SRPMS/python-gerritlib-0.3.0-3.fc20.src.rpm
[====================================] 100% 00:00:01  15.20 KiB   9.26 KiB/sec
Created task: 6567963
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=6567963
Watching tasks (this may be safely interrupted)...
6567963 build (rawhide, python-gerritlib-0.3.0-3.fc20.src.rpm): open (buildvm-18.phx2.fedoraproject.org)
  6567964 buildArch (python-gerritlib-0.3.0-3.fc20.src.rpm, noarch): open (buildvm-08.phx2.fedoraproject.org)
  6567964 buildArch (python-gerritlib-0.3.0-3.fc20.src.rpm, noarch): open (buildvm-08.phx2.fedoraproject.org) -> closed
  0 free  1 open  1 done  0 failed
6567963 build (rawhide, python-gerritlib-0.3.0-3.fc20.src.rpm): open (buildvm-18.phx2.fedoraproject.org) -> closed
  0 free  0 open  2 done  0 failed

6567963 build (rawhide, python-gerritlib-0.3.0-3.fc20.src.rpm) completed successfully

Comment 13 Parag AN(पराग) 2014-02-25 06:52:57 UTC
Looks good again for EPEL additions.

Comment 14 Kashyap Chamarthy 2014-02-27 07:13:30 UTC
New Package SCM Request
=======================
Package Name: python-gerritlib
Short Description: Client library for accessing Gerrit
Owners: kashyapc
Branches: f20 el6 epel7
InitialCC:

Comment 15 Gwyn Ciesla 2014-02-27 13:12:37 UTC
Git done (by process-git-requests).

Comment 16 Parag AN(पराग) 2014-04-06 08:46:01 UTC
Can this be closed?

Comment 17 Kashyap Chamarthy 2014-04-14 12:23:00 UTC
Yes, sorry for the delay in response, was away on vacation.

Comment 18 Parag AN(पराग) 2014-06-26 16:14:49 UTC
ping is this built already?

Comment 19 Kashyap Chamarthy 2014-06-26 20:25:20 UTC
Yes, it is (that's what I implied in my previous commment):

$ koji latest-build f21 python-gerritlib
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-gerritlib-0.3.0-4.fc21             f21                   ausil

Comment 20 Parag AN(पराग) 2014-06-27 08:48:54 UTC
any plans for el6 and epel7 builds?

Comment 21 Kashyap Chamarthy 2014-06-27 14:04:14 UTC
Parag, no plans for EL6 or EPEL7 unless someone requests for it.

Comment 22 Parag AN(पराग) 2014-06-27 14:12:24 UTC
Thanks. I will close this review then as this package is already built for required branches.