Bug 507410

Summary: Review Request: yum-plugin-download-order - Yum plugin to order downloading of packages
Product: [Fedora] Fedora Reporter: Rakesh Pandit <rpandit>
Component: Package ReviewAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: axet, fcdanilo, fedora-package-review, mail, notting, sergio.pasra, sundaram
Target Milestone: ---Flags: sergio.pasra: fedora-review+
kevin: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.2-1.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-14 05:11:31 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:

Description Rakesh Pandit 2009-06-22 17:04:40 UTC
SPEC: http://rakesh.fedorapeople.org/spec/yum-download-order.spec
SRPM: http://rakesh.fedorapeople.org/srpm/yum-download-order-0.1-1.fc11.src.rpm


Description of problem:
Yum plugin to order downloads. Right now it just orders based on size.

Comment 1 Steve Traylen 2009-06-22 17:39:30 UTC
H Rakesh,

 I'm not an official package reviewer.

 There are some .pyc/o files that need adding to the files list.

 Currently:

 error: Installed (but unpackaged) file(s) found:
   /usr/lib/yum-plugins/download-order.pyc
   /usr/lib/yum-plugins/download-order.pyo

 see:
 
 https://fedoraproject.org/wiki/Packaging:Python#Byte_Compiled_Files

 This is on F11.

Steve

Comment 2 Sergio Pascual 2009-06-23 09:10:43 UTC
In you spec, include all the python generated files with

/usr/lib/yum-plugins/download-order.py*


And you can join 
%doc README 
%doc COPYING

in 
%doc README COPYING

Comment 3 Rakesh Pandit 2009-06-23 13:14:54 UTC
SPEC: http://rakesh.fedorapeople.org/spec/yum-download-order.spec
SRPM: http://rakesh.fedorapeople.org/srpm/yum-download-order-0.1-2.fc11.src.rpm

Updated .. may you check this out whether it generates pyc and pyo files ? Removed Makefile and have used setup.py similar to yum-presto plugin spec file

Thanks,

Comment 4 Rahul Sundaram 2009-06-23 14:28:54 UTC
FYI, In Fedora 11, all plugins have the name yum-plugin-foo instead of yum-foo.

Comment 5 Rakesh Pandit 2009-06-23 17:22:40 UTC
except yum-presto which till now was only one outside provided yum-utils until this one came.

Comment 6 Rakesh Pandit 2009-06-23 17:24:28 UTC
@Rahul
Seems it is between to rename to yum-plugin-foo .. will update in some time.

@Sergio 
I will rename it ... waiting for review between.

Comment 7 Sergio Pascual 2009-06-29 22:23:11 UTC
Rakesh, the tarball upstream doesn't match the source in rpm. Please upload the new tarball so that I can write the review.

Other things:
  
 * why do you need python-setuptools-devel?, python-setuptools is enough to build and install most python applications.
 * the current recommended macro for python_sitelib is:

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

 just change define by global http://fedoraproject.org/wiki/Packaging:Python

 * download-order.py has a shebang in the first line. As this file isn't a script
   intended to be run by users, I think its better to remove it (when we also remove a rpmlint error)

Comment 8 Sergio Pascual 2009-07-27 11:58:14 UTC
Rakesh, the tarball upstream doesn't match the source in rpm. Please upload the
new tarball so that I can write the review.

Comment 9 Rakesh Pandit 2009-07-27 12:02:59 UTC
Sergio, I am on holidays and will do it in some days depending on time I get for this week (no access to my test box at working place). If I miss this week I will surely do it first week of Augest after going back to my place.

Comment 10 Rakesh Pandit 2009-08-04 16:55:41 UTC
Thanks for waiting,

SPEC: http://rakesh.fedorapeople.org/spec/yum-download-order.spec
SRPM: http://rakesh.fedorapeople.org/srpm/yum-download-order-0.1-2.fc11.src.rpm

I have updated the tarball.

Comment 12 Rakesh Pandit 2009-08-18 12:39:03 UTC
@ Sergio, ping ??

Comment 13 Fabian Affolter 2009-08-18 13:18:26 UTC
For me it seams that the stuff from comment #7 wasn't incorporated in the spec file.  Am I wrong?

Comment 15 Sergio Pascual 2009-08-24 20:28:15 UTC

rpmlint OK
name: a better name would be yum-plugin-download-order
license: OK
license included: OK
spec legible: OK
sources match upstream: OK
compiles: FAIL, you have to add python-devel to BuildRequires to compile the package
it owns all directories that it creates: OK
permissions: OK
clean section: OK
macros consistent: OK

So, you have to add python-devel to BuildRequires. A better name for the package
is yum-plugin-download-order, according to the majority of the yum plugins

Comment 17 Sergio Pascual 2009-08-26 08:31:53 UTC
APPROVED, thanks

Comment 18 Rakesh Pandit 2009-08-26 14:36:12 UTC
New Package CVS Request
=======================

Package Name: yum-plugin-download-order
Short Description: Yum plugin to order downloading of packages
Owners: rakesh
Branches: F-10 F-11
InitialCC:

Comment 19 Kevin Fenzi 2009-08-26 22:35:18 UTC
cvs done.

Comment 20 Fedora Update System 2009-09-14 05:09:44 UTC
yum-plugin-download-order-0.2-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/yum-plugin-download-order-0.2-1.fc11

Comment 21 Fedora Update System 2009-09-14 05:10:45 UTC
yum-plugin-download-order-0.1-5.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/yum-plugin-download-order-0.1-5.fc10

Comment 22 Fedora Update System 2009-10-14 01:43:09 UTC
yum-plugin-download-order-0.1-5.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2009-10-14 01:56:47 UTC
yum-plugin-download-order-0.2-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.