public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/PyGreSQL] rawhide: [bugfix] Fix duplicate file: copyright.rst shipped as both %license and %doc
Date: Wed, 01 Jul 2026 14:38:15 GMT [thread overview]
Message-ID: <178291669502.1.2697015580261233202.rpms-PyGreSQL-9cd17dfa4244@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/PyGreSQL
Branch : rawhide
Commit : 9cd17dfa42447e54b146d56760d718d0e9546dd7
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-07-01T12:30:17+02:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/PyGreSQL/c/9cd17dfa42447e54b146d56760d718d0e9546dd7?branch=rawhide
Log:
[bugfix] Fix duplicate file: copyright.rst shipped as both %license and %doc
The %doc docs/*.rst glob included docs/copyright.rst which was already
listed as %license docs/copyright.rst, causing rpmlint warning
files-duplicate. RPM installed the file in both /usr/share/licenses/
and /usr/share/doc/, wasting space and confusing file ownership.
Replace the glob with explicit filenames (about.rst, index.rst) to
exclude copyright.rst from %doc. The Fedora Packaging Guidelines
require license files to use %license, not %doc:
https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_license_text
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/PyGreSQL.spec b/PyGreSQL.spec
index 1ebaf26..0cb3066 100644
--- a/PyGreSQL.spec
+++ b/PyGreSQL.spec
@@ -67,7 +67,7 @@ find -type f -exec chmod 644 {} +
%files -n python3-pygresql
%license docs/copyright.rst
%license %{python3_sitearch}/pygresql-*.dist-info/licenses/LICENSE.txt
-%doc docs/*.rst
+%doc docs/about.rst docs/index.rst
%{python3_sitearch}/pg/*.so
%{python3_sitearch}/pg/*.py
%{python3_sitearch}/pg/__pycache__/*.py{c,o}
reply other threads:[~2026-07-01 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178291669502.1.2697015580261233202.rpms-PyGreSQL-9cd17dfa4244@fedoraproject.org \
--to=mschorm@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox