Bug 1409648
| Summary: | Review Request: python-olefile - Python package to parse, read and write Microsoft OLE2 files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sandro Mani <manisandro> |
| Component: | Package Review | Assignee: | Igor Gnatenko <ignatenko> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | package-review, rebus |
| Target Milestone: | --- | Flags: | ignatenko:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-02 21:34:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1471561 | ||
|
Description
Sandro Mani
2017-01-02 18:07:49 UTC
Some preliminary comments:
* %if 0%{?commit:1} -> %if %{defined commit}
* %{__python2} setup.py build -> %py2_build
* %{__python3} setup.py build -> %py3_build
* %{__python2} setup.py install --skip-build --root %{buildroot} -> %py2_install
* %{__python3} setup.py install --skip-build --root %{buildroot} -> %py3_install
* You can use same summary by using %{summary} in subpackages
* You can reuse %{url} in Source tag
* Would be nice to not use macro in URL, so it will be clickable
* Please move BuildRequires under subpackages
* Tests are there, but not ran
%{python3_sitelib}/* is too wide, please specify more carefully, like:
%{python3_sitelib}/%{modname}-*.egg-info
%{python3_sitelib}/%{modname}/
Spec URL: https://smani.fedorapeople.org/review/python-olefile.spec SRPM URL: https://smani.fedorapeople.org/review/python-olefile-0.44-0.2.gitbc9d196.fc26.src.rpm %changelog * Mon Jan 02 2017 Sandro Mani <manisandro> - 0.44-0.2.gitbc9d196 - Use %%py_build and %%py_install macros - Use %%summary, %%url to reduce duplicate text - Add %%check - Move BR to subpackages Add %{?python_provide:%python_provide pythonX-%{srcname}} under each subpackage (replace 2 and 3 accordingly).
Forgot about this one...
Btw, you can use common description:
%global _description \
foo\
bar\
baz.
%description %{_description}
...
%description -n python2-%{srcname} %{_description}
Python 2 version.
...
%description -n python3-%{srcname} %{_description}
Python 3 version.
Spec URL: https://smani.fedorapeople.org/review/python-olefile.spec SRPM URL: https://smani.fedorapeople.org/review/python-olefile-0.44-0.3.gitbc9d196.fc26.src.rpm %changelog * Mon Jan 02 2017 Sandro Mani <manisandro> - 0.44-0.3.gitbc9d196 - Further reduce duplicate text - Add python_provides So, after full review -- still some issues, but easy to fix during import:
* E: wrong-script-interpreter /usr/lib/python3.6/site-packages/OleFileIO_PL.py /usr/local/bin/python
* E: wrong-script-interpreter /usr/lib/python3.6/site-packages/olefile/__init__.py /usr/local/bin/python
* E: wrong-script-interpreter /usr/lib/python3.6/site-packages/olefile/olefile.py /usr/bin/env python
-> find -type f -name '*.py' -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} ';'
* E: wrong-script-end-of-line-encoding /usr/lib/python3.6/site-packages/OleFileIO_PL.py
* E: wrong-script-end-of-line-encoding /usr/lib/python3.6/site-packages/olefile/__init__.py
* W: wrong-file-end-of-line-encoding /usr/share/doc/python3-olefile/Contribute.md
* W: wrong-file-end-of-line-encoding /usr/share/doc/python3-olefile/Install.md
* W: wrong-file-end-of-line-encoding /usr/share/doc/python3-olefile/License.md
* W: wrong-file-end-of-line-encoding /usr/share/doc/python3-olefile/OLE_Overview.md
-> sed -i -e "s/\r//" *.md in %prep
Also please ask upstream to make such changes, there is no reason to not do them.
Upstream ticket at https://github.com/decalage2/olefile/issues/50 Thanks for the quick review! Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python-olefile *** Bug 1471557 has been marked as a duplicate of this bug. *** |