SPEC: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01713877-oraculum/oraculum.spec SRPM: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01713877-oraculum/oraculum-0.1.0-1.fc34.src.rpm
SPEC: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01722477-oraculum/oraculum.spec SRPM: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01722477-oraculum/oraculum-0.2.0-1.fc34.src.rpm
SPEC: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01722698-oraculum/oraculum.spec SRPM: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01722698-oraculum/oraculum-0.2.1-1.fc34.src.rpm
Spec sanity: > # Don't forget to also change oraculum/__init__.py Is this spec file shared with upstream? I don't see this line relevant in Fedora. > # Test requirements, we need to list these as there is no python3 builddep generator But there is ;) https://src.fedoraproject.org/rpms/pyproject-rpm-macros The install section seems like a lot of code. Maybe this can be solved by upstream Makefile or package_data? Let me know if I shall try doing the second option. https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets mentions to BR systemd-rpm-macros. Is systemd/systemd-devel actually needed on build time? > # Remove compiled .py files from /etc after os_install_post > rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o} > rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__ Doing this in %check is ether a neat trick or a dirty hack, depending on the perspective. Either way, no os_install_post action in Fedora currently bytecompiles files in %{_sysconfdir}. Is it really needed? Especially the .pyo thing seems a bit suspicious. What Fedora/EPEL releases do you target with this spec file?
I've also noticed there is no %license.
SPEC: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01744828-oraculum/oraculum.spec SRPM: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01744828-oraculum/oraculum-0.2.2-1.fc34.src.rpm
SPEC: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01744848-oraculum/oraculum.spec SRPM: https://download.copr.fedorainfracloud.org/results/frantisekz/oraculum/fedora-rawhide-x86_64/01744848-oraculum/oraculum-0.2.4-1.fc34.src.rpm
One more thing that seems a bit odd. oraculum is not on PyPI. This is not (yet) a requirement in the Python guidelines, but it makes sense to me, when the package provides python3dist(oraculum) that `pip install oraculum` should install more or less the same thing. Otherwise the spec looks sane and I'll proceed with Fedora-Review shortly.
Funny enough, this was already imported: https://src.fedoraproject.org/rpms/oraculum/blob/master/f/oraculum.spec