Bug 2243131 - Review Request: metadata-cleaner - Python GTK application to view and clean metadata in files, using mat2
Summary: Review Request: metadata-cleaner - Python GTK application to view and clean m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2243093
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-10 21:21 UTC by Artem
Modified: 2024-05-29 04:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-20 18:20:11 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 6514825 to 6516536 (291 bytes, patch)
2023-10-11 10:44 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6516536 to 6686017 (1.48 KB, patch)
2023-11-23 22:59 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6686017 to 6741016 (508 bytes, patch)
2023-12-11 12:24 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6741016 to 6926738 (1.82 KB, patch)
2024-01-21 05:58 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 6926738 to 7461867 (701 bytes, patch)
2024-05-19 20:05 UTC, Fedora Review Service
no flags Details | Diff

Description Artem 2023-10-10 21:21:09 UTC
Spec URL: https://atim.fedorapeople.org/metadata-cleaner.spec
SRPM URL: https://atim.fedorapeople.org/metadata-cleaner-2.5.4-1.fc39.src.rpm

Description:
Metadata within a file can tell a lot about you. Cameras record data about
when and where a picture was taken and which camera was used. Office
applications automatically add author and company information to documents and
spreadsheets. This is sensitive information and you may not want to disclose
it. This tool allows you to view metadata in your files and to get rid of it,
as much as possible. Under the hood, it relies on mat2 to parse and remove the
metadata.

Fedora Account System Username: atim

Comment 2 Fedora Review Service 2023-10-11 10:44:04 UTC
Created attachment 1993477 [details]
The .spec file difference from Copr build 6514825 to 6516536

Comment 3 Benson Muite 2023-11-23 17:35:24 UTC
Fedora review warnings:
[ ]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/help/nn, /usr/share/help/ta,
     /usr/share/help/fy, /usr/share/help/bn, /usr/share/help/az,
     /usr/share/help/nb_NO, /usr/share/help/ur
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/help/nn,
     /usr/share/help/C, /usr/share/help/ta, /usr/share/help/tr,
     /usr/share/help/fr, /usr/share/help/eu, /usr/share/help/hu,
     /usr/share/help/de, /usr/share/help/fy, /usr/share/help/uk,
     /usr/share/help/pt, /usr/share/help/zh_CN, /usr/share/help/pt_BR,
     /usr/share/help/id, /usr/share/help/bn, /usr/share/help/es,
     /usr/share/help/sv, /usr/share/help/ca, /usr/share/help/da,
     /usr/share/help/ru, /usr/share/help/az, /usr/share/help/sr,
     /usr/share/help/ar, /usr/share/help/lt, /usr/share/help/el,
     /usr/share/help/zh_TW, /usr/share/help/fi, /usr/share/help/ro,
     /usr/share/help/nl, /usr/share/help/ja, /usr/share/help/oc,
     /usr/share/help/hr, /usr/share/help/gl, /usr/share/help/cs,
     /usr/share/help/eo, /usr/share/help/it, /usr/share/help/pl,
     /usr/share/help/ko, /usr/share/help/nb_NO, /usr/share/help/ur

Icon files have creative commons licenses The figure files in translations
also seem to each have a license file.

Comment 5 Fedora Review Service 2023-11-23 22:59:24 UTC
Created attachment 2001141 [details]
The .spec file difference from Copr build 6516536 to 6686017

Comment 6 Fedora Review Service 2023-11-23 22:59:27 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6686017
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243131-metadata-cleaner/fedora-rawhide-x86_64/06686017-metadata-cleaner/fedora-review/review.txt

Found issues:

- Not a valid SPDX expression 'GPL-3.0-or-later and CC-BY-SA-4.0 and CC0-1.0'.
  Read more: https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 7 Benson Muite 2023-12-10 18:07:49 UTC
GPL-3.0-or-later and CC-BY-SA-4.0 and CC0-1.0
should be
GPL-3.0-or-later AND CC-BY-SA-4.0 AND CC0-1.0

Comment 9 Fedora Review Service 2023-12-11 12:24:53 UTC
Created attachment 2003747 [details]
The .spec file difference from Copr build 6686017 to 6741016

Comment 10 Fedora Review Service 2023-12-11 12:24:56 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6741016
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243131-metadata-cleaner/fedora-rawhide-x86_64/06741016-metadata-cleaner/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 11 Benson Muite 2024-01-20 09:01:22 UTC
Warnings from fedora-review:

