Spec URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm.spec SRPM URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm-1.0.4l-1.fc24.src.rpm Description: PyHSM is a python module and set of utilities to manage a YubiHSM, Yubico's Hardware Security Module. Fedora Account System Username: kevin koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=11065502 rpmlint says: 2 packages and 0 specfiles checked; 0 errors, 0 warnings.
%py2_build %py2_install Remove rm -rf $RPMBUILDROOT. Is it python2 only? Looks OK otherwise.
kevin's scratch build of python-pyhsm-1.0.4l-2.fc24.src.rpm for f24 completed http://koji.fedoraproject.org/koji/taskinfo?taskID=12018984
Made those changes (%py2_build / %py2_install), removed rm -rf in install. Yes, it's python2 only at this time. Spec URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm.spec SRPM URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm-1.0.4l-2.fc24.src.rpm
- license is OK - license file is present, %license is used - new python macros are used (mostly) - rpmlint: 2 packages and 0 specfiles checked; 0 errors, 0 warnings. - provides: python-pyhsm = 1.0.4l-2.fc24 Please generate python2-pyhsm binary subpackage, and add %{?python_provide:%python_provide python2-%{srcname}}. - requires: /bin/sh /usr/bin/env /usr/bin/python python(abi) = 2.7 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 OK, except that /usr/bin/env is suspicious. run.sh in Tests/ is completely broken. Should be either fixed or removed. Some files in /bin/ use #!/usr/bin/env python, others use #!/usr/bin/python. Please fix them all to use #!%{__python2}.
kevin's scratch build of python-pyhsm-1.0.4l-3.fc24.src.rpm for f24 completed http://koji.fedoraproject.org/koji/taskinfo?taskID=12073282
ok. I created the python2 subpackage. Can you explain how run.sh in Tests is broken? It worked fine here, but note (as per the comment in the spec file) it's commented out because you have to have a YubiHSM to test against. Is there a guideline saying to replace all /usr/bin/env calls? I agree it's not great, but I would prefer to ask upstream to change that instead of carrying some large patch. Spec URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm.spec SRPM URL: https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm-1.0.4l-3.fc24.src.rpm
(In reply to Kevin Fenzi from comment #6) > ok. I created the python2 subpackage. > > Can you explain how run.sh in Tests is broken? It worked fine here, but note > (as per the comment in the spec file) it's commented out because you have to > have a YubiHSM to test against. $ /usr/share/doc/python2-pyhsm/Tests/run.sh python: can't open file '/usr/share/doc/python2-pyhsm/Tests/../setup.py': [Errno 2] No such file or directory It also refers to ../Lib, which is not in the package at all. > Is there a guideline saying to replace all /usr/bin/env calls? I agree it's > not great, but I would prefer to ask upstream to change that instead of > carrying some large patch. Some executables in the package in /usr/bin/ have /usr/bin/env python, others have /usr/bin/python. This is kind of inelegant. Also there's bigger chance of running a user-installed python by mistake. Changing it to /usr/bin/python2 everywhere makes things crystal clear. I don't think that there's an official guideline, but I think it's generally recommended. > Spec URL: > https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm.spec > SRPM URL: > https://www.scrye.com/~kevin/fedora/review/python-pyhsm/python-pyhsm-1.0.4l- > 3.fc24.src.rpm OK, please fix (or not) the two small issues pointed out above as you see fit. Package is APPROVED.
(In reply to Zbigniew Jędrzejewski-Szmek from comment #7) > > $ /usr/share/doc/python2-pyhsm/Tests/run.sh > python: can't open file '/usr/share/doc/python2-pyhsm/Tests/../setup.py': > [Errno 2] No such file or directory > > It also refers to ../Lib, which is not in the package at all. Oh right. It does the tests from the source tree after build, but before install. That Lib is in the source checkout. > Some executables in the package in /usr/bin/ have /usr/bin/env python, > others have /usr/bin/python. This is kind of inelegant. Also there's bigger > chance of running a user-installed python by mistake. Changing it to > /usr/bin/python2 everywhere makes things crystal clear. I don't think that > there's an official guideline, but I think it's generally recommended. ok. I'll check with upstream and if they don't respond or the like carry a patch. > OK, please fix (or not) the two small issues pointed out above as you see > fit. Package is APPROVED. Thank you very much for the review!
A patch would be overkill, imho: sed -i '1s|^#!.*python.*$|#!%{__python2} -s|' %{buildroot}%{_bindir}/* (untested)
Sure, I meant a local change in the spec, not a patch specifically, but sure.
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/python-pyhsm
python-pyhsm-1.0.4l-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-c7f5a96b03
python-pyhsm-1.0.4l-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-8ccbad579c
python-pyhsm-1.0.4l-4.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-a37053b711
python-pyhsm-1.0.4l-4.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update python-pyhsm' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-8ccbad579c
python-pyhsm-1.0.4l-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update python-pyhsm' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-c7f5a96b03
python-pyhsm-1.0.4l-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update python-pyhsm' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-a37053b711
python-pyhsm-1.0.4l-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
python-pyhsm-1.0.4l-4.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
python-pyhsm-1.0.4l-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.