Jiri -

Thanks for responding.

On 11/26/25 7:56 AM, Jiri Kyjovsky wrote:
basically if you want this to make it work for python3-XXX then you need to do something like

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

I've already got that.

 %package -n python3-%{pypi_name}
 Summary:       Render local readme files before sending off to GitHub
 Requires:      python3

 %description -n python3-%{pypi_name}
Grip is a command-line server application written in Python that uses the GitHub
 markdown API to render a local readme file. The styles and rendering come
directly from GitHub, so you'll know exactly how it will appear. Changes you make to the Readme will be instantly reflected in the browser without requiring
 a page refresh.

(I didn't know about the %{summary} macro.)

it is also a good idea to add `BuildRequires: python3-devel` as build dependency for generating the metadata

I've got this, which is supposed to take care of that, AFAIK.

 %generate_buildrequires
 %pyproject_buildrequires

Looking at the downloaded binary package, it sure seems to provide
python3-grip.

 $ rpm -qp --provides python3-grip-4.6.2-1.fc43.noarch.rpm
 python-grip = 4.6.2-1.fc43
 python3-grip = 4.6.2-1.fc43
 python3.14-grip = 4.6.2-1.fc43
 python3.14dist(grip) = 4.6.2
 python3dist(grip) = 4.6.2

Here is the complete SPEC file.

 %global        pypi_name       grip

 Name:          python-%{pypi_name}
 Version:       4.6.2
 Release:       1%{?dist}
 Summary:       Render local readme files before sending off to GitHub
 License:       MIT
 URL:           https://github.com/joeyespo/grip
 Source0:       %pypi_source %pypi_name
 BuildArch:     noarch

 %description
Grip is a command-line server application written in Python that uses the GitHub
 markdown API to render a local readme file. The styles and rendering come
directly from GitHub, so you'll know exactly how it will appear. Changes you make to the Readme will be instantly reflected in the browser without requiring
 a page refresh.

 %package -n python3-%{pypi_name}
 Summary:       Render local readme files before sending off to GitHub
 Requires:      python3

 %description -n python3-%{pypi_name}
Grip is a command-line server application written in Python that uses the GitHub
 markdown API to render a local readme file. The styles and rendering come
directly from GitHub, so you'll know exactly how it will appear. Changes you make to the Readme will be instantly reflected in the browser without requiring
 a page refresh.

 %prep
 %autosetup -n %{pypi_name}-%{version}

 %generate_buildrequires
 %pyproject_buildrequires

 %build
 %pyproject_wheel

 %install
 %pyproject_install
 %pyproject_save_files grip

 %files -n python3-%{pypi_name} -f %pyproject_files
 %{_bindir}/grip

 %changelog
 * Tue Nov 25 2025 Ian Pilcher <[email protected]> - 4.6.2-1
 - Initial SPEC file

I hope that you (or someone) can see a mistake, because I am thoroughly
confused.

Thanks!

--
========================================================================
If your user interface is intuitive in retrospect ... it isn't intuitive
========================================================================
--
_______________________________________________
copr-devel 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.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to