[ ]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/help/fy, /usr/share/help/bn,
     /usr/share/help/nn, /usr/share/help/ur, /usr/share/help/az,
     /usr/share/help/ta, /usr/share/help/nb_NO
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/help/pt,
     /usr/share/help/pt_BR, /usr/share/help/zh_TW, /usr/share/help/es,
     /usr/share/help/ru, /usr/share/help/gl, /usr/share/help/ja,
     /usr/share/help/hu, /usr/share/help/ur, /usr/share/help/oc,
     /usr/share/help/ro, /usr/share/help/sv, /usr/share/help/id,
     /usr/share/help/az, /usr/share/help/ar, /usr/share/help/it,
     /usr/share/help/eu, /usr/share/help/da, /usr/share/help/el,
     /usr/share/help/ta, /usr/share/help/lt, /usr/share/help/zh_CN,
     /usr/share/help/fr, /usr/share/help/hr, /usr/share/help/fi,
     /usr/share/help/pl, /usr/share/help/de, /usr/share/help/nl,
     /usr/share/help/fy, /usr/share/help/eo, /usr/share/help/uk,
     /usr/share/help/ca, /usr/share/help/sr, /usr/share/help/bn,
     /usr/share/help/ko, /usr/share/help/C, /usr/share/help/nb_NO,
     /usr/share/help/cs, /usr/share/help/nn, /usr/share/help/tr

Maybe these should be in /usr/share/metadata-cleaner/help ?

Perhaps help documentation should be a separate noarch package to prevent the warning:

metadata-cleaner.noarch: W: package-with-huge-docs 83%

