Bug 756435 - Review Request: pytorctl - Python bindings for controlling the Tor router
Summary: Review Request: pytorctl - Python bindings for controlling the Tor router
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 756445
TreeView+ depends on / blocked
 
Reported: 2011-11-23 15:15 UTC by Juan Orti
Modified: 2012-05-03 07:31 UTC (History)
5 users (show)

Fixed In Version: pytorctl-0-0.9.20111213git.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-25 05:02:02 UTC
Type: ---
Embargoed:
tcallawa: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Juan Orti 2011-11-23 15:15:53 UTC
Spec URL: https://raw.github.com/jorti/pytorctl-fedora-package/v0-0.6.20110927git/SPECS/pytorctl.spec
SRPM URL: https://github.com/jorti/pytorctl-fedora-package/raw/v0-0.6.20110927git/SRPMS/pytorctl-0-0.6.20110927git.fc16.src.rpm
Description: This is a library in Python to control the Tor router. It is needed by other projects like arm. There is no official release yet, the code is taken from the git repository, that's the cause of the rpmlint warning.

$ rpmlint SPECS/pytorctl.spec SRPMS/pytorctl-0-0.6.20110927git.fc16.src.rpm RPMS/noarch/pytorctl-0-0.6.20110927git.fc16.noarch.rpm 

SPECS/pytorctl.spec: W: invalid-url Source0: pytorctl-0-20110927git.tar.gz
pytorctl.src: W: invalid-url Source0: pytorctl-0-20110927git.tar.gz
2 packages and 1 specfiles checked; 0 errors, 2 warnings.

Comment 1 Juan Orti 2011-12-13 22:57:57 UTC
I have made some changes, the new files are:

Spec URL: https://raw.github.com/jorti/pytorctl-fedora-package/v0-0.7.20111213git/SPECS/pytorctl.spec
SRPM URL: https://github.com/jorti/pytorctl-fedora-package/raw/v0-0.7.20111213git/SRPMS/pytorctl-0-0.7.20111213git.fc16.src.rpm

The only warning of rpmlint is because the source is fetched from git.

$ rpmlint SPECS/pytorctl.spec RPMS/noarch/pytorctl-0-0.7.20111213git.fc16.noarch.rpm SRPMS/pytorctl-0-0.7.20111213git.fc16.src.rpm 
SPECS/pytorctl.spec: W: invalid-url Source0: pytorctl-0-20111213git.tar.gz
pytorctl.src: W: invalid-url Source0: pytorctl-0-20111213git.tar.gz
2 packages and 1 specfiles checked; 0 errors, 2 warnings.

Comment 2 T.C. Hollingsworth 2011-12-20 15:15:19 UTC
Why do you prevent RHEL5 from building this as noarch?  RHEL 5 handles noarch packages just fine.  (It's noarch *subpackages* of arch-dependent packages that are an issue.)

Please use "cp -p" to retain timestamp information from upstream.  

Also, consider doing something like "install -pm0755" to avoid having to chmod everything post-copy.  (It's not necessary, but simpler.)

Finally, you don't need the definition for %{?python_sitearch} at the top, since this package isn't arch-specific.

Comment 3 Juan Orti 2011-12-21 13:34:50 UTC
(In reply to comment #2)

Thank you for your suggestions, I have updated the files:

Spec URL: https://raw.github.com/jorti/pytorctl-fedora-package/v0-0.8.20111213git/SPECS/pytorctl.spec
SRPM URL: https://github.com/jorti/pytorctl-fedora-package/raw/v0-0.8.20111213git/SRPMS/pytorctl-0-0.8.20111213git.fc16.src.rpm

> Why do you prevent RHEL5 from building this as noarch?  RHEL 5 handles noarch
> packages just fine.  (It's noarch *subpackages* of arch-dependent packages that
> are an issue.)

Ok, I got it wrong, now it's fixed.

> Please use "cp -p" to retain timestamp information from upstream.  
> 
> Also, consider doing something like "install -pm0755" to avoid having to chmod
> everything post-copy.  (It's not necessary, but simpler.)

I applied those permissions because rpmlint was giving errors. I have fixed this by installing the files without execution and removing the python shebang from the files as seen here: http://fedoraproject.org/wiki/Packaging_tricks#Remove_shebang_from_Python_libraries

Comment 4 Juan Orti 2012-04-12 11:26:42 UTC
Updated files
SPEC: https://raw.github.com/jorti/pytorctl-fedora-package/v0-0.9.20111213git/SPECS/pytorctl.spec
SRPM: https://github.com/jorti/pytorctl-fedora-package/raw/v0-0.9.20111213git/SRPMS/pytorctl-0-0.9.20111213git.fc16.src.rpm

Rpmlint output:
pytorctl.src: W: invalid-url Source0: pytorctl-0-20111213git.tar.gz
SPECS/pytorctl.spec: W: invalid-url Source0: pytorctl-0-20111213git.tar.gz
2 packages and 1 specfiles checked; 0 errors, 2 warnings.

Comment 5 Tom "spot" Callaway 2012-04-16 14:56:45 UTC
= Review =

Good:

- rpmlint checks return:
pytorctl.src: W: invalid-url Source0: pytorctl-0-20111213git.tar.gz
2 packages and 0 specfiles checked; 0 errors, 1 warnings.

Safe to ignore, process for generating source documented in spec file.

- package meets naming guidelines
- package meets packaging guidelines
- license (BSD) OK, text in %doc, matches source
- spec file legible, in am. english
- source matches upstream (cannot do tarball match, but git sync checks out)
- package compiles on f17 (x86_64)
- no missing BR
- no unnecessary BR
- no locales
- not relocatable
- owns all directories that it creates
- no duplicate files
- permissions ok
- macro use consistent
- code, not content
- no need for -docs
- nothing in %doc affects runtime
- no need for .desktop file 

APPROVED, pending resolution of 738556 for sponsorship.

Comment 6 Juan Orti 2012-04-19 11:22:59 UTC
New Package SCM Request
=======================
Package Name: pytorctl
Short Description: Python bindings for controlling the Tor router
Owners: jorti
Branches: f15 f16 f17
InitialCC:

Comment 7 Gwyn Ciesla 2012-04-19 12:15:53 UTC
Git done (by process-git-requests).

Comment 8 Fedora Update System 2012-04-20 16:33:45 UTC
pytorctl-0-0.9.20111213git.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/pytorctl-0-0.9.20111213git.fc17

Comment 9 Fedora Update System 2012-04-21 21:02:21 UTC
pytorctl-0-0.9.20111213git.fc17 has been pushed to the Fedora 17 testing repository.

Comment 10 Fedora Update System 2012-04-24 14:52:37 UTC
pytorctl-0-0.9.20111213git.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/pytorctl-0-0.9.20111213git.fc16

Comment 11 Fedora Update System 2012-04-24 14:53:44 UTC
pytorctl-0-0.9.20111213git.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pytorctl-0-0.9.20111213git.fc15

Comment 12 Fedora Update System 2012-04-25 05:02:02 UTC
pytorctl-0-0.9.20111213git.fc17 has been pushed to the Fedora 17 stable repository.

Comment 13 Fedora Update System 2012-05-03 07:30:40 UTC
pytorctl-0-0.9.20111213git.fc16 has been pushed to the Fedora 16 stable repository.

Comment 14 Fedora Update System 2012-05-03 07:31:33 UTC
pytorctl-0-0.9.20111213git.fc15 has been pushed to the Fedora 15 stable repository.


Note You need to log in before you can comment on or make changes to this bug.