Bug 2224412 - Review Request: ansible-collection-pulp-pulp_installer - A collection of roles to install or upgrade Pulp 3
Summary: Review Request: ansible-collection-pulp-pulp_installer - A collection of role...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Maxwell G
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-20 17:26 UTC by Jakub Kadlčík
Modified: 2023-08-06 01:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-06 01:39:23 UTC
Type: ---
Embargoed:
maxwell: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6192226 to 6192426 (506 bytes, patch)
2023-07-20 18:11 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6208893 to 6217900 (1.12 KB, patch)
2023-07-27 18:01 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6217900 to 6218148 (1.31 KB, patch)
2023-07-27 20:30 UTC, Fedora Review Service
no flags Details | Diff

Comment 1 Maxwell G 2023-07-20 17:46:57 UTC
For starters:

```
# Collection dependencies from galaxy.yml
Recommends: ansible-collection-ansible-posix
Recommends: ansible-collection-community-postgresql
Recommends: ansible-collection-community-crypto
Recommends: ansible-collection-community-general
Recommends: ansible-collection-mdellweg-filters
```

should all be handled by the dependency generator. You can remove those.

Comment 3 Fedora Review Service 2023-07-20 18:11:39 UTC
Created attachment 1976788 [details]
The .spec file difference from Copr build 6192226 to 6192426

Comment 4 Maxwell G 2023-07-24 19:03:58 UTC
Thanks for packaging this up!

- The package should be named ansible-collection-pulp-pulp_installer. The Ansible Collection Packaging Guidelines do not mandate any type of name normalization.
- You should include CHANGES in %doc.
- I would also exclude the following files with build_ignore. This should fix all of the hidden-file-or-dir rpmlint warnings
  - Makefile
  - ansible.cfg
  - .yamllint
  - .ansible-lint
  - .markdownlint.yml
  - .gitmodules
  - 'package*.json'
- I would build_ignore the docs directory and include its contents in a doc subpackage with %doc. It seems there's a good amount of stuff in there.
- The changelog is misformatted. It doesn't include the version.

----


Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated



===== 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: "Unknown or generated", "GNU General Public License v2.0 or
     later", "GNU General Public License, Version 2", "GNU General Public
     License", "*No copyright* GNU General Public License, Version 2". 324
     files have unknown license. Detailed output of licensecheck in
     /home/gotmax/Sync/git-
     repos/packaging/fedora_rpms/review.repos/2224412-ansible-collection-
     pulp-pulp-installer/2224412-ansible-collection-pulp-pulp-
     installer/licensecheck.txt
[x]: Package contains no bundled libraries without FPC exception.


[!]: 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).

[!]: 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.
[-]: 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 10240 bytes in 1 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.


[!]: 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 does not own files or directories owned by other packages.
[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

===== 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).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Package should compile and build into binary rpms on all supported
     architectures.
     NOTE: noarch package
[-]: %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:
[!]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: ansible-collection-pulp-pulp-installer-3.22.1-1.fc38.noarch.rpm
          ansible-collection-pulp-pulp-installer-3.22.1-1.fc38.src.rpm
========================================= rpmlint session starts ========================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpxu42qaim')]
checks: 31, packages: 2

ansible-collection-pulp-pulp-installer.noarch: E: version-control-internal-file /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/plugins/modules/.gitignore
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh.el7 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/container_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/move-artifacts-to-media-root.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/print_status.sh 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/templates/postgresql_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/templates/redis_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/files/identify_snippets.py 644 /usr/bin/env python
ansible-collection-pulp-pulp-installer.noarch: W: no-version-in-last-changelog
ansible-collection-pulp-pulp-installer.src: W: no-version-in-last-changelog
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.ansible-lint
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.gitmodules
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.markdownlint.yml
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.yamllint
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database_config/vars/main.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Debian.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Fedora.yml
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-32.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/CentOS.yml
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/RedHat-9.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-33.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-34.yml
========== 2 packages and 0 specfiles checked; 9 errors, 9 warnings, 9 badness; has taken 0.3 s =========

I'd ignore files-duplicate and non-executable-script, but the rest can be fixed as shown above.




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 1

