X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa.spec;h=65c31904fd7e59ce8add897d0b659aa1659909f2;hb=10b6e7e82a46159e9ce8f320a61252d090114f7e;hp=d15d78671e0e022f982626aa587c2c4512bd9c18;hpb=1252c666e9ff5b9ed37e22fd3be3c7745836f8d1;p=sfa.git diff --git a/sfa.spec b/sfa.spec index d15d7867..65c31904 100644 --- a/sfa.spec +++ b/sfa.spec @@ -1,6 +1,6 @@ %define name sfa %define version 4.0 -%define taglevel 0 +%define taglevel 1 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} %global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) @@ -24,31 +24,32 @@ URL: %{SCMURL} Summary: Server-side for SFA, generic implementation derived from PlanetLab Group: Applications/System BuildRequires: make -BuildRequires: python-setuptools +# for uuidgen - used in db password generation +Requires: util-linux-ng # for the registry Requires: postgresql >= 8.2, postgresql-server >= 8.2 Requires: postgresql-python -Requires: python-psycopg2 -# f8=0.4 - f12=0.5 f14=0.6 f16=0.7 -Requires: python-sqlalchemy -Requires: python-migrate -# for uuidgen - used in db password generation -# on f8 this actually comes with e2fsprogs, go figure -Requires: util-linux-ng -# and the SFA libraries of course +Requires: python2-psycopg2 +Requires: python2-sqlalchemy +Requires: python2-migrate +# and of course the bulk of it Requires: sfa-common %package common Summary: Python libraries for SFA, generic implementation derived from PlanetLab Group: Applications/System -Requires: python >= 2.7 -Requires: pyOpenSSL >= 0.7 +Requires: python +Requires: pyOpenSSL Requires: m2crypto -Requires: python-dateutil -Requires: python-lxml -Requires: libxslt-python +Requires: python2-dateutil +Requires: python2-lxml +%if "%{distro}" == "Fedora" && "%{distrorelease}" <= "27" Requires: python-ZSI +%else +Requires: python2-zsi +%endif +Requires: libxslt-python Requires: xmlsec1-openssl-devel %package client @@ -126,7 +127,7 @@ make VERSIONTAG="%{version}-%{taglevel}" SCMURL="%{SCMURL}" install DESTDIR="$RP rm -rf $RPM_BUILD_ROOT %files -/usr/lib/systemd/system/*.service +/lib/systemd/system/*.service %{_bindir}/sfa-start.py* %{_bindir}/sfaadmin.py* %{_bindir}/sfaadmin @@ -191,33 +192,34 @@ rm -rf $RPM_BUILD_ROOT %files tests %{_datadir}/sfa/tests -### sfa installs the 'sfa' service +# arbitrary choice here, subject to manual tweaks if needed +# this is in line with default_config.xml +# no need to enable sfa-db, will be activated as a dependency %post -chkconfig --add sfa +systemctl enable sfa-aggregate +systemctl enable sfa-registry %preun if [ "$1" = 0 ] ; then - /sbin/service sfa stop || : - /sbin/chkconfig --del sfa || : + for service in sfa-aggregate sfa-registry sfa-db; do + systemctl is-enabled $service && systemctl disable $service + systemctl is-active $service && systemctl stop $service + done fi %postun -[ "$1" -ge "1" ] && { service sfa dbdump ; service sfa restart ; } - -#### sfa-cm installs the 'sfa-cm' service -#%post cm -#chkconfig --add sfa-cm -# -#%preun cm -#if [ "$1" = 0 ] ; then -# /sbin/service sfa-cm stop || : -# /sbin/chkconfig --del sfa-cm || : -#fi -# -#%postun cm -#[ "$1" -ge "1" ] && service sfa-cm restart || : +if [ "$1" -ge "1" ] ; then + for service in sfa-db sfa-registry sfa-aggregate; do + systemctl is-active $service && systemctl restart $service + done +fi %changelog +* Wed May 30 2018 Thierry - sfa-4.0-1 +- systemd service files install in /lib instead of /usr/lib for ubuntus +- removed all features relating to slice manager +- removed all features relating to component manager + * Mon May 28 2018 Thierry - sfa-4.0-0 - expose geni_api_versions as https:// - avoid publishing non-relevant entries in GetVersion