From 28850f28aaa80cc71563f4c4698af70da6334f03 Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Sat, 10 Dec 2016 16:35:49 +0100 Subject: Basic CI integration for Gluon This first iteration of OPNFV CI integration targets a daily build of an installable RPM package based on the lastest Gluon upstream master branch. Change-Id: I6ad0b339284e58e566eb85a3bcf981b52ba372b8 Signed-off-by: Georg Kunz --- build/rpm_specs/gluon.spec | 85 +++++++++++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 34 deletions(-) (limited to 'build/rpm_specs') diff --git a/build/rpm_specs/gluon.spec b/build/rpm_specs/gluon.spec index f64640f..946d415 100644 --- a/build/rpm_specs/gluon.spec +++ b/build/rpm_specs/gluon.spec @@ -1,35 +1,42 @@ %define release 1 %define _sharedstatedir /var/lib - -Summary: OpenStack Gluon Framework -Name: gluon -Version: 0.0.1 -Release: %{release}%{?git}%{?dist} - -License: Apache 2.0 -Group: Applications/Internet -Source0: gluon.tar.gz -Url: https://github.com/openstack/gluon -BuildArch: noarch - -Vendor: OpenStack -Packager: Georg Kunz - -Requires: python-pbr -Requires: python-click -Requires: python-six -Requires: python-requests -Requires: python-yaml -Requires: python-sqlalchemy -Requires: python2-babel -Requires: python2-oslo-db -Requires: python2-oslo-config -Requires: python2-oslo-versionedobjects -Requires: python2-oslo-log -Requires: python2-oslo-utils -Requires: python2-oslo-i18n -Requires: python2-wsme -Requires: pytz +%define build_timestamp %(date +"%Y%m%d") + +Summary: OpenStack Gluon Framework +Name: gluon +Version: 0.0.1 +Release: %{release}_%{build_timestamp} + +License: Apache 2.0 +Group: Applications/Internet +Source0: gluon.tar.gz +Url: https://github.com/openstack/gluon +BuildArch: noarch + +#BuildRequires: systemd + +Vendor: OpenStack +Packager: Georg Kunz + +Requires: python-pbr +Requires: python-click +Requires: python-six +Requires: python-requests +Requires: python-yaml +Requires: python-sqlalchemy +Requires: python2-babel +Requires: python2-oslo-db +Requires: python2-oslo-config +Requires: python2-oslo-versionedobjects +Requires: python2-oslo-log +Requires: python2-oslo-utils +Requires: python2-oslo-i18n +Requires: python2-wsme +Requires: pytz + +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd %description OpenStack Gluon framework for NFV networking @@ -76,6 +83,15 @@ if ! getent passwd proton >/dev/null; then fi exit 0 +%post +%systemd_post openstack-proton-server +systemctl start openstack-proton-server + +%preun +%systemd_preun openstack-proton-server + +%postun +%systemd_postun_with_restart openstack-proton-server %clean rm -rf %{buildroot} @@ -83,7 +99,8 @@ rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %attr(644,root,root) /usr/lib/systemd/system/openstack-proton-server.service -%attr(640,proton,root) /etc/proton/proton.conf -%attr(750,proton,root) /var/log/proton -%attr(750,proton,root) /var/run/proton -%attr(755,proton,root) /var/lib/proton +%dir %attr(700,proton,root) %{_sysconfdir}/proton +%attr(640,proton,root) %{_sysconfdir}/proton/proton.conf +%dir %attr(750,proton,root) %{_localstatedir}/log/proton +%dir %attr(750,proton,root) %{_localstatedir}/run/proton +%dir %attr(755,proton,root) %{_sharedstatedir}/proton -- cgit 1.2.3-korg