ansible-collection-pulp-pulp-installer.noarch: E: version-control-internal-file /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/plugins/modules/.gitignore
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh.el7 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/container_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/move-artifacts-to-media-root.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/print_status.sh 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/templates/postgresql_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/templates/redis_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp-installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/files/identify_snippets.py 644 /usr/bin/env python
ansible-collection-pulp-pulp-installer.noarch: W: no-version-in-last-changelog
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.ansible-lint
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.gitmodules
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.markdownlint.yml
ansible-collection-pulp-pulp-installer.noarch: W: hidden-file-or-dir /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/.yamllint
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database_config/vars/main.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Debian.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Fedora.yml
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-32.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/CentOS.yml
ansible-collection-pulp-pulp-installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/RedHat-9.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-33.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-34.yml
 1 packages and 0 specfiles checked; 9 errors, 8 warnings, 9 badness; has taken 0.1 s 



Source checksums
----------------
https://github.com/pulp/pulp_installer/archive/3.22.1/pulp.pulp_installer-3.22.1.tar.gz :
  CHECKSUM(SHA256) this package     : 12fd9c04839fe7df5ba001fccdd51a31f205bcc42648d9dd91f083b91688feb5
  CHECKSUM(SHA256) upstream package : 12fd9c04839fe7df5ba001fccdd51a31f205bcc42648d9dd91f083b91688feb5


Requires
--------
ansible-collection-pulp-pulp-installer (rpmlib, GLIBC filtered):
    (ansible-core or (ansible < 2.10.0 with ansible >= 2.9.10))
    /usr/bin/sh
    ansible-collection(ansible.posix)
    ansible-collection(community.crypto)
    ansible-collection(community.general)
    ansible-collection(community.postgresql)
    ansible-collection(mdellweg.filters)



Provides
--------
ansible-collection-pulp-pulp-installer:
    ansible-collection(pulp.pulp_installer)
    ansible-collection-pulp-pulp-installer



Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23
Command line :/usr/bin/fedora-review -m /home/gotmax/Sync/git-repos/packaging/fedora_rpms/review.repos/2224412-ansible-collection-pulp-pulp-installer/f38-build-side-70102.cfg -b 2224412
Buildroot used: f38-build-side-70102-x86_64
Active plugins: Shell-api, Generic
Disabled plugins: fonts, Haskell, C/C++, PHP, Java, Python, Perl, SugarActivity, Ocaml, R
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 5 Jakub Kadlčík 2023-07-24 22:48:11 UTC
Thank you for the review,

Spec URL: https://download.copr.fedorainfracloud.org/results/frostyx/ansible-collection-pulp-pulp-installer/fedora-rawhide-x86_64/06208890-ansible-collection-pulp-pulp_installer/ansible-collection-pulp-pulp_installer.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/frostyx/ansible-collection-pulp-pulp-installer/fedora-rawhide-x86_64/06208890-ansible-collection-pulp-pulp_installer/ansible-collection-pulp-pulp_installer-3.22.1-1.fc39.src.rpm

For some reason, my doc subpackage installs the documentation into:

    /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/


While for example the ansible-collection-ansible-netcommon-doc package installs it into:

    /usr/share/doc/ansible-collection-ansible-netcommon/docs/

(without the -doc suffix). I am not sure why, the spec files look pretty similar.

Comment 6 Maxwell G 2023-07-26 06:40:30 UTC
Thanks! I'll take another look later today.

Comment 7 Maxwell G 2023-07-27 02:03:03 UTC
It seems splitting the docs like this caused more problems:



ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/helper_roles/galaxy_post_install.md ../../roles/galaxy_post_install/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/helper_roles/pulp_common.md ../../roles/pulp_common/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/helper_roles/pulp_repos.md ../../roles/pulp_repos/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/helper_roles/pulp_rpm_prerequisites.md ../../roles/pulp_rpm_prerequisites/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/meta_roles/pulp_all_services.md ../../roles/pulp_all_services/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/meta_roles/pulp_services.md ../../roles/pulp_services/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_api.md ../../roles/pulp_api/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_content.md ../../roles/pulp_content/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_database.md ../../roles/pulp_database/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_database_config.md ../../roles/pulp_database_config/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_devel.md ../../roles/pulp_devel/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_health_check.md ../../roles/pulp_health_check/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_redis.md ../../roles/pulp_redis/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_webserver.md ../../roles/pulp_webserver/README.md
ansible-collection-pulp-pulp_installer-doc.noarch: W: dangling-relative-symlink /usr/share/doc/ansible-collection-pulp-pulp_installer-doc/docs/roles/pulp_workers.md ../../roles/pulp_workers/README.md


---

For now, I'd remove docs from build_ignore, remove the doc subpackage, and change %files to

%files -f %{ansible_collection_filelist}
%license LICENSE COPYRIGHT COMMITMENT
%doc README.md CHANGES
%doc %{ansible_collections_dir}/pulp/pulp_installer/docs/

Other than that, I think we're good

