Remove Debian bits and let the debian package take care of it.
Change-Id: I33424eea5077e66787930127079c580b568f81e2
This commit is contained in:
parent
2532d25c08
commit
3e8413be30
@ -1,6 +1,5 @@
|
|||||||
PYTHON=`which python`
|
PYTHON=`which python`
|
||||||
DESTDIR=/
|
DESTDIR=/
|
||||||
BUILDIR=$(CURDIR)/debian/horizon
|
|
||||||
PROJECT=horizon
|
PROJECT=horizon
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@ -9,7 +8,6 @@ all:
|
|||||||
@echo "make source - Create source package"
|
@echo "make source - Create source package"
|
||||||
@echo "make install - Install on local system"
|
@echo "make install - Install on local system"
|
||||||
@echo "make buildrpm - Generate a rpm package"
|
@echo "make buildrpm - Generate a rpm package"
|
||||||
@echo "make builddeb - Generate a deb package"
|
|
||||||
@echo "make clean - Get rid of scratch and byte files"
|
@echo "make clean - Get rid of scratch and byte files"
|
||||||
|
|
||||||
buildout: ./bin/buildout
|
buildout: ./bin/buildout
|
||||||
@ -27,17 +25,7 @@ install:
|
|||||||
buildrpm:
|
buildrpm:
|
||||||
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
|
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
|
||||||
|
|
||||||
builddeb:
|
|
||||||
# build the source package in the parent directory
|
|
||||||
# then rename it to project_version.orig.tar.gz
|
|
||||||
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
|
|
||||||
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
|
|
||||||
# build the package
|
|
||||||
#dpkg-buildpackage -i -I -rfakeroot
|
|
||||||
dpkg-buildpackage -b -rfakeroot -tc -uc -D
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(PYTHON) setup.py clean
|
$(PYTHON) setup.py clean
|
||||||
$(MAKE) -f $(CURDIR)/debian/rules clean
|
|
||||||
rm -rf build/ MANIFEST
|
rm -rf build/ MANIFEST
|
||||||
find . -name '*.pyc' -delete
|
find . -name '*.pyc' -delete
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
PYTHON=`which python`
|
PYTHON=`which python`
|
||||||
DESTDIR=/
|
DESTDIR=/
|
||||||
BUILDIR=$(CURDIR)/debian/openstack-dashboard
|
|
||||||
PROJECT=openstack-dashboard
|
PROJECT=openstack-dashboard
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@ -9,7 +8,6 @@ all:
|
|||||||
@echo "make source - Create source package"
|
@echo "make source - Create source package"
|
||||||
@echo "make install - Install on local system"
|
@echo "make install - Install on local system"
|
||||||
@echo "make buildrpm - Generate a rpm package"
|
@echo "make buildrpm - Generate a rpm package"
|
||||||
@echo "make builddeb - Generate a deb package"
|
|
||||||
@echo "make clean - Get rid of scratch and byte files"
|
@echo "make clean - Get rid of scratch and byte files"
|
||||||
|
|
||||||
buildout: ./bin/buildout
|
buildout: ./bin/buildout
|
||||||
@ -27,15 +25,6 @@ install:
|
|||||||
buildrpm:
|
buildrpm:
|
||||||
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
|
$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
|
||||||
|
|
||||||
builddeb:
|
|
||||||
# build the source package in the parent directory
|
|
||||||
# then rename it to project_version.orig.tar.gz
|
|
||||||
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
|
|
||||||
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
|
|
||||||
# build the package
|
|
||||||
#dpkg-buildpackage -i -I -rfakeroot
|
|
||||||
dpkg-buildpackage -b -rfakeroot -tc -uc -D
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(PYTHON) setup.py clean
|
$(PYTHON) setup.py clean
|
||||||
$(MAKE) -f $(CURDIR)/debian/rules clean
|
$(MAKE) -f $(CURDIR)/debian/rules clean
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
openstack-dashboard (0.2.0) UNRELEASED; urgency=low
|
|
||||||
|
|
||||||
* Initial release. (Closes: #XXXXXX)
|
|
||||||
|
|
||||||
-- anthony <sleepsonthefloor@gmail.com> Mon, 20 Jun 2011 20:29:57 +0000
|
|
@ -1 +0,0 @@
|
|||||||
7
|
|
@ -1,17 +0,0 @@
|
|||||||
Source: openstack-dashboard
|
|
||||||
Section: python
|
|
||||||
Priority: optional
|
|
||||||
Maintainer: Anthony Young (sleepsonthefloor)
|
|
||||||
Build-Depends: debhelper (>=7.0.50~), python-support (>= 0.6), cdbs (>= 0.4.49), python-all-dev
|
|
||||||
XS-Python-Version: >=2.5
|
|
||||||
Standards-Version: 3.9.1
|
|
||||||
|
|
||||||
Package: openstack-dashboard
|
|
||||||
Architecture: all
|
|
||||||
Homepage: https://github.com/4P/openstack-dashboard
|
|
||||||
XB-Python-Version: ${python:Versions}
|
|
||||||
Depends: ${misc:Depends}, ${python:Depends}
|
|
||||||
Description: Dashboard for Openstack
|
|
||||||
Here you should put a long description your package. This line *MUST* (this is
|
|
||||||
for default printing) begin with a single space.
|
|
||||||
Look for more information about this.
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
# -*- makefile -*-
|
|
||||||
|
|
||||||
DEB_PYTHON_SYSTEM := pysupport
|
|
||||||
|
|
||||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
||||||
include /usr/share/cdbs/1/class/python-distutils.mk
|
|
||||||
|
|
||||||
clean::
|
|
||||||
rm -rf build build-stamp configure-stamp build/ MANIFEST
|
|
||||||
dh_clean
|
|
||||||
|
|
@ -26,13 +26,6 @@ def read(fname):
|
|||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
|
|
||||||
|
|
||||||
dst = 'debian/openstack-dashboard/var/lib/dash'
|
|
||||||
os.system('rm -rf %s' % dst)
|
|
||||||
shutil.copytree('tools', '%s/tools' % dst)
|
|
||||||
shutil.copytree('dashboard', '%s/dashboard' % dst)
|
|
||||||
shutil.copytree('local', '%s/local' % dst)
|
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name = 'openstack-dashboard',
|
name = 'openstack-dashboard',
|
||||||
version = '0.4',
|
version = '0.4',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user