--- trac-git-0.0.20080710.orig/debian/copyright +++ trac-git-0.0.20080710/debian/copyright @@ -0,0 +1,32 @@ +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 + +Note: + + The original 0.11 branch stores the plugin in tracext.git.*. I have + moved this to gitplugin.* to keep compatibility with the previous + version of trac-git. + +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.20080710.orig/debian/compat +++ trac-git-0.0.20080710/debian/compat @@ -0,0 +1 @@ +5 --- trac-git-0.0.20080710.orig/debian/rules +++ trac-git-0.0.20080710/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f + +PYVER=$(shell python -c 'import sys; print sys.version[:3]') + +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 -f 0.11/gitplugin/* + -mv tracext 0.11 + -rm -rf 0.11/build/ + +build: patch build-stamp + +build-stamp: + dh_testdir + cp -r 0.11/tracext/git/* 0.11/gitplugin + mv 0.11/tracext . + 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 && 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 + +.PHONY: build clean binary-indep binary-arch binary install configure --- trac-git-0.0.20080710.orig/debian/control +++ trac-git-0.0.20080710/debian/control @@ -0,0 +1,20 @@ +Source: trac-git +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.0 +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: ${python:Depends}, trac (>= 0.11), git-core +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +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.20080710.orig/debian/changelog +++ trac-git-0.0.20080710/debian/changelog @@ -0,0 +1,28 @@ +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.20080710.orig/debian/README.Debian +++ trac-git-0.0.20080710/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] + gitplugin.* = 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] + gitplugin.* = 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.20080710.orig/debian/docs +++ trac-git-0.0.20080710/debian/docs @@ -0,0 +1 @@ +0.11/README --- trac-git-0.0.20080710.orig/debian/patches/00-fix-setup.py.diff +++ trac-git-0.0.20080710/debian/patches/00-fix-setup.py.diff @@ -0,0 +1,14 @@ +diff -Nruad -Nruad trac-git-0.0.20080710.orig/0.11/setup.py trac-git-0.0.20080710/0.11/setup.py +--- trac-git-0.0.20080710.orig/0.11/setup.py 2008-07-12 00:32:09.000000000 +0100 ++++ trac-git-0.0.20080710/0.11/setup.py 2008-07-12 00:54:31.000000000 +0100 +@@ -17,7 +17,6 @@ + + See http://trac-hacks.org/wiki/GitPlugin for more details. + """, +- packages=['tracext', 'tracext.git'], +- namespace_packages=['tracext'], +- entry_points = {'trac.plugins': 'git = tracext.git.git_fs'}, +- data_files=['COPYING','README']) ++ packages=['gitplugin'], ++ entry_points = {'trac.plugins': 'git = gitplugin.git_fs'}, ++ exclude_package_data={'':['COPYING','README']}) --- trac-git-0.0.20080710.orig/debian/patches/series +++ trac-git-0.0.20080710/debian/patches/series @@ -0,0 +1 @@ +00-fix-setup.py.diff