Comment 8 Jakub Kadlčík 2023-07-27 17:56:44 UTC
> For now, I'd remove docs from build_ignore, remove the doc subpackage, and change %files to

Done

> %doc %{ansible_collections_dir}/pulp/pulp_installer/docs/

I needed to do it a bit differently because this printed a lot of warnings like this

    RPM build warnings:
        File listed twice: /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/docs
        File listed twice: /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/docs/CHANGES.md
        File listed twice: /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/docs/clustering.md



Spec URL: https://download.copr.fedorainfracloud.org/results/frostyx/ansible-collection-pulp-pulp-installer/fedora-rawhide-x86_64/06217897-ansible-collection-pulp-pulp_installer/ansible-collection-pulp-pulp_installer.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/frostyx/ansible-collection-pulp-pulp-installer/fedora-rawhide-x86_64/06217897-ansible-collection-pulp-pulp_installer/ansible-collection-pulp-pulp_installer-3.22.1-2.fc39.src.rpm

Comment 9 Fedora Review Service 2023-07-27 18:01:28 UTC
Created attachment 1980316 [details]
The .spec file difference from Copr build 6208893 to 6217900

Comment 10 Maxwell G 2023-07-27 19:39:10 UTC
> I needed to do it a bit differently because this printed a lot of warnings like this

Yes, but that won't fix the dangling symlink problem. That was the whole point of keeping the docs directory where it is. The warnings you mentioned are spurious and can be ignored.

You could probably keep the doc subpackage and build_ignores, add

```
# Remove dangling symlinks
cp --dereference docs %{_pkgdocdir}
```

and then have

```
%files doc
%doc %{_pkgdocdir}/docs
```

but the current approach definitely does not work.

Comment 11 Maxwell G 2023-07-27 19:57:35 UTC
Sorry, my directions were a bit wrong...

You should put

```
# Remove dangling symlinks
mkdir -p %{buildroot}%{_docdir}/%{name}-doc
cp --dereference docs %{buildroot}%{_docdir}/%{name}-doc
``

in %install.

Comment 12 Maxwell G 2023-07-27 19:58:23 UTC
(In reply to Maxwell G from comment #11)
> Sorry, my directions were a bit wrong...
> 
> You should put
> 
> ```
> # Remove dangling symlinks
> mkdir -p %{buildroot}%{_docdir}/%{name}-doc
> cp --dereference docs %{buildroot}%{_docdir}/%{name}-doc
> ``
> 
> in %install.

Actually do

