https://bugzilla.redhat.com/show_bug.cgi?id=2373806



--- Comment #6 from Ben Beasley <[email protected]> ---
This is basically a legacy of the time when we were building the same source
packages for Python 2 and Python 3, but the source package for a Python library
needs to be named python-foo, while the binary packages are python3-foo. See
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_library_naming.

So in this case, instead of 

Name:           python3-lap
[…]
%description
This package provides the 'lap' Python library, a Linear Assignment Problem
solver using the Jonker-Volgenant algorithm. It is required by applications
like Beets for efficient tag matching.
[…]
%files
%license LICENSE
%{python3_sitearch}/lap/
%{python3_sitearch}/lap-%{version}.dist-info/
[…]

… you should have:

Name:           python-lap
[…]
%global _description %{expand:
This package provides the 'lap' Python library, a Linear Assignment Problem
solver using the Jonker-Volgenant algorithm. It is required by applications
like Beets for efficient tag matching.}

%description %{_description}

%package -n python3-lap
Summary:        %{summary}

%description -n python3-lap %{_description}
[…]
%files -n python3-lap -f %{pyproject_files}
[…]

(Note that the python-lap base package will have no %files section.)

See:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2373806

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202373806%23c6

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to