Skip to content

Commit

Permalink
Removed EL6/7/8 Python naming accommodations. #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jan 10, 2024
1 parent a82b2b8 commit 3be0bdd
Show file tree
Hide file tree
Showing 102 changed files with 380 additions and 396 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6
Requires: %{_pscheduler_python}-pscheduler >= 1.3.7.1
Requires: %{_pscheduler_python}-memcached
Requires: python-pscheduler >= 1.3.7.1
Requires: python-memcached
Requires: memcached
Requires(post): memcached
Requires: chkconfig

BuildRequires: pscheduler-rpm
BuildRequires: %{_pscheduler_python}-pscheduler
BuildRequires: %{_pscheduler_python_epel}-nose
BuildRequires: python-pscheduler
BuildRequires: python-nose

%define directory %{_includedir}/make

Expand All @@ -45,7 +45,7 @@ This archiver sends JSON test results to Esmond Measurement Archive

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6.1
Requires: %{_pscheduler_python}-pscheduler >= 1.3.7.1
Requires: python-pscheduler >= 1.3.7.1

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.0.2
Requires: %{_pscheduler_python}-kafka
Requires: %{_pscheduler_python}-pscheduler
Requires: python-kafka
Requires: python-pscheduler

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.0.2
Requires: %{_pscheduler_python_epel}-psycopg2 >= 2.6.1
Requires: python-psycopg2 >= 2.6.1

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6
Requires: %{_pscheduler_python}-pscheduler >= 1.3.7.3
Requires: %{_pscheduler_python}-py-amqp >= 5.0.6
Requires: %{_pscheduler_python}-vine >= 5.0.0
Requires: python-pscheduler >= 1.3.7.3
Requires: python-py-amqp >= 5.0.6
Requires: python-vine >= 5.0.0

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler
Requires: %{_pscheduler_python}-pysnmp
Requires: python-pscheduler
Requires: python-pysnmp

BuildRequires: pscheduler-rpm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6.1
Requires: %{_pscheduler_python}-pscheduler >= 4.4.0
Requires: python-pscheduler >= 4.4.0

BuildRequires: pscheduler-rpm
BuildRequires: %{_pscheduler_python}
BuildRequires: %{_pscheduler_python_epel}-nose
BuildRequires: python
BuildRequires: python-nose

%define directory %{_includedir}/make

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6.1
Requires: %{_pscheduler_python}-pscheduler >= 5.0.0
Requires: python-pscheduler >= 5.0.0

BuildRequires: pscheduler-rpm
BuildRequires: %{_pscheduler_python}
BuildRequires: %{_pscheduler_python_epel}-nose
BuildRequires: python
BuildRequires: python-nose

%define directory %{_includedir}/make

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler

BuildRequires: pscheduler-rpm >= 1.0.0.5.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler

BuildRequires: pscheduler-rpm >= 1.0.0.5.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler
Requires: iproute

BuildRequires: pscheduler-rpm >= 1.0.0.5.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler
Requires: python-pscheduler
Requires: iproute

BuildRequires: pscheduler-rpm >= 1.0.0.5.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Requires: gnuplot >= 4.6.2

# This is for netstat.
Requires: net-tools
Requires: %{_pscheduler_python}-pscheduler >= 4.4.0
Requires: python-pscheduler >= 4.4.0

Requires: curl
Requires: dmidecode
Expand Down
22 changes: 3 additions & 19 deletions pscheduler-rpm/unibuild-packaging/rpm/pscheduler-rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,6 @@ cat > $RPM_BUILD_ROOT/%{macro_prefix}%{name} <<EOF
#
#
# Python
#
# This is the version we like.
%%_pscheduler_python_version_major 3
%%_pscheduler_python_version_minor 6
# TODO: Clean use of this out of the RPM specs
# This is a hold-over from the bad old days when there were
# inconsistencies in how repos named packages. By EL9, everything was
# the same name.
%%_pscheduler_python python
%%_pscheduler_python_epel python
#
# PostgreSQL
#
Expand All @@ -71,7 +53,9 @@ cat > $RPM_BUILD_ROOT/%{macro_prefix}%{name} <<EOF
%%_pscheduler_postgresql_service postgresql
%%_pscheduler_postgresql_data %%{_pscheduler_postgresql_data_top}/data
%%_pscheduler_postgresql_initdb postgresql-setup --initdb
%%_pscheduler_postgresql_plpython %%{_pscheduler_postgresql_package}-plpython%%{_pscheduler_python_version_major}
# PostgreSQL still specifies the version number in the package.
%%_pscheduler_postgresql_plpython %%{_pscheduler_postgresql_package}-plpython3
%%_pscheduler_postgresql_version_file %%{_pscheduler_postgresql_data}/PG_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,30 @@ Requires: curl
Requires: psmisc
Requires: pscheduler-account
# This is from EPEL but doesn't have a python36 prefix
Requires: %{_pscheduler_python}-daemon
Requires: %{_pscheduler_python}-flask
Requires: %{_pscheduler_python}-jsontemplate
Requires: %{_pscheduler_python_epel}-psutil
Requires: python-daemon
Requires: python-flask
Requires: python-jsontemplate
Requires: python-psutil

