add files for debian packaging
This commit is contained in:
parent
92df4cf34f
commit
f11cf0a256
35
django-openstack/Makefile
Normal file
35
django-openstack/Makefile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
PYTHON=`which python`
|
||||||
|
DESTDIR=/
|
||||||
|
BUILDIR=$(CURDIR)/debian/django-openstack
|
||||||
|
PROJECT=django-openstack
|
||||||
|
VERSION=0.3.0
|
||||||
|
|
||||||
|
all:
|
||||||
|
@echo "make source - Create source package"
|
||||||
|
@echo "make install - Install on local system"
|
||||||
|
@echo "make buildrpm - Generate a rpm package"
|
||||||
|
@echo "make builddeb - Generate a deb package"
|
||||||
|
@echo "make clean - Get rid of scratch and byte files"
|
||||||
|
|
||||||
|
source:
|
||||||
|
$(PYTHON) setup.py sdist $(COMPILE)
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
|
||||||
|
|
||||||
|
buildrpm:
|
||||||
|
$(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
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(PYTHON) setup.py clean
|
||||||
|
$(MAKE) -f $(CURDIR)/debian/rules clean
|
||||||
|
rm -rf build/ MANIFEST
|
||||||
|
find . -name '*.pyc' -delete
|
5
django-openstack/debian/changelog
Normal file
5
django-openstack/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
django-openstack (0.3.0) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Initial release. (Closes: #XXXXXX)
|
||||||
|
|
||||||
|
-- termie <github@anarkystic.com> Mon, 20 Jun 2011 20:29:57 +0000
|
1
django-openstack/debian/compat
Normal file
1
django-openstack/debian/compat
Normal file
@ -0,0 +1 @@
|
|||||||
|
8
|
17
django-openstack/debian/control
Normal file
17
django-openstack/debian/control
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Source: django-openstack
|
||||||
|
Section: python
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Andy Smith (termie)
|
||||||
|
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: django-openstack
|
||||||
|
Architecture: all
|
||||||
|
Homepage: https://github.com/4P/openstack-dashboard
|
||||||
|
XB-Python-Version: ${python:Versions}
|
||||||
|
Depends: ${misc:Depends}, ${python:Depends}
|
||||||
|
Description: Blah python module that adds blah and bleh
|
||||||
|
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.
|
0
django-openstack/debian/copyright
Normal file
0
django-openstack/debian/copyright
Normal file
12
django-openstack/debian/rules
Executable file
12
django-openstack/debian/rules
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user