%define name myplc
%define version 5.3
-%define taglevel 4
+%define taglevel 5
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
%global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
Group: Applications/Systems
# planetlab stuff
+Requires: myplc-docs
+Requires: myplc-release
+Requires: myplc-core
+Requires: createrepo
Requires: bootmanager
Requires: bootcd-%{nodefamily}
Requires: bootcd-initscripts
-Requires: www-register-wizard
+Requires: nodeimage-%{nodefamily}
Requires: nodeconfig
Requires: nodeyum
-Requires: nodeimage-%{nodefamily}
-Requires: myplc-docs
-Requires: myplc-release
-Requires: myplc-core
-Requires: createrepo
+Requires: www-register-wizard
# starting with f16 we depend on this new rpm
%endif
-%define debug_package %{nil}
-
%description
MyPLC is a complete PlanetLab Central (PLC) portable installation.
The default installation consists of a web server, an XML-RPC API
####################### myplc-core
+# Warning: it appears that Requires should come here
+# BEFORE the %description thingy
%package core
Summary: core contents of myplc with API + db + www UI
-% description core
-The core of myplc is about its API + database + web interface.
-Installing this will not require any node-oriented
-package, like bootcd, nodeimage, or bootmanager.
-
-# as much as possible, requires should go in the subpackages specfile
+# as much as possible, requires should have gone
+# with the individual packages, but well
Requires: myplc-config
Requires: plcapi
Requires: plewww
Requires: cronie
+%description core
+The core of myplc is about its API + database + web interface.
+Installing this will not require any node-oriented
+package, like bootcd, nodeimage, or bootmanager.
+
####################### myplc-config
%package config
This package provides the Python module to configure MyPLC.
+
%prep
%setup -q
%files core
%defattr(-,root,root,-)
+/usr/lib/systemd/system/plc.service
+/usr/bin/plc-ctl
+/etc/plc.d
/etc/planetlab
/etc/plc_sliceinitscripts
/etc/support-scripts
%changelog
+* Mon Jan 07 2019 Thierry Parmentelat <thierry.parmentelat@inria.fr> - myplc-5.3-5
+- last version suitable for f27/f29 with python2
+- packaging is split up, one more rpm named 'myplc-core' is produced,
+- that covers the infrastructure side only (without bootcds and nodeimages and all node-oriented material)
+- no more init file, one systemd service only, that leverages new /usr/bin/plc-ctl
+- more robust config for httpd and php-fpm and php
+
* Sun Jul 16 2017 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - myplc-5.3-4
- takes care of creating plcapi log file