Skip to content

Commit

Permalink
Changes for oracle 8 supper #1421
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Sacco committed Mar 19, 2024
1 parent be5da4a commit 7825ddd
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 16 deletions.
26 changes: 26 additions & 0 deletions pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ cat > $RPM_BUILD_ROOT/%{macro_prefix}%{name} <<EOF
#
#
# Python
#
# This is the version we like.
%%_pscheduler_python_version_major 3
%if 0%{?el7}
%%error EL7 is no longer supported. Try something newer.
%endif
%if 0%{?el8}%{?ol8}
# EL8 standardized on just the major version, as did EPEL.
%%_pscheduler_python python%%{_pscheduler_python_version_major}
%%_pscheduler_python_epel python%%{_pscheduler_python_version_major}
%else
# EL9+ has everyting as just plain python
%%_pscheduler_python python
%%_pscheduler_python_epel python
%endif
#
# PostgreSQL
#
Expand Down
12 changes: 10 additions & 2 deletions python-jsonschema/unibuild-packaging/rpm/python-jsonschema.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ URL: http://pypi.python.org/pypi/jsonschema
Source: %{short}-%{version}.tar.gz

Requires: %{_pscheduler_python}

%if 0%{?el8}
Requires: %{_pscheduler_python}-attrs
%endif

Requires: %{_pscheduler_python}-pyrsistent
# This is required for some reason.
Requires: %{_pscheduler_python}-setuptools

BuildRequires: %{_pscheduler_python}
BuildRequires: %{_pscheduler_python}-setuptools
%if 0%{?el8}
BuildRequires: %{_pscheduler_python}-setuptools_scm
%endif


%description
Expand All @@ -45,11 +53,11 @@ JSON Schema library for Python


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES

# This package installs a binary that it really shouldn't because it
# may overlap with the same file from other versions of the same
Expand Down
4 changes: 2 additions & 2 deletions python-kafka/unibuild-packaging/rpm/python-kafka.spec
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ This module implements Apache Kafka producers and consumers in pure python, whic


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES


%clean
Expand Down
4 changes: 2 additions & 2 deletions python-nmap3/unibuild-packaging/rpm/python-nmap3.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ A python 3 library which helps in using nmap port scanner. The way this tools wo


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES


%clean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ time the job should be run.


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES -O1
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES -O1


%clean
Expand Down
4 changes: 2 additions & 2 deletions python-py-amqp/unibuild-packaging/rpm/python-py-amqp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ A pure Python library for AMQP


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES


%clean
Expand Down
4 changes: 2 additions & 2 deletions python-py-radix/unibuild-packaging/rpm/python-py-radix.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ A network address manipulation library for Python


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES


%clean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ immutable.


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES


%clean
Expand Down
4 changes: 2 additions & 2 deletions python-vine/unibuild-packaging/rpm/python-vine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ A pure Python library implementing promises


%build
python setup.py build
%{_pscheduler_python} setup.py build


%install
python setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES
%{_pscheduler_python} setup.py install --root=$RPM_BUILD_ROOT --single-version-externally-managed -O1 --record=INSTALLED_FILES


%clean
Expand Down

0 comments on commit 7825ddd

Please sign in to comment.