pkg/debian: Debian packaging stable 1.0.0
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 29 Aug 2012 11:36:10 +0200
branchstable
changeset 531 b18b00036355
parent 530 6ee7add34f8b
child 532 744db7a27dd0
pkg/debian: Debian packaging This change add the necessary files to create a debian package for the evolve extension. I do not care about the rest.
Makefile
debian/changelog
debian/compat
debian/control
debian/copyright
debian/docs
debian/rules
--- a/Makefile	Wed Aug 29 11:15:03 2012 +0200
+++ b/Makefile	Wed Aug 29 11:36:10 2012 +0200
@@ -24,4 +24,13 @@
 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \
                    tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip
 
+deb-prepare:
+	python setup.py sdist --dist-dir ..
+	mv -f ../hg-evolve-1.0.0.tar.gz ../mercurial-evolve_1.0.0.orig.tar.gz
+	tar xf ../mercurial-evolve_1.0.0.orig.tar.gz
+	rm -rf ../mercurial-evolve_1.0.0.orig
+	mv hg-evolve-1.0.0 ../mercurial-evolve_1.0.0.orig
+	cp -r debian/ ../mercurial-evolve_1.0.0.orig/
+	@cd ../mercurial-evolve_1.0.0.orig && echo 'debian build directory ready at' `pwd`
+
 .PHONY: tests all-version-tests
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/changelog	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,5 @@
+mercurial-evolve (1.0.0-1) UNRELEASED; urgency=low
+
+  * Initial release.
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 24 Aug 2012 16:46:30 +0200
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/compat	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,1 @@
+8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/control	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,33 @@
+Source: mercurial-evolve
+Section: vcs
+Priority: optional
+Maintainer: Julien Cristau <julien.cristau@logilab.fr>
+Build-Depends:
+ mercurial (>= 2.3~),
+ mercurial-common (>= 2.3~),
+ python,
+ debhelper (>= 8),
+ python-sphinx (>= 1.0.8),
+Python-Version: >= 2.6
+Homepage: https://bitbucket.org/marmoute/mutable-history
+
+Package: mercurial-evolve
+Architecture: all
+Depends:
+ ${python:Depends},
+ mercurial (>= 2.3~),
+Description: evolve extension for Mercurial
+ This package provides the experimental "evolve" extension for the Mercurial
+ DVCS.
+ .
+ This extension provides several commands to mutate history and deal with issues
+ it may raise.
+ .
+ It also:
+  - enables the "Changeset Obsolescence" feature of mercurial,
+  - alters core command and extension that rewrite history to use this feature,
+  - improves some aspects of the early implementation in Mercurial 2.3.
+ .
+ **These extensions are experimental and are not meant for production.**
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/copyright	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,15 @@
+This software was downloaded from
+https://bitbucket.org/marmoute/mutable-history
+
+Copyright 2011 Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
+               Logilab SA        <contact@logilab.fr>
+               Pierre-Yves David <pierre-yves.david@ens-lyon.org>
+	       Patrick Mezard <patrick@mezard.eu>
+
+
+This software may be used and distributed according to the terms of the GNU
+General Public License version 2 or any later version.
+
+On Debian systems, the complete text of the GNU General Public License version
+2 can be found in `/usr/share/common-licenses/GPL-2'.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/docs	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,1 @@
+html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Wed Aug 29 11:36:10 2012 +0200
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python2 --buildsystem=python_distutils
+
+build:
+	dh build --with python2 --buildsystem=python_distutils
+	$(MAKE) -C docs
+
+.PHONY: build
+
+override_dh_auto_test:
+	cd tests &&  python run-tests.py --with-hg=`which hg`