Spec URL: https://m4rtink.fedorapeople.org/packaging/pydbus/pydbus.spec SRPM URL: https://m4rtink.fedorapeople.org/packaging/pydbus/python-pydbus-0.5.1-1.fc24.src.rpm Description: The pydbus module provides pythonic DBUS bindings. It isbased on PyGI, the Python GObject Introspection bindings, which is the recommended way to use GLib from Python. Fedora Account System Username: m4rtink
- rpmlint is not happy (check below) - The ownership of the '/usr/lib/python*/site-packages/pydbus/' - The examples should go into a examples subpackage. - Consider to add a %check section as tests are available. - pydbus.spec should be python-pydbus.spec - Download URL is wrong - 'URL: https://pypi.python.org/pypi/pydbus/%{srcname}' is very copy-&-paste unfriendly for humans. Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed ===== MUST items ===== 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. [-]: 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]: License field in the package spec file matches the actual license. Note: There is no build directory. Running licensecheck on vanilla upstream sources. No licenses found. Please check the source files for licenses manually. [-]: License file installed when any subpackage combination is installed. [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. [-]: 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. [-]: 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]: 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 20480 bytes in 2 files. [!]: 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]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines. [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 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]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local Python: [-]: Binary eggs must be removed in %prep Note: Cannot find any build in BUILD directory (--prebuilt option?) [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 ===== SHOULD items ===== Generic: [!]: Sources can be downloaded from URI in Source: tag Note: Could not download Source0: https://files.pythonhosted.org/packages/source/e/pydbus/pydbus-0.5.1.tar.gz See: http://fedoraproject.org/wiki/Packaging:Guidelines#Tags [!]: 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). [x]: Fully versioned dependency in subpackages if applicable. Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python2-pydbus , python3-pydbus [x]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [!]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: Package should compile and build into binary rpms on all supported architectures. [-]: %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]: 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: Bad spec filename: /home/fab/Documents/repos/reviews/1395947-pydbus/srpm- unpacked/pydbus.spec See: (this test has no URL) [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). Rpmlint ------- Checking: python2-pydbus-0.5.1-1.fc24.noarch.rpm python3-pydbus-0.5.1-1.fc24.noarch.rpm python-pydbus-0.5.1-1.fc24.src.rpm python2-pydbus.noarch: W: spelling-error Summary(en_US) Pythonic -> Python python2-pydbus.noarch: W: summary-ended-with-dot C Pythonic DBus library. python2-pydbus.noarch: W: spelling-error %description -l en_US pythonic -> Python, python python2-pydbus.noarch: W: spelling-error %description -l en_US isbased -> is based, is-based, based python2-pydbus.noarch: W: invalid-url URL: https://pypi.python.org/pypi/pydbus/pydbus HTTP Error 404: Not Found python2-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/client.py /usr/bin/env python python2-pydbus.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/client.py 644 /usr/bin/env python python2-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/server.py /usr/bin/env python python2-pydbus.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/server.py 644 /usr/bin/env python python3-pydbus.noarch: W: spelling-error Summary(en_US) Pythonic -> Python python3-pydbus.noarch: W: summary-ended-with-dot C Pythonic DBus library. python3-pydbus.noarch: W: spelling-error %description -l en_US pythonic -> Python, python python3-pydbus.noarch: W: spelling-error %description -l en_US isbased -> is based, is-based, based python3-pydbus.noarch: W: invalid-url URL: https://pypi.python.org/pypi/pydbus/pydbus HTTP Error 404: Not Found python3-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/server.py /usr/bin/env python python3-pydbus.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/server.py 644 /usr/bin/env python python3-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/client.py /usr/bin/env python python3-pydbus.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/client.py 644 /usr/bin/env python python-pydbus.src: W: spelling-error Summary(en_US) Pythonic -> Python python-pydbus.src: W: summary-ended-with-dot C Pythonic DBus library. python-pydbus.src: W: spelling-error %description -l en_US pythonic -> Python, python python-pydbus.src: W: spelling-error %description -l en_US isbased -> is based, is-based, based python-pydbus.src: W: invalid-url URL: https://pypi.python.org/pypi/pydbus/pydbus HTTP Error 404: Not Found python-pydbus.src: E: invalid-spec-name python-pydbus.src: W: invalid-url Source0: https://files.pythonhosted.org/packages/source/e/pydbus/pydbus-0.5.1.tar.gz HTTP Error 404: Not Found 3 packages and 0 specfiles checked; 9 errors, 16 warnings. Rpmlint (installed packages) ---------------------------- python2-pydbus.noarch: W: spelling-error Summary(en_US) Pythonic -> Python python2-pydbus.noarch: W: summary-ended-with-dot C Pythonic DBus library. python2-pydbus.noarch: W: spelling-error %description -l en_US pythonic -> Python, python python2-pydbus.noarch: W: spelling-error %description -l en_US isbased -> is based, is-based, based python2-pydbus.noarch: W: invalid-url URL: https://pypi.python.org/pypi/pydbus/pydbus HTTP Error 404: Not Found python2-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/server.py /usr/bin/env python python2-pydbus.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/server.py 644 /usr/bin/env python python2-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/client.py /usr/bin/env python python2-pydbus.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/pydbus/examples/clientserver/client.py 644 /usr/bin/env python python3-pydbus.noarch: W: spelling-error Summary(en_US) Pythonic -> Python python3-pydbus.noarch: W: summary-ended-with-dot C Pythonic DBus library. python3-pydbus.noarch: W: spelling-error %description -l en_US pythonic -> Python, python python3-pydbus.noarch: W: spelling-error %description -l en_US isbased -> is based, is-based, based python3-pydbus.noarch: W: invalid-url URL: https://pypi.python.org/pypi/pydbus/pydbus HTTP Error 404: Not Found python3-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/client.py /usr/bin/env python python3-pydbus.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/client.py 644 /usr/bin/env python python3-pydbus.noarch: E: wrong-script-interpreter /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/server.py /usr/bin/env python python3-pydbus.noarch: E: non-executable-script /usr/lib/python3.5/site-packages/pydbus/examples/clientserver/server.py 644 /usr/bin/env python 2 packages and 0 specfiles checked; 8 errors, 10 warnings. Requires -------- python2-pydbus (rpmlib, GLIBC filtered): python(abi) python-gobject-base python3-pydbus (rpmlib, GLIBC filtered): python(abi) python3-gobject-base Provides -------- python2-pydbus: python-pydbus python2-pydbus python3-pydbus: python3-pydbus Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02 Command line :/usr/bin/fedora-review -b 1395947 Buildroot used: fedora-24-x86_64 Active plugins: Python, Generic, Shell-api Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6
(In reply to Fabian Affolter from comment #1) > - rpmlint is not happy (check below) > - The ownership of the '/usr/lib/python*/site-packages/pydbus/' Changed ownership lines from: %{python2_sitelib}/* %{python3_sitelib}/* To: %{python2_sitelib}/pydbus/* %{python3_sitelib}/pydbus/* (Hope I understand this correctly.) > - The examples should go into a examples subpackage. Add an -examples subpackage. > - Consider to add a %check section as tests are available. I've tried to run the tests, but they always fail with an exception. As there are some docker files in the tests directy it looks like some additional setup, possibly out of scope of what we can reasonably run during build in Koji. In any case I've opened an upstream issue about this to get a clarififcation: https://github.com/LEW21/pydbus/issues/40 > - pydbus.spec should be python-pydbus.spec Fixed. So the new URLs are: Spec URL: https://m4rtink.fedorapeople.org/packaging/pydbus/python-pydbus.spec SRPM URL: https://m4rtink.fedorapeople.org/packaging/pydbus/python-pydbus-0.5.1-1.fc25.src.rpm > - Download URL is wrong Fixed: https://files.pythonhosted.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz This currently translates to: https://files.pythonhosted.org/packages/source/e/pydbus/pydbus-0.5.1.tar.gz Which works. > - 'URL: https://pypi.python.org/pypi/pydbus/%{srcname}' is very copy-&-paste > unfriendly for humans. Fixed the URL, it is now just: https://pypi.python.org/pypi/pydbus For the Fedora Review stuff: > [-]: 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. Looks like the LICENSE file is missing from the PyPI tarball for some reason - I've reported an issues upstream: https://github.com/LEW21/pydbus/issues/39 > [!]: Package contains systemd file(s) if in need. I have no idea what this means - I haven't been able to find any explanation anywhere. Looking at the source code of the check: class CheckSystemdScripts(GenericCheckBase): ''' systemd files if applicable. ''' def __init__(self, base): GenericCheckBase.__init__(self, base) self.url = 'https://fedoraproject.org/wiki/Packaging:Guidelines' self.text = 'Package contains systemd file(s) if in need.' self.automatic = True self.type = 'MUST' self.needs.append('CheckDaemonCompileFlags') def run_on_applicable(self): if self.checks.checkdict['CheckDaemonCompileFlags'].is_na: self.set_passed(self.PENDING) else: self.set_passed(self.PASS) It seems to be trying to check daemon compilation flags or something ? That would mean it's a flase positive as pydbus is neither compiled & not a daemon. Also no longer happens when I run fedora-review locally (Rawhide Mock config). > [!]: Package complies to the Packaging Guidelines I guess this should be fixed by the fixes mentioned above ? > [!]: Sources can be downloaded from URI in Source: tag > Note: Could not download Source0: Should be fixed by the correct source URL. > [!]: If the source package does not include license text(s) as a separate > file from upstream, the packager SHOULD query upstream to include it. Mentioned above - license missing in tarball has been reported to upstream. > [!]: SourceX tarball generation or download is documented. > Note: Package contains tarball without URL, check comments Should be also fixed by the correct tarball URL. > [-]: %check is present and all tests pass. As mentioned above, test are currently either broken or require special testing setup.
Anything else I should to make this move forward ? :) Also it looks like upstream released 0.6.0[0] in the meantime - so do we continue the review with 0.5.1 & I'll rebase it later once it's in the repo or should I rebase the review request to 0.6.0 ? [0] https://github.com/LEW21/pydbus/releases
Hi Fabian, I am interested in having pydbus packaged for Fedora ASAP (I'd like to use it in my own project). In case you've lost the interest in the review please let me know and I will pick it up. Thanks!
(In reply to Martin Kolman from comment #2) > (In reply to Fabian Affolter from comment #1) > > - rpmlint is not happy (check below) > > - The ownership of the '/usr/lib/python*/site-packages/pydbus/' > Changed ownership lines from: > %{python2_sitelib}/* > %{python3_sitelib}/* > > To: > %{python2_sitelib}/pydbus/* > %{python3_sitelib}/pydbus/* > > (Hope I understand this correctly.) Apparently using different macro didn't fix the ownership issue. I've installed python2 version of the library and rpm still complains that /usr/lib/python2/site-packages/pydbus/ is not owned by any package. $ rpm -q python2-pydbus python2-pydbus-0.5.1-1.fc26.noarch $ rpm -qf /usr/lib/python2.7/site-packages/pydbus file /usr/lib/python2.7/site-packages/pydbus is not owned by any package In contrast, other python packages do claim respective directories under site-packages, e.g. $ rpm -qf /usr/lib/python2.7/site-packages/ansible ansible-2.2.1.0-1.fc25.noarch
(In reply to Martin Kolman from comment #3) > Anything else I should to make this move forward ? :) Also it looks like > upstream released 0.6.0[0] in the meantime - so do we continue the review > with 0.5.1 & I'll rebase it later once it's in the repo or should I rebase > the review request to 0.6.0 ? > > [0] https://github.com/LEW21/pydbus/releases I think that rebasing review request would be better as pydbus-0.6.0 fixes problem with the license and failing tests.
note that package should be called python-pydbus rather than pydbus
I believe that bellow patch for specfile should fix the dir ownership problem. --- python-pydbus.spec.old 2017-02-12 17:09:47.006653954 +0100 +++ python-pydbus.spec 2017-02-12 17:10:18.419127077 +0100 @@ -73,19 +73,19 @@ # Note that there is no %%files section for the unversioned python module if we are building for several python runtimes %files -n python2-%{srcname} %doc README.rst -%{python2_sitelib}/pydbus/* +%{python2_sitelib}/pydbus/ %{python2_sitelib}/*.egg-info %files -n python3-%{srcname} %doc README.rst -%{python3_sitelib}/pydbus/* +%{python3_sitelib}/pydbus/ %{python3_sitelib}/*.egg-info %files -n python2-%{srcname}-examples -%{python2_sitelib}/pydbus/examples/* +%{python2_sitelib}/pydbus/examples/ %files -n python3-%{srcname}-examples -%{python3_sitelib}/pydbus/examples/* +%{python3_sitelib}/pydbus/examples/ %changelog * Wed Nov 16 2016 Martin Kolman <mkolman> - 0.5.1-1
(In reply to Igor Gnatenko from comment #7) > note that package should be called python-pydbus rather than pydbus It was named pydbus, but then Martin renamed it to python-python (see comment #2) Should be all good now.
(In reply to Michal Sekletar from comment #9) > (In reply to Igor Gnatenko from comment #7) > > note that package should be called python-pydbus rather than pydbus > > It was named pydbus, but then Martin renamed it to python-python (see > comment #2) Should be all good now. python-pydbus of course
Spec URL: https://m4rtink.fedorapeople.org/packaging/pydbus/python-pydbus.spec SRPM URL: https://m4rtink.fedorapeople.org/packaging/pydbus/python-pydbus-0.6.0-1.fc25.src.rpm - rebased to usptream 0.6.0 release - applied ownership fix from comment 8 (thanks!) - dropped the -examples subpackage as upstream has dropped examples from the tarball - updated my pydbus COPR with the new SRPM: https://copr.fedorainfracloud.org/coprs/m4rtink/pydbus/
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/rpms/python-pydbus