```
mkdir -p %{buildroot}%{_docdir}/%{name}-doc
# Remove dangling symlinks
cp --dereference docs %{buildroot}%{_docdir}/%{name}-doc
``

so the comment is above the correct line...

Comment 14 Fedora Review Service 2023-07-27 20:30:40 UTC
Created attachment 1980337 [details]
The .spec file difference from Copr build 6217900 to 6218148

Comment 15 Maxwell G 2023-07-28 00:03:51 UTC
Final Nitpicks
==========

- From %description doc:
> This is a documentation for the pulp.pulp_installer collection.

You can remove `a` from that sentence.

- See the `NOTE:` below about timestamps.

Other than that, this packaged is APPROVED. You can fix those two issues on
import.
You can also add me as a co-admin if you'd like.
I'd also branch for epel9 so Fedora Infra can use the collection.

Thanks!

Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated



===== 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: "Unknown or generated", "GNU General Public License v2.0 or
     later", "GNU General Public License, Version 2", "GNU General Public
     License", "*No copyright* GNU General Public License, Version 2". 324
     files have unknown license. Detailed output of licensecheck in
     /home/gotmax/Sync/git-
     repos/packaging/fedora_rpms/review.repos/2224412-ansible-collection-
     pulp-pulp-installer/2224412-ansible-collection-pulp-
     pulp_installer/licensecheck.txt
[x]: 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.
[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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 2 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 does not own files or directories owned by other packages.
[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

===== 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).
[?]: 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.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
     NOTE: noarch package
[-]: %check is present and all tests pass.
    NOTE: package does not provide unit tests

[!]: Packages should try to preserve timestamps of original installed
     files.

    cp -r --dereference docs %{buildroot}%{_docdir}/%{name}-doc

    should be

    cp -p -r --dereference docs %{buildroot}%{_docdir}/%{name}-doc

[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]: Fully versioned dependency in subpackages if applicable.
[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:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: ansible-collection-pulp-pulp_installer-3.22.1-1.fc38.noarch.rpm
          ansible-collection-pulp-pulp_installer-doc-3.22.1-1.fc38.noarch.rpm
          ansible-collection-pulp-pulp_installer-3.22.1-1.fc38.src.rpm
========================================= rpmlint session starts ========================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpogp_9tc1')]
checks: 31, packages: 3

ansible-collection-pulp-pulp_installer.noarch: E: version-control-internal-file /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/plugins/modules/.gitignore
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh.el7 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/container_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/move-artifacts-to-media-root.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/print_status.sh 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/templates/postgresql_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/templates/redis_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/files/identify_snippets.py 644 /usr/bin/env python
ansible-collection-pulp-pulp_installer.noarch: W: hidden-file-or-dir /usr/share/doc/ansible-collection-pulp-pulp_installer/CHANGES/.TEMPLATE.md
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database_config/vars/main.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Debian.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Fedora.yml
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-32.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/CentOS.yml
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/RedHat-9.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-33.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-34.yml
========== 3 packages and 0 specfiles checked; 9 errors, 4 warnings, 9 badness; has taken 0.3 s =========




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 2

NOTE: These are alright.

ansible-collection-pulp-pulp_installer.noarch: E: version-control-internal-file /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/plugins/modules/.gitignore
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/collection_sign.sh.el7 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/galaxy_post_install/files/container_sign.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/move-artifacts-to-media-root.sh 644 /usr/bin/env bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/scripts/print_status.sh 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/templates/postgresql_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/templates/redis_scl_profile.j2 644 /bin/bash
ansible-collection-pulp-pulp_installer.noarch: E: non-executable-script /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_webserver/files/identify_snippets.py 644 /usr/bin/env python
ansible-collection-pulp-pulp_installer.noarch: W: hidden-file-or-dir /usr/share/doc/ansible-collection-pulp-pulp_installer/CHANGES/.TEMPLATE.md
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database_config/vars/main.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Debian.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_database/vars/Fedora.yml
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-32.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/CentOS.yml
ansible-collection-pulp-pulp_installer.noarch: W: files-duplicate /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/RedHat-9.yml /usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-33.yml:/usr/share/ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_redis/vars/Fedora-34.yml
 2 packages and 0 specfiles checked; 9 errors, 4 warnings, 9 badness; has taken 0.1 s 



Source checksums
----------------
https://github.com/pulp/pulp_installer/archive/3.22.1/pulp.pulp_installer-3.22.1.tar.gz :
  CHECKSUM(SHA256) this package     : 12fd9c04839fe7df5ba001fccdd51a31f205bcc42648d9dd91f083b91688feb5
  CHECKSUM(SHA256) upstream package : 12fd9c04839fe7df5ba001fccdd51a31f205bcc42648d9dd91f083b91688feb5


Requires
--------
ansible-collection-pulp-pulp_installer (rpmlib, GLIBC filtered):
    (ansible-core or (ansible < 2.10.0 with ansible >= 2.9.10))
    /usr/bin/sh
    ansible-collection(ansible.posix)
    ansible-collection(community.crypto)
    ansible-collection(community.general)
    ansible-collection(community.postgresql)
    ansible-collection(mdellweg.filters)

ansible-collection-pulp-pulp_installer-doc (rpmlib, GLIBC filtered):



Provides
--------
ansible-collection-pulp-pulp_installer:
    ansible-collection(pulp.pulp_installer)
    ansible-collection-pulp-pulp_installer

ansible-collection-pulp-pulp_installer-doc:
    ansible-collection-pulp-pulp_installer-doc



Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23
Command line :/usr/bin/fedora-review -m fedora-38-x86_64 -b 2224412
Buildroot used: fedora-38-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: R, Java, Ocaml, C/C++, Python, Haskell, fonts, Perl, SugarActivity, PHP
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 16 Fedora Admin user for bugzilla script actions 2023-07-28 00:27:30 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/ansible-collection-pulp-pulp_installer

Comment 17 Fedora Update System 2023-07-28 00:56:14 UTC
FEDORA-EPEL-2023-5197176758 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-5197176758

Comment 18 Fedora Update System 2023-07-28 00:56:14 UTC
FEDORA-2023-0f221df005 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0f221df005

Comment 19 Fedora Update System 2023-07-29 02:00:12 UTC
FEDORA-EPEL-2023-5197176758 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-5197176758

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2023-07-29 02:17:34 UTC
FEDORA-2023-0f221df005 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0f221df005 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0f221df005

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2023-08-06 01:39:23 UTC
FEDORA-EPEL-2023-5197176758 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2023-08-06 01:40:03 UTC
FEDORA-2023-0f221df005 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.