https://bugzilla.redhat.com/show_bug.cgi?id=1776669
Bug ID: 1776669 Summary: Review Request: python-pycdio - A Python interface to the CD Input and Control library Product: Fedora Version: rawhide Hardware: All OS: Linux Status: NEW Component: Package Review Severity: medium Priority: medium Assignee: nobody@fedoraproject.org Reporter: kevin@scrye.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
Spec URL: https://www.scrye.com/~kevin/fedora/review/python-pycdio/python-pycdio.spec SRPM URL: https://www.scrye.com/~kevin/fedora/review/python-pycdio/python-pycdio-2.0.0... Description:
The pycdio (and libcdio) libraries encapsulate CD-ROM reading and control. Python programs wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM can use this library.
Fedora Account System Username: kevin
This is a rename of the orphaned (for 4 weeks) pycdio package.
I've renamed it python-pycdio and enabled tests and cleaned up the spec.
rpmlint says:
python-pycdio.src: W: spelling-error %description -l en_US libcdio -> libido
can be ignored.
scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=39351137
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
Miro Hrončok mhroncok@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mhroncok@redhat.com Assignee|nobody@fedoraproject.org |mhroncok@redhat.com Doc Type|--- |If docs needed, set a value Flags| |fedora-review?
--- Comment #1 from Miro Hrončok mhroncok@redhat.com --- Quick eyes only check:
1. please add %python_provide: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_the_pytho...
2. you can use %pypi_source in Source0: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_fi...
3. Obsoletes: pycdio < 2.0.0-5 -- maybe it should be < 2.0.0-6? I see 2.0.0-5.fc31 in Fedora 31
4. Requires: python3 is redundant
5. %{python3_sitearch}/* should not be used https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_files_to_...
Will run automated checks on the next spec iteration.
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
Neal Gompa ngompa13@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ngompa13@gmail.com
--- Comment #2 from Neal Gompa ngompa13@gmail.com --- If we want this in EPEL, you'll probably want to replace "python3-" with "python%{python3_pkgversion}-" so that it'll seamlessly work across EPEL releases.
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
--- Comment #3 from Neal Gompa ngompa13@gmail.com --- Also, use either the %python3 or %__python3 macros for calling the interpreter directly, because we don't always have a /usr/bin/python3 for Python 3 across EPEL releases...
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
--- Comment #4 from Kevin Fenzi kevin@scrye.com --- (In reply to Miro Hrončok from comment #1)
Quick eyes only check:
- please add %python_provide:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ #_the_python_provide_macro
Done.
- you can use %pypi_source in Source0:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ #_source_files_from_pypi
Done.
- Obsoletes: pycdio < 2.0.0-5 -- maybe it should be < 2.0.0-6? I see
2.0.0-5.fc31 in Fedora 31
Done.
- Requires: python3 is redundant
Removed.
- %{python3_sitearch}/* should not be used
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ #_files_to_include
Fixed.
Will run automated checks on the next spec iteration.
ok
(In reply to Neal Gompa from comment #2)
If we want this in EPEL, you'll probably want to replace "python3-" with "python%{python3_pkgversion}-" so that it'll seamlessly work across EPEL releases.
The epel7 version is likely to be very different as it needs to support python2 (at least until koji moves to python3 there, which will likely not be a while). This spec works fine for epel8. I have no plans for epel6 support.
(In reply to Neal Gompa from comment #3)
Also, use either the %python3 or %__python3 macros for calling the interpreter directly, because we don't always have a /usr/bin/python3 for Python 3 across EPEL releases...
Done.
New spec/src.rpm:
Spec URL: https://www.scrye.com/~kevin/fedora/review/python-pycdio/python-pycdio.spec SRPM URL: https://www.scrye.com/~kevin/fedora/review/python-pycdio/python-pycdio-2.0.0...
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
Miro Hrončok mhroncok@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |POST Flags|fedora-review? |fedora-review+ |requires_doc_text? |
--- Comment #5 from Miro Hrončok mhroncok@redhat.com --- Package Review ==============
Package APPROVED (version in spec).
Consider listing the egg-info with trailing slash to avoid it becoming a file some day.
Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
===== MUST items =====
C/C++: [-]: Development (unversioned) .so files in -devel subpackage, if present. Note: Python libraries.
Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "GPL (v3 or later)", "GPL (v2 or later)". [x]: License file installed when any subpackage combination is installed. [x]: Package does not own files or directories owned by other packages. [x]: %build honors applicable compiler flags or justifies otherwise. [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [-]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [x]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Useful -debuginfo package or justification otherwise. [x]: Package is not known to require an ExcludeArch tag. [-]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 40960 bytes in 5 files. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: 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 %license. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package must not depend on deprecated() packages. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local
Python: [x]: Python eggs must not download any dependencies during the build process. [x]: A package which is used by another package via an egg interface should provide egg info. [x]: Package meets the Packaging Guidelines::Python [x]: Package contains BR: python2-devel or python3-devel [x]: Packages MUST NOT have dependencies (either build-time or runtime) on packages named with the unversioned python- prefix unless no properly versioned package exists. Dependencies on Python packages instead MUST use names beginning with python2- or python3- as appropriate. [x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files [x]: Binary eggs must be removed in %prep
===== SHOULD items =====
Generic: [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [-]: Fully versioned dependency in subpackages if applicable. [?]: Package functions as described. [?]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: Patches link to upstream bugs/comments/lists or are otherwise justified. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [?]: Package should compile and build into binary rpms on all supported architectures. [x]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: Sources can be downloaded from URI in Source: tag [x]: SourceX is a working URL. [x]: Spec use %global instead of %define unless justified.
===== EXTRA items =====
Generic: [!]: Spec file according to URL is the same as in SRPM. Note: Spec file as given by url is not the same as in SRPM (see attached diff). See: (this test has no URL) [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). [x]: Large data in /usr/share should live in a noarch subpackage if package is arched.
Rpmlint ------- Checking: python3-pycdio-2.0.0-7.fc32.x86_64.rpm python-pycdio-debugsource-2.0.0-7.fc32.x86_64.rpm python-pycdio-2.0.0-7.fc32.src.rpm python3-pycdio.x86_64: W: spelling-error %description -l en_US libcdio -> libido python-pycdio.src: W: spelling-error %description -l en_US libcdio -> libido python-pycdio.src:8: W: mixed-use-of-spaces-and-tabs (spaces: line 8, tab: line 1) 3 packages and 0 specfiles checked; 0 errors, 3 warnings.
mixed-use-of-spaces-and-tabs fixed in spec.
Rpmlint (installed packages) ---------------------------- python3-pycdio.x86_64: W: spelling-error %description -l en_US libcdio -> libido python3-pycdio.x86_64: W: invalid-url URL: http://www.gnu.org/software/libcdio/ <urlopen error [Errno -2] Name or service not known> python-pycdio-debugsource.x86_64: W: invalid-url URL: http://www.gnu.org/software/libcdio/ <urlopen error [Errno -2] Name or service not known> 2 packages and 0 specfiles checked; 0 errors, 3 warnings.
Source checksums ---------------- https://files.pythonhosted.org/packages/source/p/pycdio/pycdio-2.0.0.tar.gz : CHECKSUM(SHA256) this package : 128e9ae12233f7e5a9a2be6d03d2d836a04d99b44c41dc9312ca14ea2a0530a8 CHECKSUM(SHA256) upstream package : 128e9ae12233f7e5a9a2be6d03d2d836a04d99b44c41dc9312ca14ea2a0530a8
Requires -------- python3-pycdio (rpmlib, GLIBC filtered): libc.so.6()(64bit) libcdio.so.18()(64bit) libcdio.so.18(CDIO_18)(64bit) libiso9660.so.11()(64bit) libiso9660.so.11(ISO9660_11)(64bit) libpthread.so.0()(64bit) python(abi) rtld(GNU_HASH)
python-pycdio-debugsource (rpmlib, GLIBC filtered):
Provides -------- python3-pycdio: pycdio python-pycdio python3-pycdio python3-pycdio(x86-64) python3.8dist(pycdio) python3dist(pycdio)
python-pycdio-debugsource: python-pycdio-debugsource python-pycdio-debugsource(x86-64)
Diff spec file in url and in SRPM --------------------------------- --- /home/churchyard/rpmbuild/FedoraReview/1776669-python-pycdio/srpm/python-pycdio.spec 2019-11-26 22:43:57.595911560 +0100 +++ /home/churchyard/rpmbuild/FedoraReview/1776669-python-pycdio/srpm-unpacked/python-pycdio.spec 2019-11-26 22:23:18.000000000 +0100 @@ -6,5 +6,5 @@ License: GPLv3+ URL: http://www.gnu.org/software/libcdio/ -Source0: %pypi_source pycdio +Source0: %pypi_source pycdio # https://git.savannah.gnu.org/cgit/libcdio/pycdio.git/commit/?id=4c68c5a44f98... # https://savannah.gnu.org/bugs/?56739 @@ -47,5 +47,5 @@
%check -%python3 setup.py nosetests +python3 setup.py nosetests
%files -n python3-pycdio
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
--- Comment #6 from Kevin Fenzi kevin@scrye.com --- Thanks for the speedy review. Will add the / on import.
Repo and branches requested.
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
--- Comment #7 from Gwyn Ciesla gwync@protonmail.com --- (fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/python-pycdio
https://bugzilla.redhat.com/show_bug.cgi?id=1776669
Fabian Affolter mail@fabian-affolter.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |CLOSED CC| |mail@fabian-affolter.ch Resolution|--- |RAWHIDE Last Closed| |2020-05-19 11:03:23
package-review@lists.fedoraproject.org