Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=885495
Bug ID: 885495 Summary: Review Request: python-keyczar - open source cryptographic toolkit Product: Fedora Version: rawhide Component: Package Review Severity: medium Priority: medium Reporter: maxim@wzzrd.com
Spec URL: http://wzzrd.fedorapeople.org/python-keyczar/python-keyczar.spec SRPM URL: http://wzzrd.fedorapeople.org/python-keyczar/python-keyczar-0.71b-1.fc19.src... Description: python-keyczar is an open source cryptographic toolkit designed to make it easier and safer for developers to use cryptography in their applications. Fedora Account System Username: wzzrd
koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=4771313
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=885495
Eduardo Echeverria echevemaster@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |echevemaster@gmail.com
--- Comment #1 from Eduardo Echeverria echevemaster@gmail.com --- Hi Maxim
In epel5 the packages that install python modules needs to define python_sitelib or python to indicate where to find the python directory and what modules are installed in, This is no needed in the latest releases of Fedora.
Also
%if 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %endif
not correct, should be:
%if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif
http://fedoraproject.org/wiki/Packaging:Python#Macros
Now, if you want to provide this package to epel5, see https://fedoraproject.org/wiki/EPEL/GuidelinesAndPolicies#Distribution_speci...
The entry
%{python_sitelib}/*
should be
%{python_sitelib}/
see: https://fedoraproject.org/wiki/Packaging:UnownedDirectories
- The package appears to contain unit tests, if so should run the tests, see the directory "tests" in the tarball, speciffically alltests.py
kind regards
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=885495
--- Comment #2 from Maxim Burgerhout maxim@wzzrd.com --- Thanks for reviewing, I appreciate it.
All fixed errors fixed. I did the %files entry slightly different in order not to own the site-packages directory itself.
New versions of SPEC and SRPM at the above location.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=885495
--- Comment #3 from Eduardo Echeverria echevemaster@gmail.com --- Hi Maxim:
I have bad news
python-pyasn1 not is available in epel5 http://koji.fedoraproject.org/koji/packageinfo?packageID=5620
I tried koji build and fail the build of package http://koji.fedoraproject.org/koji/taskinfo?taskID=4771725 http://kojipkgs.fedoraproject.org//work/tasks/1725/4771725/mock_output.log
Therefore may not provide the package for epel5, unless you talk to the package maintainer, the maintainer is rcritten his email is: rcritten at redhat dot com,
As an aside, if hypothetically we could build for now epel5:
the line what I marked with asterisk (buildroot), should not be there
%if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
* BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%endif
Usually, going after Source0:
Source0: http://keyczar.googlecode.com/files/%%7Bname%7D-%%7Bversion%7D.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
- Note that if you can not obtain of the package python-pyasn1 in epel5, will need to remove all specific references to building to epel5 (buildroot, %clean and the rm -rf $RPM_BUILD_ROOT), IMHO you should build for the latest releases of Fedora and then may ask change request according to this:
https://fedoraproject.org/wiki/Package_SCM_admin_requests#Package_Change_Req...
- Please bump the release number of the spec file on changes and try to write a meaningful changelog entry https://fedoraproject.org/wiki/Packaging:Guidelines#Changelogs
There are issues with the license (there is no proper license file)
===== MUST items =====
[ ]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %doc. [ ]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Apache (v2.0)", "Unknown or generated". 2 files have unknown license. Detailed output of licensecheck in /home/makerpm/keyczar/885495-python- keyczar/licensecheck.txt
Please see the next link for more details on how to proceed.
https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=885495
Maxim Burgerhout maxim@wzzrd.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|package-review@lists.fedora | |project.org |
--- Comment #4 from Maxim Burgerhout maxim@wzzrd.com --- I agree on the EL5 / EL6 point. I removed the EL5 specific code from the spec file.
I contacted upstream in order to get a LICENSE file added to the tarball.
I'll upload an updated version hopefully containing the LICENSE file from upstream :)
Are there other things that need fixing? Might as well do those now.
I'll contact the maintainer of python-pyasn1 as well.
package-review@lists.fedoraproject.org