Comment 12 Artem 2024-01-20 10:47:00 UTC
(In reply to Benson Muite from comment #11)
> Maybe these should be in /usr/share/metadata-cleaner/help ?

IMO this is wrong place for Gnome apps help files since the all other one gnome packages using /usr/share/help path.

> Perhaps help documentation should be a separate noarch package to prevent
> the warning:
> 
> metadata-cleaner.noarch: W: package-with-huge-docs 83%

Good idea. I only figured out how to put both langpacks and docs files in separate sub-package and keep canonical "%find_lang %{appid} --with-gnome" macros in same time. We can keep like that or maybe we could try to figure out how to put only Docs in separate sub-package.


---

https://download.copr.fedorainfracloud.org/results/atim/playground/fedora-39-x86_64/06924493-metadata-cleaner/metadata-cleaner.spec
https://download.copr.fedorainfracloud.org/results/atim/playground/fedora-39-x86_64/06924493-metadata-cleaner/metadata-cleaner-2.5.4-0.fc39.src.rpm

Comment 13 Fedora Review Service 2024-01-21 05:58:45 UTC
Created attachment 2009530 [details]
The .spec file difference from Copr build 6741016 to 6926738

Comment 14 Fedora Review Service 2024-01-21 05:58:47 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6926738
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243131-metadata-cleaner/fedora-rawhide-x86_64/06926738-metadata-cleaner/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 15 Artem 2024-04-13 07:25:23 UTC
Ping? 4 month later...

Comment 16 Benson Muite 2024-04-13 08:05:18 UTC
Thanks for the reminder. Will get to it later today.

Comment 17 Benson Muite 2024-04-13 19:49:30 UTC
Package Review
==============

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



===== MUST items =====

Generic:
[ ]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "GNU General Public License, Version 3", "Creative Commons
     Attribution-ShareAlike 4.0", "Creative Commons Attribution-ShareAlike
     4.0 and/or GNU General Public License, Version 3", "*No copyright*
     Creative Commons Attribution-ShareAlike 4.0 and/or Creative Commons
     CC0 1.0 and/or GNU General Public License v3.0 or later and/or SIL
     Open Font License", "Unknown or generated", "*No copyright* Creative
     Commons Attribution-ShareAlike 4.0", "*No copyright* Creative Commons
     CC0 1.0", "*No copyright* SIL Open Font License 1.1", "SIL Open Font
     License 1.1 with Reserved Font Name", "Creative Commons CC0 1.0". 257
     files have unknown license. Detailed output of licensecheck in
     /home/fedora/2243131-metadata-cleaner/licensecheck.txt
[ ]: License file installed when any subpackage combination is installed.
[ ]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[ ]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/help/ko, /usr/share/help/nb_NO,
     /usr/share/help/fr, /usr/share/help/pt, /usr/share/dbus-1,
     /usr/share/help/zh_TW, /usr/share/help/eu, /usr/share/glib-2.0,
     /usr/share/icons/hicolor/scalable/apps, /usr/share/help/el,
     /usr/share/help/ro, /usr/share/help/lt, /usr/share/help/bn,
     /usr/share/help/nl, /usr/share/help/de, /usr/share/help/uk,
     /usr/share/help/gl, /usr/share/help/ta, /usr/share/help/ru,
     /usr/share/glib-2.0/schemas, /usr/share/help/pt_BR,
     /usr/share/help/id, /usr/share/icons/hicolor, /usr/share/help/es,
     /usr/share/help/tr, /usr/share/dbus-1/services, /usr/share/help/ca,
     /usr/share/icons/hicolor/symbolic/apps, /usr/share/help/da,
     /usr/share/help/sv, /usr/share/help/fy, /usr/share/help/ja,
     /usr/share/help/az, /usr/share/help/hu,
     /usr/share/icons/hicolor/scalable, /usr/share/help/oc,
     /usr/share/help/hr, /usr/share/help/nn,
     /usr/share/icons/hicolor/symbolic, /usr/share/help/cs,
     /usr/share/help/pl, /usr/share/help/ar, /usr/share/help/it,
     /usr/share/help/zh_CN, /usr/share/help/sr, /usr/share/help/ur,
     /usr/share/help/fi, /usr/share/help/C, /usr/share/help/eo
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/help/ko,
     /usr/share/help/nb_NO, /usr/share/help/ca, /usr/share/help/fr,
     /usr/share/help/da, /usr/share/help/fy, /usr/share/help/sv,
     /usr/share/help/pt, /usr/share/help/zh_TW, /usr/share/help/ja,
     /usr/share/help/eu, /usr/share/help/el, /usr/share/help/az,
     /usr/share/help/hu, /usr/share/help/ro, /usr/share/help/lt,
     /usr/share/help/bn, /usr/share/help/nl, /usr/share/help/de,
     /usr/share/help/oc, /usr/share/help/hr, /usr/share/help/nn,
     /usr/share/help/gl, /usr/share/help/uk, /usr/share/help/cs,
     /usr/share/help/pl, /usr/share/help/ar, /usr/share/help/it,
     /usr/share/help/zh_CN, /usr/share/help/ta, /usr/share/help/ru,
     /usr/share/help/sr, /usr/share/help/ur, /usr/share/help/fi,
     /usr/share/help/pt_BR, /usr/share/help/id, /usr/share/help/es,
     /usr/share/help/tr, /usr/share/help/C, /usr/share/help/eo
[ ]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[ ]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[ ]: The spec file handles locales properly.
[ ]: Package consistently uses macros (instead of hard-coded directory
     names).
[ ]: Package is named according to the Package Naming Guidelines.
[ ]: Package does not generate any conflict.
[ ]: Package obeys FHS, except libexecdir and /usr/target.
[x]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[ ]: 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.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 18134 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]: 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]: The License field must be a valid SPDX expression.
[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]: Package contains desktop file if it is a GUI application.
[x]: Package installs a %{name}.desktop using desktop-file-install or
     desktop-file-validate if there is such a file.
