add deb & rpm files for packaging

Change-Id: Icbfd6ef0d65b4c54810175da1cf14e570fd97300
This commit is contained in:
Vincent Llorens 2016-06-02 16:17:54 +02:00
parent 5d07e0b8ef
commit 86b0396486
7 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,5 @@
python-synergy-scheduler-manager (0.1-1) unstable; urgency=low
* Initial release
-- Vincent Llorens <vincent.llorens@cc.in2p3.fr> Wed, 01 Jun 2016 13:41:08 +0200

1
packaging/debian/compat Normal file
View File

@ -0,0 +1 @@
9

24
packaging/debian/control Normal file
View File

@ -0,0 +1,24 @@
Source: python-synergy-scheduler-manager
Section: contrib/python
Priority: optional
Maintainer: Vincent Llorens <vincent.llorens@cc.in2p3.fr>
Build-Depends: debhelper (>= 9),
dh-python,
git-core,
python-all,
python-pbr,
python-setuptools
Standards-Version: 3.9.5
Homepage: https://launchpad.net/synergy-scheduler-manager
Vcs-Git: git://git.openstack.org/openstack/synergy-scheduler-manager
Vcs-Browser: https://git.openstack.org/cgit/openstack/synergy-scheduler-manager
Package: python-synergy-scheduler-manager
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
Description: Advanced scheduling capability for OpenStack.
The Scheduler Manager provides advanced scheduling (fairshare) capability for
OpenStack. In particular it aims to address the resource utilization issues
coming from the static allocation model inherent in the Cloud paradigm, by
adopting the dynamic partitioning strategy implemented by the advanced batch
schedulers.

View File

@ -0,0 +1,21 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: synergy-scheduler-manager
Source: <https://git.launchpad.net/synergy-scheduler-manager>
Files: *
Copyright: 2015, 2016 Lisa Zangrando
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'

1
packaging/debian/docs Normal file
View File

@ -0,0 +1 @@
README.rst

30
packaging/debian/rules Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export PYBUILD_NAME=python-synergy-scheduler-manager
# main packaging script based on dh7 syntax
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_test:
# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

View File

@ -0,0 +1,47 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-synergy-scheduler-manager
Version: 0.1
Release: 1%{?dist}
Summary: Advanced scheduling capability for OpenStack.
Source: %name-%version.tar.bz2
License: ASL 2.0
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-pbr
Requires: python-synergy-service
Requires: python-oslo-config
Requires: python-oslo-messaging
Requires: python-sqlalchemy
%description
The Scheduler Manager provides advanced scheduling (fairshare) capability for
OpenStack. In particular it aims to address the resource utilization issues
coming from the static allocation model inherent in the Cloud paradigm, by
adopting the dynamic partitioning strategy implemented by the advanced batch
schedulers.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc README.rst
%{python_sitelib}/*
%changelog