Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions packages/python-pulpcore/python-pulpcore.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
%{!?_root_bindir:%global _root_bindir %{_bindir}}
%{!?_root_libexecdir:%global _root_libexecdir %{_libexecdir}}
%global __python3 /usr/bin/python3.12
%global python3_pkgversion 3.12

# Created by pyp2rpm-3.3.3
%global pypi_name pulpcore
%global wrappers gunicorn pulpcore-worker pulp-content pulpcore-manager
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Name: python%{python3_pkgversion}-%{pypi_name}
Version: 3.73.14
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Pulp Django Application and Related Modules

License: GPLv2+
Expand Down Expand Up @@ -91,7 +88,7 @@ Requires: python%{python3_pkgversion}-psycopg_c >= 3.1.8
Requires: python%{python3_pkgversion}-psycopg_c < 3.3
Requires: python%{python3_pkgversion}-pygtrie >= 2.5
Conflicts: python%{python3_pkgversion}-pygtrie >= 2.6
Requires: python%{python3_pkgversion}-pyparsing >= 3.1.0
Requires: python%{python3_pkgversion}-pyparsing >= 3.1.0
Requires: python%{python3_pkgversion}-pyparsing <= 3.2.1
Requires: python%{python3_pkgversion}-pyyaml >= 5.1.1
Requires: python%{python3_pkgversion}-pyyaml <= 6.0.2
Expand Down Expand Up @@ -149,34 +146,28 @@ sed -i 's/psycopg\[binary\]/psycopg/' pyproject.toml
%build
set -ex
%pyproject_wheel
for wrapper in %{wrappers}
do
printf '#!/bin/bash\nexec %s "$@"\n' ${wrapper} > ${wrapper}
done


%install
set -ex
%pyproject_install
for wrapper in %{wrappers}
do
install -D -m 755 ${wrapper} %{buildroot}%{_root_libexecdir}/%{pypi_name}/${wrapper}
done


%files -n python%{python3_pkgversion}-%{pypi_name}
%{_bindir}/pulpcore-content
%{_bindir}/pulpcore-api
%{_bindir}/pulpcore-manager
%{_bindir}/pulpcore-worker
%{_root_libexecdir}/%{pypi_name}/*
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/pulp_certguard
%{python3_sitelib}/pulp_file
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/


%changelog
* Mon Jul 14 2025 Evgeni Golov - 3.73.14-2
- drop libexec wrappers, nobody uses them anymore

* Mon Jun 30 2025 Foreman Packaging Automation <[email protected]> - 3.73.14-1
- Update to 3.73.14

Expand Down