Bug 449667 - Review Request: python-yenc - yEnc Module for Python
Review Request: python-yenc - yEnc Module for Python
Product: Fedora
Classification: Fedora
Component: Package Review (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Tibbitts
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-02 18:44 EDT by Conrad Meyer
Modified: 2008-08-09 21:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-11 14:48:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
tibbs: fedora‑review+
kevin: fedora‑cvs+

Attachments (Terms of Use)

  None (edit)
Description Conrad Meyer 2008-06-02 18:44:04 EDT
Spec URL: http://konradm.fedorapeople.org/fedora/SPECS/python-yenc.spec
SRPM URL: http://konradm.fedorapeople.org/fedora/SRPMS/python-yenc-0.3-1.fc9.src.rpm
yEnc decoding library for Python.
Comment 1 Nigel Jones 2008-06-03 01:58:18 EDT

I just had a quick look, it looks _ok_ but I think it needs some extra work
before it can be approved etc etc etc

The method you have used is acceptable for Fedora 8 but the powers that be
changed the SOP/best practice for handling eggs & setuptools, check out
for an example, or have a look at python-dictclient's SPEC file -
- which was recently accepted into Fedora for a practical example.

I'm not sure if I'd be able to do a full review, it depends how much time I
have/if anyone else jumps in ahead.
Comment 2 Conrad Meyer 2008-06-03 02:13:53 EDT
Alright, sorry if it's not quite kosher yet. I was working off of the rpmdev-
the references you cited.
Comment 3 Conrad Meyer 2008-06-03 02:19:19 EDT
Apparently lost a line somewhere. "I was working off of the rpmdev-newspec
python- template and Packaging/Python and I'm going to take a look at the
references you cited."
Comment 6 Conrad Meyer 2008-06-06 01:24:52 EDT
Ugh, this is very frustrating. I'm sorry for so many comments (and incorrect
links) but my browser seems pretty broken. Please try and click the correct ones
Comment 7 Jason Tibbitts 2008-06-06 19:40:10 EDT
Looks mostly OK.  rpmlint says:
  E: non-standard-executable-perm /usr/lib64/python2.5/site-packages/_yenc.so 
which seems a bit odd; on my system all such python loadable modules are mode
755, mode 655, or mode 555.  It's probably best to clean this up; we don't know
how people might use group root.

  W: summary-not-capitalized yEnc Module for Python
This is OK; yEnc is the appropriate spelling.

Normally I'd suggest that you refer to the actual upstream for this module
(http://golug.cc.uniud.it/yenc.html) instead of another project which merely
keeps a copy, but I can't get to the actual upstream at the moment so perhaps
it's gone away.

I don't see the point of indicating in the %description that the module is used
by "hellanzb"; it's somewhat of a non sequitur since there's nothing to indicate
what hellanzb is, there's no guarantee that nothing else will use it, and if
someone wants to see what uses this module, they need only use the package's
dependency information.

It might be nice to define yEnc in the %description, though.  This, from
wikipedia, seems appropriate:
  yEnc is a binary-to-text encoding scheme for transferring binary files in 
  messages on Usenet or via e-mail.

For some reason all of the compiler flags appear either twice or three times
when gcc is called.  I have no idea why this is.  The tripled flags come from
extra_compile_args in setup.py, I think, but I don't know where the others come
from.  Anyway, it doesn't seem to cause any problems, and almost certainly isn't
a bug in this package anyway.

There's some kind of test suite present; can you see if it's runnable?  I think
it should be if you set PYTHONPATH properly.

* source files match upstream:
* package meets naming and versioning guidelines.
* specfile is properly named, is cleanly written and uses macros consistently.
* summary is OK.
X description could use a couple of tweaks.
* dist tag is present.
* build root is OK.
* license field matches the actual license.
* license is open source-compatible.
* license text included in package.
* latest version is being packaged.
* BuildRequires are proper.
* compiler flags are appropriate.
* %clean is present.
* package builds in mock (rawhide, x86_64).
* package installs properly.
* debuginfo package looks complete.
X rpmlint has a valid complaint.
* final provides and requires are sane:
   python-yenc = 0.3-2.fc10
   python(abi) = 2.5

? %check is not present but there seems to be a test suite present.
* no shared libraries are added to the regular linker search paths.
* owns the directories it creates.
* doesn't own any directories it shouldn't.
* no duplicates in %files.
X file permissions on _yenc.so are odd.
* no scriptlets present.
* code, not content.
* documentation is small, so no -doc subpackage is necessary.
* %docs are not necessary for the proper functioning of the package.
* no headers.
* no pkgconfig files.
* no static libraries.
* no libtool .la files.
Comment 9 Jason Tibbitts 2008-06-06 21:19:27 EDT
Unfortunately the new ones don't build.  The tests fail because they can't
import the yenc module directly, since it's not installed.  That's why I
mentioned messing with PYTHONPATH.

Are you testing builds in mock or koji?
Comment 10 Conrad Meyer 2008-06-06 21:36:51 EDT
Ah, my mistake. I didn't try it in mock or koji, oops. New SRPM (spec hasn't

Builds on koji:
Comment 11 Jason Tibbitts 2008-06-10 15:55:56 EDT
Actually that chmod should be "g-w" if you want to fix up the "strange
permission" complaint, but it's not a really big deal.  Everything else looks
good to me; the tests seem to run fine.

APPROVED; you can fix up the permission bit, if you want to, when you check in.
Comment 12 Conrad Meyer 2008-06-10 16:05:58 EDT
New Package CVS Request
Package Name: python-yenc
Short Description: yEnc Module for Python
Owners: konradm
Branches: F-8 F-9
Cvsextras Commits: yes
Comment 13 Kevin Fenzi 2008-06-11 12:48:32 EDT
cvs done.
Comment 14 Conrad Meyer 2008-06-11 14:48:40 EDT
Built in rawhide (http://koji.fedoraproject.org/koji/taskinfo?taskID=657964).
Comment 15 Conrad Meyer 2008-08-08 07:19:33 EDT
Package Change Request
Package Name: python-yenc
New Branches: EL-5
Comment 16 Kevin Fenzi 2008-08-09 21:39:50 EDT
cvs done.

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