Spec URL: http://salimma.fedorapeople.org/specs/admin/python26-psutil.spec SRPM URL: http://salimma.fedorapeople.org/specs/admin/python26-psutil-0.6.1-1.fc18.src.rpm Description: psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using Python, implementing many functionalities offered by command line tools such as: ps, top, df, kill, free, lsof, free, netstat, ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap. This packages builds psutil against the Python 2.6 stack for EL5 (https://fedoraproject.org/wiki/Python26) to support dependents such as glances which require higher versions of Python. Fedora Account System Username: salimma
Successful Koji scratchbuild for EL5: * http://koji.fedoraproject.org/koji/taskinfo?taskID=5226234 REVIEW: Legend: + = PASSED, - = FAILED, 0 = Not Applicable - rpmlint is NOT silent, and his messages scares me a bit: work ~/Desktop: rpmlint python26-psutil-* | grep -v spelling-error python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psmswindows.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/error.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psmswindows.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_compat.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_compat.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/__init__.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/error.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psbsd.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_common.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psosx.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_common.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psosx.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psbsd.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_pslinux.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_pslinux.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psposix.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/_psposix.pyc expected 62161 (2.6), found 62061 (2.4) python26-psutil.ppc: E: python-bytecode-wrong-magic-value /usr/lib/python2.6/site-packages/psutil/__init__.pyo expected 62161 (2.6), found 62061 (2.4) python26-psutil.src: W: invalid-url Source0: http://psutil.googlecode.com/files/psutil-0.6.1.tar.gz HTTP Error 404: Not Found 3 packages and 0 specfiles checked; 18 errors, 29 warnings. work ~/Desktop: It seems that it still uses py24 for producing optimized bytecode. Could you please comment on this? + The package is named according to the Package Naming Guidelines. + The spec file name matches the base package %{name}, in the format %{name}.spec. + The package meets the Packaging Guidelines. + The package is licensed with a Fedora approved license and meets the Licensing Guidelines. + The License field in the package spec file matches the actual license (BSD). + The file, containing the text of the license(s) for the package, is included in %doc. + The spec file is written in American English. + The spec file for the package is legible. + The sources used to build the package, match the upstream source, as provided in the spec URL. sulaco ~/rpmbuild/SOURCES: sha256sum psutil-0.6.1.tar.gz* d665a4cc58c9a5d207fb0dc9869fc0ee10f4f66ad885e84886ef6339ccce0a6f psutil-0.6.1.tar.gz d665a4cc58c9a5d207fb0dc9869fc0ee10f4f66ad885e84886ef6339ccce0a6f psutil-0.6.1.tar.gz.1 sulaco ~/rpmbuild/SOURCES: + The package successfully compiles and builds into binary rpms on at least one primary architecture. See koji link above. + All build dependencies are listed in BuildRequires. 0 No need to handle locales. 0 No shared library files in some of the dynamic linker's default paths. + The package does NOT bundle copies of system libraries. 0 The package is not designed to be relocatable. + The package owns all directories that it creates. + The package does not list a file more than once in the spec file's %files listings. + Permissions on files are set properly. -/+ The package SHOULD HAVE a %clean section, which must contain rm -rf %{buildroot} (or $RPM_BUILD_ROOT). See below + The package consistently uses macros. + The package contains code, or permissible content. 0 No extremely large documentation files. + Anything, the package includes as %doc, does not affect the runtime of the application. 0 No C/C++ header files. 0 No static libraries. 0 No pkgconfig(.pc) files. 0 The package doesn't contain library files without a suffix (e.g. libfoo.so) in some of the dynamic linker's default paths. 0 No devel sub-package. + The package does NOT contain any .la libtool archives. 0 Not a GUI application. + The package does not own files or directories already owned by other packages. -/+ At the beginning of %install, the package SHOULD run rm -rf %{buildroot} (or $RPM_BUILD_ROOT). See below. + All filenames in rpm packages are valid UTF-8. OK, so please comment on py24 issue. Also there is one thing I'm not sure - doe we still need adding rm -rf %{buildroot} in the %install and % clean sections. It builds fine w/o it but maybe it caused some issues with a mock/koji? Actually I'd like you to add them back - just to be sure.
(In reply to comment #1) > OK, so please comment on py24 issue. Also there is one thing I'm not sure - > doe we still need adding rm -rf %{buildroot} in the %install and % clean > sections. It builds fine w/o it but maybe it caused some issues with a > mock/koji? Actually I'd like you to add them back - just to be sure. I suspect it might be due to all those #!/usr/bin/env python headers. Will investigate -- didn't notice this earlier as, it appears, either Python bytecode is either mostly unchanged between 2.4 and 2.6, or Python will silently fall back to using *.py files if the bytecodes are invalid anyway -- this works fine with glances. Good catch on the EPEL5-isms. Will add back the buildroot cleanup bits.
Fixed package: http://salimma.fedorapeople.org/specs/admin/python26-psutil-0.6.1-2.src.rpm Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=5227101 rpmlint output: python26-psutil.x86_64: W: spelling-error %description -l en_US functionalities -> functionalists, functionality, functionalist python26-psutil.x86_64: W: spelling-error %description -l en_US ps -> PS, pa, pd python26-psutil.x86_64: W: spelling-error %description -l en_US df -> sf, ff, dd python26-psutil.x86_64: W: spelling-error %description -l en_US lsof -> ls of, ls-of, Folsom python26-psutil.x86_64: W: spelling-error %description -l en_US netstat -> net stat, net-stat, nets tat python26-psutil.x86_64: W: spelling-error %description -l en_US ifconfig -> configure python26-psutil.x86_64: W: spelling-error %description -l en_US ionice -> ionic, ionize, ion ice python26-psutil.x86_64: W: spelling-error %description -l en_US iostat -> station python26-psutil.x86_64: W: spelling-error %description -l en_US iotop -> isotope python26-psutil.x86_64: W: spelling-error %description -l en_US uptime -> up time, up-time, suppertime python26-psutil.x86_64: W: spelling-error %description -l en_US pidof -> Fido python26-psutil.x86_64: W: spelling-error %description -l en_US tty -> try, ttys, atty python26-psutil.x86_64: W: spelling-error %description -l en_US taskset -> task set, task-set, taskmaster python26-psutil.x86_64: W: spelling-error %description -l en_US pmap -> pap, map, p map 2 packages and 0 specfiles checked; 0 errors, 14 warnings.
Ok, I don't see any other issues so this package is APPROVED.
Thanks! New Package SCM Request ======================= Package Name: python26-psutil Short Description: A process utilities module for Python Owners: salimma Branches: el5 InitialCC:
Git done (by process-git-requests).
python26-psutil-0.6.1-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/python26-psutil-0.6.1-2.el5
python26-psutil-0.6.1-2.el5 has been pushed to the Fedora EPEL 5 testing repository.
python26-psutil-0.6.1-2.el5 has been pushed to the Fedora EPEL 5 stable repository.