[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:
[x]: 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.
[-]: 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.
[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]: 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: metadata-cleaner-2.5.4-0.fc41.noarch.rpm
          metadata-cleaner-langpacks-2.5.4-0.fc41.noarch.rpm
          metadata-cleaner-2.5.4-0.fc41.src.rpm
========================================= rpmlint session starts ========================================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/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/tmpth710ihd')]
checks: 32, packages: 3

metadata-cleaner-langpacks.noarch: W: package-with-huge-docs 91%
metadata-cleaner.noarch: W: no-manual-page-for-binary metadata-cleaner
metadata-cleaner-langpacks.noarch: E: files-duplicated-waste 250257
metadata-cleaner.noarch: W: files-duplicate /usr/share/metadata-cleaner/src/metadatacleaner/ui/__init__.py /usr/share/metadata-cleaner/src/metadatacleaner/__init__.py:/usr/share/metadata-cleaner/src/metadatacleaner/modules/__init__.py
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/add-files-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/nn/fr.romainvigier.MetadataCleaner/figures/add-files-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/nn/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/icon.svg /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/ar/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/az/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/bn/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/ca/fr.romainvigier.MetadataCleaner/figures/icon.svg:(and 34 more)
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/metadata-example.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/metadata-example.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/gl/fr.romainvigier.MetadataCleaner/figures/clean-button.png:/usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png /usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/metadata-example.png /usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/metadata-example.png
=== 3 packages and 0 specfiles checked; 1 errors, 12 warnings, 11 filtered, 1 badness; has taken 0.6 s ==




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.5.0
configuration:
    /usr/lib/python3.12/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: 32, packages: 2

metadata-cleaner-langpacks.noarch: W: package-with-huge-docs 91%
metadata-cleaner.noarch: W: no-manual-page-for-binary metadata-cleaner
metadata-cleaner-langpacks.noarch: E: files-duplicated-waste 250257
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/add-files-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/add-files-button.png:/usr/share/help/nn/fr.romainvigier.MetadataCleaner/figures/add-files-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png:/usr/share/help/nn/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/icon.svg /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/ar/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/az/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/bn/fr.romainvigier.MetadataCleaner/figures/icon.svg:/usr/share/help/ca/fr.romainvigier.MetadataCleaner/figures/icon.svg:(and 34 more)
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/zh_TW/fr.romainvigier.MetadataCleaner/figures/metadata-example.png /usr/share/help/C/fr.romainvigier.MetadataCleaner/figures/metadata-example.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/nb_NO/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/da/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/clean-button.png /usr/share/help/gl/fr.romainvigier.MetadataCleaner/figures/clean-button.png:/usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/clean-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png /usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/add-folders-button.png
metadata-cleaner-langpacks.noarch: W: files-duplicate /usr/share/help/pt_BR/fr.romainvigier.MetadataCleaner/figures/metadata-example.png /usr/share/help/pt/fr.romainvigier.MetadataCleaner/figures/metadata-example.png
metadata-cleaner.noarch: W: files-duplicate /usr/share/metadata-cleaner/src/metadatacleaner/ui/__init__.py /usr/share/metadata-cleaner/src/metadatacleaner/__init__.py:/usr/share/metadata-cleaner/src/metadatacleaner/modules/__init__.py
 2 packages and 0 specfiles checked; 1 errors, 12 warnings, 7 filtered, 1 badness; has taken 0.3 s 



Source checksums
----------------
https://gitlab.com/rmnvgr/metadata-cleaner/-/archive/v2.5.4/metadata-cleaner-v2.5.4.tar.bz2 :
  CHECKSUM(SHA256) this package     : 672151f381863233de83d8ae3a21b7329a4c5299741ed0694c35b4900180f81d
  CHECKSUM(SHA256) upstream package : 672151f381863233de83d8ae3a21b7329a4c5299741ed0694c35b4900180f81d


Requires
--------
metadata-cleaner (rpmlib, GLIBC filtered):
    /usr/bin/python3
    dbus-common
    gtk4
    libadwaita
    mat2

metadata-cleaner-langpacks (rpmlib, GLIBC filtered):
    metadata-cleaner



Provides
--------
metadata-cleaner:
    application()
    application(fr.romainvigier.MetadataCleaner.desktop)
    metadata-cleaner
    metainfo()
    metainfo(fr.romainvigier.MetadataCleaner.metainfo.xml)

metadata-cleaner-langpacks:
    metadata-cleaner-langpacks



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2243131
Buildroot used: fedora-rawhide-aarch64
Active plugins: Generic, Shell-api
Disabled plugins: Python, Perl, Haskell, R, PHP, fonts, SugarActivity, C/C++, Java, Ocaml
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment:
a) Still get directory ownership problem.

Comment 18 Artem 2024-04-14 08:33:54 UTC
> a) Still get directory ownership problem.

You still not offering solution. Fedora review is not about running once per 4 month forever broken fedora-review tool. There half of Fedora packages in official repo have the same or similar issues. Issues created by fedora-review itself. No one cares about them: upstream app developers, Fedora developers and me too. What really worries me is that Fedora will soon run out of apps/packages and there will be no one willing to maintain them.

Comment 19 Benson Muite 2024-04-14 18:44:20 UTC
The following are unexpected:

/usr/share/glib-2.0/schemas
/usr/share/icons/hicolor
/usr/share/icons/hicolor/symbolic/apps
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/symbolic
/usr/share/icons/hicolor/scalable/apps
/usr/share/glib-2.0

