--- trac-git-0.0.20090320.orig/debian/copyright +++ trac-git-0.0.20090320/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Jonny Lamb on +Mon, 19 May 2008 13:55:33 +0100. + +The upstream tarball was created from an SVN repository checkout of: + + http://trac-hacks.org/svn/gitplugin + +Upstream Author: + + Herbert Valerio Riedel + +Copyright: + + Copyright (C) 2006 Herbert Valerio Riedel + +License: + + You are free to distribute this software under the terms of + the GNU General Public License either version 2 of the License, + or (at your option) 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 + +The Debian packaging is (C) 2008, Jonny Lamb and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- trac-git-0.0.20090320.orig/debian/rules +++ trac-git-0.0.20090320/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f + +PYVER=$(shell python -c 'import sys; print sys.version[:3]') + + +include /usr/share/python/python.mk +include $(CURDIR)/debian/update-patches.mk +include /usr/share/quilt/quilt.make + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + rm -rf dist build + -find . -name *\.py[co] -exec rm {} \; + dh_clean + -for file in PKG-INFO SOURCES.txt dependency_links.txt \ + entry_points.txt namespace_packages.txt requires.txt \ + top_level.txt; do rm 0.11/TracGit.egg-info/$$file; done + -rm -rf 0.11/build/ + +build: build-stamp + +build-stamp: patch + dh_testdir + cd 0.11 && python setup.py build && cd .. + touch $@ + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cd 0.11 && python setup.py install \ + --root=$(CURDIR)/debian/trac-git \ + --single-version-externally-managed \ + $(py_setup_install_args) && cd .. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_pycentral + dh_compress -X.py + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch + +DATE := 20090320 +get-orig-source: + svn export http://trac-hacks.org/svn/gitplugin ../trac-git-0.0.$(DATE) + tar pczf ../trac-git_0.0.$(DATE).orig.tar.gz ../trac-git-0.0.$(DATE) + rm -rf ../trac-git-0.0.$(DATE) + +.PHONY: build clean binary-indep binary-arch binary install configure --- trac-git-0.0.20090320.orig/debian/README.Debian +++ trac-git-0.0.20090320/debian/README.Debian @@ -0,0 +1,74 @@ +trac-git for Debian +------------------- + +(This document "borrowed" and altered from the trac-bzr package.) + +CONTENTS +1. Enabling trac-git globally +2. Enabling trac-git per project +3. Using a Git repository in a Trac project. + +-- + +Enabling trac-git globally + + To enable, create or edit /etc/trac.ini and add: + + [components] + tracext.git.* = enabled + + You must restart tracd for changes to take effect. + +-- + +Enabling trac-git per project + + Edit the /conf/trac.ini file: + + 2. Add the following: + + [components] + tracext.git.* = enabled + + You must restart tracd for changes to take effect. + +-- + +Using a Git repository in a Trac project. + + Edit the /conf/trac.ini file: + + 1. Ensure that the repository_type is set to "git" (without the + quotes). This is also asked when creating a Trac environment + with the 'trac-admin initenv' command. + + 2. Set repository_dir to the directory of the Git repository to + be used. Note: the directory should point to the .git part + of a Git repository, so if the repository is _not_ bare, it + should have a "/.git" suffix. + + 3. Find the [git] section and make sure the "git_bin" option points + to the exact location of your git binary ("git" is not sufficient; + "/usr/bin/git" is). + + 4. Add any, or none, of the following configuration options to + the [git] section: + + [git] + # let Trac cache meta-data via CachedRepository wrapper; + # default: false + cached_repository = true + + # disable automatic garbage collection for in-memory commit-tree cache; + # default: false + persistent_cache = true + + # length revision sha-sums should be tried to be abbreviated to (must be >= 4 and <= 40); + # default: 7 + shortrev_len = 6 + + # executable file name (optionally with path) of git binary; + # default: 'git' + git_bin = /usr/src/git-dev/git + + -- Jonny Lamb Fri, 11 Jul 2008 01:59:37 +0100 --- trac-git-0.0.20090320.orig/debian/control +++ trac-git-0.0.20090320/debian/control @@ -0,0 +1,20 @@ +Source: trac-git +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Jonny Lamb +Section: python +Priority: optional +Build-Depends: debhelper (>= 5.0), quilt (>= 0.40) +Build-Depends-Indep: python, python-central (>= 0.5), python-setuptools +Standards-Version: 3.8.1 +XS-Python-Version: >= 2.5 +Homepage: http://trac-hacks.org/wiki/GitPlugin +Vcs-Git: git://git.jonnylamb.com/git/packaging/trac-git.git +Vcs-Browser: http://git.jonnylamb.com/?p=packaging/trac-git.git;a=summary + +Package: trac-git +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, trac (>= 0.11), git-core +XB-Python-Version: ${python:Versions} +Description: Git version control backend for Trac + A plugin that provides support for the Git source code management + tool for Edgewall Software's Trac. --- trac-git-0.0.20090320.orig/debian/gbp.conf +++ trac-git-0.0.20090320/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +debian-branch = debian +upstream-branch = upstream +pristine-tar = True + +[git-buildpackage] +tarball-dir = ../tarballs/ +export-dir = ../build-area/ --- trac-git-0.0.20090320.orig/debian/compat +++ trac-git-0.0.20090320/debian/compat @@ -0,0 +1 @@ +5 --- trac-git-0.0.20090320.orig/debian/README.source +++ trac-git-0.0.20090320/debian/README.source @@ -0,0 +1,58 @@ +Patches +======= + +This package occasionally uses quilt to store modifications to the upstream +source, although in most uploads no patches are needed. + +To get the fully patched source: make -f debian/rules patch + +To revert to what's in git: make -f debian/rules unpatch + +To add a patch: obtain a diff and put it in debian/patches, or see below + +To remove an existing patch: delete it from debian/patches + +Packaging using git +=================== + +The repository contains an appropriate debian/gbp.conf to build this package +using git-buildpackage. The debian branch contains the latest upstream versions +(for unstable, or experimental while a freeze is in progress). The debian- +branch contains versions targeted for a specific release (lenny, squeeze, etc.) + +Here's how to build it: + + git clone git://git.jonnylamb.com/git/packaging/trac-git.git + cd trac-git + git checkout debian + git-buildpackage -us -uc + +or for testing/stable branches like debian-lenny: + + git clone git://git.jonnylamb.com/git/packaging/trac-git.git + cd trac-git + git checkout debian-lenny + git-buildpackage -us -uc --git-debian-branch=debian-lenny + +The branch 'upstream' is a copy of the contents of upstream tarballs. To import +upstream tarballs use: + + git checkout debian + git-import-orig ~/trac-git-0.7.x.tar.gz + +The branch 'debian-patches' is 'upstream' plus any patches needed for Debian. +It should be rebased on 'upstream' after each upstream release: + + git checkout debian-patches + git rebase upstream + +The preferred way of adding patches is to make a commit to the debian-patches +branch: + + git checkout debian-patches + + git commit + git checkout debian + fakeroot debian/rules update-patches + + -- Jonny Lamb , Sat, 7 Mar 2009 17:55:11 +0000 --- trac-git-0.0.20090320.orig/debian/docs +++ trac-git-0.0.20090320/debian/docs @@ -0,0 +1 @@ +0.11/README --- trac-git-0.0.20090320.orig/debian/update-patches.mk +++ trac-git-0.0.20090320/debian/update-patches.mk @@ -0,0 +1,12 @@ +update-patches: + mkdir -p $(CURDIR)/debian/patches + rm -f $(CURDIR)/debian/patches/*.patch + rm $(CURDIR)/debian/patches/series + git format-patch -o $(CURDIR)/debian/patches debian-patches ^upstream + for patch in $$(ls $(CURDIR)/debian/patches/*.patch) ; \ + do \ + lines=$$(cat $$patch | wc -l) ; \ + head -n $$(($$lines - 3)) $$patch > $${patch}.chomped ; \ + mv $${patch}.chomped $$patch ; \ + echo $$(basename $${patch}) >> $(CURDIR)/debian/patches/series ; \ + done --- trac-git-0.0.20090320.orig/debian/changelog +++ trac-git-0.0.20090320/debian/changelog @@ -0,0 +1,104 @@ +trac-git (0.0.20090320-1ubuntu2) lucid; urgency=low + + * allow the package to work with python >= 2.5. LP: #388911 + + -- Reinhard Tartler Wed, 02 Dec 2009 18:20:53 +0100 + +trac-git (0.0.20090320-1ubuntu1) karmic; urgency=low + + * Merge from debian unstable (LP: #378375), remaining changes: + - Include /usr/share/python/python.mk. + - Pass $(py_setup_install_args) macro to setup.py install. + + -- Marco Simonelli Tue, 19 May 2009 18:17:26 +0200 + +trac-git (0.0.20090320-1) unstable; urgency=low + + * New upstream snapshot. + * debian/gbp.conf: Removed no-create-orig line. + * debian/rules: Upped DATE. + * debian/README.source: Added. + * debian/control: Bumped Standards-Version to 3.8.1. (No changes) + * debian/patches/: + + 0002-Prevent-leaving-processes-open-and-running.patch: Removed, fixed + upstream. + + 0001-Make-setup.py-by-not-installing-COPYING-or-README.patch: Updated. + + -- Jonny Lamb Fri, 20 Mar 2009 16:31:31 +0000 + +trac-git (0.0.20090217-1) unstable; urgency=low + + * New upstream release. + * debian/gbp.conf: Added git-buildpackage config file. + * debian/README.Debian: Use my debian.org email address. + * debian/update-patches.mk: Added. + * debian/rules: + + Include update-patches.mk. + + Added get-orig-source target. + * debian/patches/01-r4147-add-previous_rev_argument.diff: Removed: already + upstream. + + -- Jonny Lamb Tue, 17 Feb 2009 20:17:52 +0000 + +trac-git (0.0.20080710-3ubuntu1) jaunty; urgency=low + + * Python 2.6 transition: + - Include /usr/share/python/python.mk. + - Pass $(py_setup_install_args) macro to setup.py install. + + -- Luca Falavigna Fri, 13 Mar 2009 16:16:41 +0000 + +trac-git (0.0.20080710-3) unstable; urgency=medium + + * debian/control: + + Use my debian.org email address. + * debian/copyright: + + Use my debian.org email address. + * debian/patches/: + + Added 02-508019-defunct-processes.diff to prevent leaving processes open + and running and ultimately making the machine run out of memory. + (Closes: #508019) + + -- Jonny Lamb Tue, 09 Dec 2008 22:33:37 +0000 + +trac-git (0.0.20080710-2) unstable; urgency=low + + * debian/patches/01-r4147-add-previous_rev_argument.diff: Added new patch + to fix the 500 server error. This is r4147 upstream. (Closes: #498761) + * Moved plugin back from gitplugin to original upstream location of + tracext.git so my renaming doesn't appear in a stable release. + * debian/rules: Moved the patch target dependency to build-stamp to ensure + correct dependencies when building in parallel. + * debian/control: Removed Provides completely and added misc:Depends on + trac-git as the former has no meaning in an arch-indep package. + + -- Jonny Lamb Tue, 30 Sep 2008 18:22:00 +0100 + +trac-git (0.0.20080710-1) unstable; urgency=low + + * New upstream fork for the 0.11 Trac plugin version. (Closes: #490183) + * debian/control: + + Removed python-all-dev Build-Dep. + + Updated Homepage field. + + Upped version of Trac to depend on. + + Upped Standards-Version. + + Added XS-Python-Version: 2.5. + * debian/copyright: Updated. + * debian/dirs: Removed. + * debian/docs: Updated to point to 0.11 plugin. + * debian/postinst: Removed. + * debian/rules: + + Updated 0.10 references to 0.11. + + Added files to be deleted to clean target. + * debian/README.Debian: Updated. + * debian/patches/disable-installing-docs.diff: Removed. + * debian/patches/00-fix-setup.py.diff: Added to fix up the setup.py and + rename tracext.git to gitplugin. + + -- Jonny Lamb Sat, 12 Jul 2008 01:43:30 +0100 + +trac-git (0.0.20080122-1) unstable; urgency=low + + * Initial release. (Closes: #482334) + + -- Jonny Lamb Mon, 19 May 2008 14:33:23 +0100 --- trac-git-0.0.20090320.orig/debian/patches/0001-Make-setup.py-by-not-installing-COPYING-or-README.patch +++ trac-git-0.0.20090320/debian/patches/0001-Make-setup.py-by-not-installing-COPYING-or-README.patch @@ -0,0 +1,22 @@ +From 89f443e93dd6d980b4ff2384562547aef8e5014e Mon Sep 17 00:00:00 2001 +From: Jonny Lamb +Date: Tue, 17 Feb 2009 19:59:51 +0000 +Subject: [PATCH] Make setup.py by not installing COPYING or README. + +debhelper does this for us automatically. + +Signed-off-by: Jonny Lamb +--- + 0.11/setup.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/0.11/setup.py b/0.11/setup.py +index 1c7c0f4..54856d5 100755 +--- a/0.11/setup.py ++++ b/0.11/setup.py +@@ -20,4 +20,4 @@ setup( + packages=['tracext', 'tracext.git'], + namespace_packages=['tracext'], + entry_points = {'trac.plugins': 'git = tracext.git.git_fs'}, +- data_files=['COPYING','README']) ++ exclude_package_data={'':['COPYING','README']}) --- trac-git-0.0.20090320.orig/debian/patches/series +++ trac-git-0.0.20090320/debian/patches/series @@ -0,0 +1 @@ +0001-Make-setup.py-by-not-installing-COPYING-or-README.patch