Permalink
Browse files

Added debian files to build the .deb package

  • Loading branch information...
1 parent 4cab162 commit 8640c404a7f195cf07b52634cda4e352246000ba @chuchiperriman committed Jan 9, 2010
Showing with 105 additions and 0 deletions.
  1. +2 −0 MANIFEST.in
  2. +38 −0 Makefile
  3. +5 −0 debian/changelog
  4. +1 −0 debian/compat
  5. +16 −0 debian/control
  6. +32 −0 debian/copyright
  7. +11 −0 debian/rules
View
@@ -1,3 +1,5 @@
include README
include INSTALL
+include MANIFEST.in
+include cloudsn-local.sh
recursive-include data *
View
@@ -0,0 +1,38 @@
+# $Id: Makefile,v 1.6 2008/10/29 01:01:35 ghantoos Exp $
+#
+
+PYTHON=`which python`
+DESTDIR=/
+BUILDIR=$(CURDIR)/debian/myprojectname
+PROJECT=myprojectname
+VERSION=0.2.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=../ --prune
+ 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
View
@@ -0,0 +1,5 @@
+cloudsn (0.1.0) unstable; urgency=low
+
+ * Initial release.
+
+ -- Jesús Barbero Rodríguez <chuchiperriman@gmail.com> Sat, 09 Jan 2010 14:10:55 +0100
View
@@ -0,0 +1 @@
+7
View
@@ -0,0 +1,16 @@
+Source: cloudsn
+Section: net
+Priority: optional
+Maintainer: Jesús Barbero Rpdríguez
+Build-Depends: debhelper (>=7.0.0), python-support (>= 0.6), cdbs (>= 0.4.49), python-dev
+XS-Python-Version: >=2.5
+Standards-Version: 3.8.333
+
+Package: cloudsn
+Architecture: all
+Homepage: http://github.com/chuchiperriman
+XB-Python-Version: ${python:Versions}
+Depends: ${misc:Depends}, ${python:Depends}
+Description: Check for notifications on network services like gmail, google reader,
+ pop3 etc. It uses indicator applet to show unread items and libnotify to show
+ notifications when find new unread items.
View
@@ -0,0 +1,32 @@
+This package was debianized by Jesús Barbero Rodríguez <chuchiperriman@gmail.com>
+09 Jan 2010 16:36:39 +0200
+
+It was downloaded from: http://github.com/chuchiperriman/
+
+Upstream Author(s): Jesús Barbero Rodríguez < programator@gmail.com>
+
+Copyright:
+ Copyright (C) 2010 by Jesús Barbero Rodríguez <chuchiperriman@gmail.com>
+
+License:
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http ://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+ Copyright (C) 2009 by Jesús Barbero Rodríguez <chuchiperriman@gmail.com>
+and is licensed under the GPL version 3, see above.
View
@@ -0,0 +1,11 @@
+#!/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

0 comments on commit 8640c40

Please sign in to comment.