Maybe adding a Build-Requires hicolor-icon-theme will help for some of them:
https://packages.fedoraproject.org/pkgs/hicolor-icon-theme/hicolor-icon-theme/

Comment 21 Artem 2024-04-14 19:44:28 UTC
Typo:

BR: hicolor-icon-theme
BR: glib2

->

Requires: hicolor-icon-theme
Requires: glib2

Comment 22 Benson Muite 2024-04-15 20:41:15 UTC
It seems Fedora-review is broken for these as well.  Related discussion:
https://pagure.io/fesco/issue/2948

Documentation:
https://docs.fedoraproject.org/en-US/packaging-guidelines/UnownedDirectories/

$ rpm -qf /usr/share/dbus-1/services
dbus-common-1.14.10-3.fc40.noarch
$ rpm -qf /usr/share/glib-2.0/schemas
glib2-2.80.0-1.fc40.aarch64
$ rpm -qf /usr/share/icons/hicolor/symbolic
hicolor-icon-theme-0.17-18.fc40.noarch

Comment 23 Artem 2024-04-16 14:35:04 UTC
If i correctly understand we should do not require this two packages then since this fedora-review bug:

  Requires:   dbus-common
  Requires:   glib2
  
  -> 
  
  /dev/null

---

Spec URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-rawhide-x86_64/07317536-metadata-cleaner/metadata-cleaner.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-rawhide-x86_64/07317536-metadata-cleaner/metadata-cleaner-2.5.4-0.fc41.src.rpm

It's still complain about /usr/share/glib-2.0. And now also about /usr/share/metainfo.

Comment 24 Artem 2024-05-19 10:31:55 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-40-x86_64/07460646-metadata-cleaner/metadata-cleaner.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-40-x86_64/07460646-metadata-cleaner/metadata-cleaner-2.5.4-0.fc40.src.rpm

All necessary runtime deps for owning directories declared. Package works fine. Fedora-review bugs could be ignored here and users should not wait for another half year.

Comment 26 Fedora Review Service 2024-05-19 20:05:57 UTC
Created attachment 2034002 [details]
The .spec file difference from Copr build 6926738 to 7461867

Comment 27 Fedora Review Service 2024-05-19 20:05:59 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7461867
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2243131-metadata-cleaner/fedora-rawhide-x86_64/07461867-metadata-cleaner/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 28 Robert-André Mauchin 🐧 2024-05-19 21:22:24 UTC
> %global forgeurl https://gitlab.com/rmnvgr/%{name}

Please

%global forgeurl https://gitlab.com/rmnvgr/metadata-cleaner

> Release:    0%{?dist}

We start at 1 in Fedora (Suse 0), but modern package uses %autorelease


> Summary:    Python GTK application to view and clean metadata in files, using mat2

It's over 80 characters, just use

Summary:    View and clean metadata in files, using mat2

> Supplements:    (%{name} = %{version}-%{release} and langpacks-<locale>)

This is never used, just Requires: %{name}-langpacks = %{version}-%{release} from the main package, although I am not sure why you split it from the main package. Main package is noarch, it may have been interesting if it was arched, but even then the package is less than 2 MB.

 - Bump the package to 2.5.5

> Source0:    %{forgesource}

Remove the 0 for modern SPECs.

> %changelog

Use %autochangelog in conjonction wuth %autorelease


My take:

%global forgeurl https://gitlab.com/rmnvgr/%{name}
%global tag v%{version}
%global appid fr.romainvigier.MetadataCleaner
%global gtk_version 4.6

Name:       metadata-cleaner
Version:    2.5.5
%forgemeta
Release:    %autorelease
Summary:    Python GTK application to view and clean metadata in files, using mat2

# - The source code is released under the terms of the GNU General Public
#   License 3.0 or later.
# - The original artwork and translations are released under the terms of the
#   Creative Commons Attribution-ShareAlike 4.0 International.
# - Additional icons from the Icon Development Kit of the GNOME Design Team are
#   released under the terms of the CC0 1.0 Universal.
License:    GPL-3.0-or-later AND CC-BY-SA-4.0 AND CC0-1.0
URL:        %{forgeurl}
Source:     %{forgesource}

BuildArch:  noarch

BuildRequires:  desktop-file-utils
BuildRequires:  itstool
BuildRequires:  libappstream-glib
BuildRequires:  meson >= 0.59.0
BuildRequires:  pkgconfig(gtk4) >= %{gtk_version}

