Hi,
A long time ago I have created a spec file for python-radexreader: https://src.fedoraproject.org/rpms/python-radexreader
But today, I have a problem. I'm working on version 2.0.0, and the program will provide graphical interfaces.
With Debian, it's easy, currently the "spec" makes: - python3-radexreader (python library) - radexreader (cli command line) I have added: - radexreader-gtk3 - radexreader-gtk4 - radexreader-qt5 - radexreader-qt6
But with Fedora (and openSUSE), currently the spec file makes: - python3-radexreader (python library and cli command line)
I guess I'll have to update the specs this way: ---- %package -n python3-radexreader Summary: ... BuildRequires: ... Requires: ... %description -n python3-radexreader ... %files -n python3-radexreader ...
%package -n radexreader Summary: ... BuildRequires: ... Requires: ... %description -n radexreader ... %files -n radexreader ...
%package -n radexreader-gtk3 Summary: ... BuildRequires: ... Requires: ... %description -n radexreader-gtk3 ... %files -n radexreader-gtk3 ...
... ---
Is it correct? Thanks!
All is based on https://packages.debian.org/source/trixie/scour + https://src.fedoraproject.org/rpms/python-scour
On Sun, Feb 11, 2024 at 06:44:26PM -0000, Fabrice wrote:
Hi,
A long time ago I have created a spec file for python-radexreader: https://src.fedoraproject.org/rpms/python-radexreader
But today, I have a problem. I'm working on version 2.0.0, and the program will provide graphical interfaces.
With Debian, it's easy, currently the "spec" makes:
- python3-radexreader (python library)
- radexreader (cli command line)
I have added:
- radexreader-gtk3
- radexreader-gtk4
- radexreader-qt5
- radexreader-qt6
But with Fedora (and openSUSE), currently the spec file makes:
- python3-radexreader (python library and cli command line)
I guess I'll have to update the specs this way:
%package -n python3-radexreader Summary: ... BuildRequires: ... Requires: ... %description -n python3-radexreader ... %files -n python3-radexreader ...
%package -n radexreader Summary: ... BuildRequires: ... Requires: ... %description -n radexreader ... %files -n radexreader ...
%package -n radexreader-gtk3 Summary: ... BuildRequires: ... Requires: ... %description -n radexreader-gtk3 ... %files -n radexreader-gtk3 ...
This looks generally correct, except that I don't think you need all the subpackages. Just build for the latest versions of the toolkits supported. (Or maybe even just one select toolkit. You can always easily add another subpackage later, but removing one is more complex.)
Zbyszek
packaging@lists.fedoraproject.org