# API Server
BuildRequires: pscheduler-account
BuildRequires: pscheduler-rpm
BuildRequires: %{_pscheduler_python}-parse-crontab
BuildRequires: %{_pscheduler_python}-pscheduler >= 5.1.0
BuildRequires: python-parse-crontab
BuildRequires: python-pscheduler >= 5.1.0
BuildRequires: m4
Requires: httpd-wsgi-socket
# Note that the actual definition of what protocol is used is part of
# python-pscheduler, but this package is what does the serving, so
# mod_ssl is required here.
Requires: mod_ssl
Requires: mod_wsgi > 4.0
Requires: %{_pscheduler_python}-parse-crontab
Requires: %{_pscheduler_python}-pscheduler >= 5.1.0
Requires: %{_pscheduler_python}-pytz
Requires: python-parse-crontab
Requires: python-pscheduler >= 5.1.0
Requires: python-pytz

# General
BuildRequires: pscheduler-rpm
BuildRequires: %{_pscheduler_python}
BuildRequires: python
BuildRequires: systemd
%{?systemd_requires: %systemd_requires}

Expand Down Expand Up @@ -254,7 +254,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_pscheduler_log_dir}
#
# API Server
#
API_ROOT="$(%{_pscheduler_python} -c 'import pscheduler ; print(pscheduler.api_root())')"
API_ROOT="$(python -c 'import pscheduler ; print(pscheduler.api_root())')"

make -C api-server \
'USER_NAME=%{_pscheduler_user}' \
Expand All @@ -265,7 +265,7 @@ make -C api-server \
"PREFIX=${RPM_BUILD_ROOT}" \
"DSN_FILE=%{dsn_file}" \
"LIMITS_FILE=%{_pscheduler_limit_config}" \
"PYTHON=%(command -v %{_pscheduler_python})" \
"PYTHON=%(command -v python)" \
"RUN_DIR=%{run_dir}" \
install

Expand Down Expand Up @@ -583,7 +583,7 @@ fi
# Any upgrade of python-pscheduler needs to force a database restart
# because Pg doesn't see module upgrades.

%triggerin -- %{_pscheduler_python}-pscheduler
%triggerin -- python-pscheduler
systemctl reload-or-try-restart "%{_pscheduler_postgresql_service}"

# ------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server >= 1.1.6
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -39,7 +39,7 @@ Clock test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Provides: %{name} = %{version}-%{release}

# Include all required libraries here
Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -47,7 +47,7 @@ dhcp test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Provides: %{name} = %{version}-%{release}

# Include all required libraries here
Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -47,7 +47,7 @@ disk-to-disk test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -39,7 +39,7 @@ DNS test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Provides: %{name} = %{version}-%{release}

# Include all required libraries here
Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -47,7 +47,7 @@ dot1x test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Source0: %{short}-%{version}.tar.gz
Provides: %{name} = %{version}-%{release}

Requires: pscheduler-server
Requires: %{_pscheduler_python}-pscheduler >= 1.3
Requires: %{_pscheduler_python}-jsontemplate
Requires: python-pscheduler >= 1.3
Requires: python-jsontemplate

BuildRequires: pscheduler-rpm

Expand All @@ -39,7 +39,7 @@ HTTP test class for pScheduler

%build
make \
PYTHON=%{_pscheduler_python} \
PYTHON=python \
DESTDIR=$RPM_BUILD_ROOT/%{dest} \
install

Expand Down
Loading

0 comments on commit 3be0bdd

Please sign in to comment.