Requires:   dbus-common
Requires:   gtk4 >= %{gtk_version}
Requires:   hicolor-icon-theme
Requires:   libadwaita >= 1.2
Requires:   mat2
Requires:   yelp

%global _description %{expand:
Metadata within a file can tell a lot about you. Cameras record data about
when and where a picture was taken and which camera was used. Office
applications automatically add author and company information to documents and
spreadsheets. This is sensitive information and you may not want to disclose
it. This tool allows you to view metadata in your files and to get rid of it,
as much as possible. Under the hood, it relies on mat2 to parse and remove the
metadata.}

%description %_description


%prep
%forgeautosetup -p1


%build
%meson
%meson_build


%install
%meson_install
%find_lang %{appid} --with-gnome


%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{appid}.metainfo.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{appid}.desktop


%files -f %{appid}.lang
%license LICENSE.md LICENSES/*
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{appid}.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/icons/hicolor/scalable/*/%{appid}.svg
%{_datadir}/icons/hicolor/symbolic/*/%{appid}-symbolic.svg
%{_metainfodir}/%{appid}.metainfo.xml


%changelog
%autochangelog

Comment 29 Artem 2024-05-20 10:08:59 UTC
>> Release:    0%{?dist}

> We start at 1 in Fedora (Suse 0), but modern package uses %autorelease

OK. 0%{?dist} only using before import to official Fedora repo.

non-%autorelease used for Copr compatibility but maybe this not relevant now. OK.


>> Summary:    Python GTK application to view and clean metadata in files, using mat2

> It's over 80 characters

Without spaces it's exactly 80 characters. Fedora-review also didn't warn about long summary. But OK, I'll shorten it.


> although I am not sure why you split it from the main package

Due warn:
metadata-cleaner.noarch: W: package-with-huge-docs 83%

  Large documentation must go in a -doc subpackage. Large could be size
  (~1MB) or number of files.
  Note: Documentation size is 19425 bytes in 2 files.

Since main package is non-arched there is less reasons for this. Especially with this case where '%find_lang %{appid} --with-gnome' macros grabs help and localization files altogether.

---

Spec URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-40-x86_64/07465429-metadata-cleaner/metadata-cleaner.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/atim/for-review/fedora-40-x86_64/07465429-metadata-cleaner/metadata-cleaner-2.5.5-1.fc40.src.rpm

Comment 30 Robert-André Mauchin 🐧 2024-05-20 15:37:21 UTC
Oh yes you're about 80 characters, just realize I did a error while checking.

If you keep the split package, require it from the main. 

Copr is perfectly fine with autorelease, unless you build for other distro. 
.

Ill chèche when I am finally home from work.

Comment 31 Robert-André Mauchin 🐧 2024-05-20 17:10:57 UTC
LGTM, package approved

Comment 32 Fedora Admin user for bugzilla script actions 2024-05-20 18:03:14 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/metadata-cleaner

Comment 33 Artem 2024-05-20 18:04:03 UTC
(In reply to Robert-André Mauchin 🐧 from comment #31)

Thanks for review!

Comment 34 Fedora Update System 2024-05-20 18:17:07 UTC
FEDORA-2024-1066b5ab2a (metadata-cleaner-2.5.5-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1066b5ab2a

Comment 35 Fedora Update System 2024-05-20 18:19:40 UTC
FEDORA-2024-f8aeac9aa3 (metadata-cleaner-2.5.5-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f8aeac9aa3

Comment 36 Fedora Update System 2024-05-20 18:20:11 UTC
FEDORA-2024-1066b5ab2a (metadata-cleaner-2.5.5-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 37 Fedora Update System 2024-05-20 18:30:06 UTC
FEDORA-2024-8807424905 (metadata-cleaner-2.5.5-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8807424905

Comment 38 Fedora Update System 2024-05-21 02:22:22 UTC
FEDORA-2024-f8aeac9aa3 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f8aeac9aa3 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f8aeac9aa3

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

Comment 39 Fedora Update System 2024-05-21 03:05:23 UTC
FEDORA-2024-8807424905 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8807424905 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8807424905

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

Comment 40 Fedora Update System 2024-05-29 03:36:06 UTC
FEDORA-2024-f8aeac9aa3 (metadata-cleaner-2.5.5-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 41 Fedora Update System 2024-05-29 04:27:02 UTC
FEDORA-2024-8807424905 (metadata-cleaner-2.5.5-1.fc39) has been pushed to the Fedora 39 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.