Polemarch is now working again in vesion 1.1.2
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
%define namebase polemarch
|
||||
%define user polemarch
|
||||
%define datad poledata
|
||||
%define version 1.1.0
|
||||
%define version 1.1.2
|
||||
%define release 1
|
||||
%define __prelink_undo_cmd %{nil}
|
||||
%define _binaries_in_noarch_packages_terminate_build 0
|
||||
@@ -31,6 +31,7 @@ AutoProv: No
|
||||
Source0: %name-%version.tar.gz
|
||||
Source1: %name-settings
|
||||
Source2: %name-redis-patch.sh
|
||||
Source3: %name-redis-client.patch
|
||||
Patch0: %name-python3.patch
|
||||
|
||||
# Note: these two packages must not be installed by distribution (fedora): python3-pyyaml, python3-blockdiag-devel
|
||||
@@ -43,7 +44,7 @@ Requires: git
|
||||
Requires: libyaml-devel
|
||||
Requires: krb5-devel, krb5-libs, openldap-devel
|
||||
Requires: mailcap
|
||||
Requires: python3-redis, python3-django-redis, redis
|
||||
Requires: python3-redis >= 3.2.0, python3-django-redis, redis
|
||||
|
||||
%description
|
||||
Polemarch is service for orchestration infrastructure by ansible.
|
||||
@@ -63,6 +64,9 @@ mv %{buildroot}/var/run %{buildroot}/
|
||||
# create additional directories:
|
||||
install -d %{buildroot}/%{_var}/log/%{name}
|
||||
install -d %{buildroot}/opt/%{datad}
|
||||
pushd %{buildroot}
|
||||
patch -p0 < %{S:3}
|
||||
popd
|
||||
|
||||
%pre
|
||||
getent group %{user} >/dev/null || \
|
||||
@@ -74,10 +78,7 @@ exit 0
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
# only migrate, if it is an update, at first installation, no database is available
|
||||
if [ $1 -eq 2 ]; then
|
||||
su - %{user} -c "/opt/%{name}/bin/%{shortname}ctl migrate"
|
||||
fi
|
||||
sudo -u %{user} /opt/%{name}/bin/%{shortname}ctl migrate
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
@@ -107,6 +108,11 @@ fi
|
||||
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 8 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- Do migrate alltimes postinstall script.
|
||||
- Upgrade to latest 1.1.2 version.
|
||||
- redis-py patch for version 3.2.0 which is required but not resolved.
|
||||
|
||||
* Fri Feb 22 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- Some fixes for post script.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user