Description of problem: Add puppet-watcher package in RDO, it's required by puppet-openstack-integration scenario004:- https://opendev.org/openstack/puppet-openstack-integration/src/branch/master/fixtures/scenario004.pp#L59. Currently in RDO weirdo jobs puppet-watcher is installed from source, so would like to package it and avoid installation from source:- https://github.com/rdo-infra/ansible-role-weirdo-puppet-openstack/blob/master/defaults/main.yml#L40. Source:- https://opendev.org/openstack/puppet-watcher
$ licensecheck -r .|grep -v UNKNOWN ./LICENSE: *No copyright* Apache (v2.0) ./setup.cfg: *No copyright* Apache ./setup.py: Apache (v2.0) GENERATED FILE ./manifests/wsgi/apache.pp: *No copyright* Apache (v2.0) ./releasenotes/source/conf.py: *No copyright* Apache (v2.0) GENERATED FILE License is ASL 2.0
SPEC has been created from puppet template in RDO Official review: Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed Issues: ======= - Package contains BR: python2-devel or python3-devel - 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. Note: License file LICENSE is not marked as %license See: http://fedoraproject.org/wiki/Packaging/LicensingGuidelines#License_Text ===== 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. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "*No copyright* Apache License (v2.0)", "*No copyright* Apache License", "Unknown or generated". 62 files have unknown license. Detailed output of licensecheck in /tmp/puppet- watcher/licensecheck.txt [x]: Package requires other packages for directories it uses. Note: No known owner of /usr/share/openstack-puppet/modules, /usr/share/openstack-puppet [x]: Package must own all directories that it creates. Note: Directories without known owners: /usr/share/openstack- puppet/modules, /usr/share/openstack-puppet [x]: Package contains no bundled libraries without FPC exception. [-]: Changelog in prescribed format. [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. Note: rm -rf %{buildroot} present but not required [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. [-]: 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. [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]: 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]: 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]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 0 bytes in 0 files. [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. [-]: Package meets the Packaging Guidelines::Python [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). [x]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [x]: 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]: Spec use %global instead of %define unless justified. Note: %define requiring justification: %define upstream_version 15.0.0 [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. ===== EXTRA items ===== Generic: [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). Rpmlint ------- Checking: puppet-watcher-15.0.0-0.20190507064708.6f1d9da.el7.noarch.rpm puppet-watcher-15.0.0-0.20190507064708.6f1d9da.el7.src.rpm puppet-watcher.noarch: E: explicit-lib-dependency puppet-openstacklib puppet-watcher.noarch: E: explicit-lib-dependency puppet-stdlib puppet-watcher.noarch: E: no-changelogname-tag puppet-watcher.noarch: W: no-documentation puppet-watcher.noarch: E: wrong-script-interpreter /usr/share/openstack-puppet/modules/watcher/setup.py /usr/bin/env python puppet-watcher.noarch: E: non-executable-script /usr/share/openstack-puppet/modules/watcher/setup.py 644 /usr/bin/env python puppet-watcher.src: E: no-changelogname-tag puppet-watcher.src: W: invalid-url Source0: 15.0.0-0.20190507064708.6f1d9da.tar.gz 2 packages and 0 specfiles checked; 6 errors, 2 warnings. Rpmlint (installed packages) ---------------------------- puppet-watcher.noarch: E: explicit-lib-dependency puppet-openstacklib puppet-watcher.noarch: E: explicit-lib-dependency puppet-stdlib puppet-watcher.noarch: E: no-changelogname-tag puppet-watcher.noarch: W: invalid-url URL: https://launchpad.net/puppet-watcher <urlopen error [Errno -2] Name or service not known> puppet-watcher.noarch: W: no-documentation puppet-watcher.noarch: E: non-executable-script /usr/share/openstack-puppet/modules/watcher/setup.py 0644L /usr/bin/env 1 packages and 0 specfiles checked; 4 errors, 2 warnings. Requires -------- puppet-watcher (rpmlib, GLIBC filtered): puppet puppet-inifile puppet-mysql puppet-openstacklib puppet-oslo puppet-rabbitmq puppet-stdlib Provides -------- puppet-watcher: puppet-watcher Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02 Command line :/usr/bin/fedora-review -m centos-7-dlrn -rn puppet-watcher-15.0.0-0.20190507064708.6f1d9da.el7.src.rpm Buildroot used: dlrn-centos7-x86_64 Active plugins: Python, Generic, Shell-api Disabled plugins: Java, C/C++, fonts, SugarActivity, O Package is APPROVED
Package spec review in https://review.rdoproject.org/r/#/c/20581/
puppet-watcher available in RDO since Train, closing it.