diff --git a/SPECS/netbox.spec b/SPECS/netbox.spec index 1368296..7ac29be 100644 --- a/SPECS/netbox.spec +++ b/SPECS/netbox.spec @@ -1,7 +1,11 @@ -%define __python /opt/rh/rh-python38/root/usr/bin/python +%define __python3 python3.12 +%define __python3_binary /usr/bin/%{__python3} +%define __psql_version 16 +%define __psql_binary /usr/pgsql-%{__psql_version}/bin/psql + Name: netbox -Version: 3.5.4 -Release: 1 +Version: 4.1.11 +Release: 2 Summary: The premier source of truth powering network automation. Group: Applications/Communications @@ -11,7 +15,7 @@ Source: https://github.com/%{name}-community/%{name}/archive/refs/tags/v%{versio Source2: netbox.logrotate Source3: netbox.logfile -Requires: gcc libxml2-devel libxslt-devel libffi-devel libpq5-devel openssl-devel redhat-rpm-config rh-redis6-redis rh-python38 rh-python38-python-pip rh-python38-python-devel +Requires: gcc libxml2-devel libxslt-devel libffi-devel libpq5-devel openssl-devel postgresql%{__psql_version}-server redhat-rpm-config redis pwgen %{__python3} %{__python3}-pip %{__python3}-devel %description NetBox is the source of truth for everything on your network, from physical @@ -58,6 +62,9 @@ sed -e "s/^ALLOWED_HOSTS = \[\]$/ALLOWED_HOSTS = \['*'\]/" \ }#' \ -i %{name}/%{name}/configuration.py +# needed to accept the autologin cookie in the NMSPrime