[DRE-commits] r2949 - packages-wip/redmine/trunk/debian

rnhurt-guest at alioth.debian.org rnhurt-guest at alioth.debian.org
Mon Aug 18 15:32:53 UTC 2008


Author: rnhurt-guest
Date: 2008-08-18 15:32:52 +0000 (Mon, 18 Aug 2008)
New Revision: 2949

Modified:
   packages-wip/redmine/trunk/debian/README.source
   packages-wip/redmine/trunk/debian/changelog
   packages-wip/redmine/trunk/debian/files
   packages-wip/redmine/trunk/debian/rules
Log:
Modified to use get-orig-source and clarified the build process.  You should
now be able to check out the original source code and build it independently.


Modified: packages-wip/redmine/trunk/debian/README.source
===================================================================
--- packages-wip/redmine/trunk/debian/README.source	2008-08-16 14:57:13 UTC (rev 2948)
+++ packages-wip/redmine/trunk/debian/README.source	2008-08-18 15:32:52 UTC (rev 2949)
@@ -11,3 +11,22 @@
 This is just a stop-gap measure until the upstream catches up.  Once upstream
 ships a Rails 2.1.x release the repackage will be removed and this package will
 go back to using the pristine source.
+
+
+Steps to package
+================
+1) Export the redmine software from Rubyforge:
+    svn export http://redmine.rubyforge.org/svn/trunk redmine
+
+2) Export the debian directory into the redmine directory:
+    svn co svn+ssh://svn.debian.org/svn/pkg-ruby-extras/packages-wip/redmine \
+    redmine/debian
+
+3) Go to the redmine directory:
+    cd redmine
+
+4) Get the original source:
+    debian/rules get-orig-source
+
+5) Build the package:
+    debuild -us- uc

Modified: packages-wip/redmine/trunk/debian/changelog
===================================================================
--- packages-wip/redmine/trunk/debian/changelog	2008-08-16 14:57:13 UTC (rev 2948)
+++ packages-wip/redmine/trunk/debian/changelog	2008-08-18 15:32:52 UTC (rev 2949)
@@ -1,4 +1,4 @@
-redmine (0.7.4~svn20080812-1) unstable; urgency=low
+redmine (0.7.4~svn1747-1) unstable; urgency=low
 
   * Initial release (Closes: #478741)  
 

Modified: packages-wip/redmine/trunk/debian/files
===================================================================
--- packages-wip/redmine/trunk/debian/files	2008-08-16 14:57:13 UTC (rev 2948)
+++ packages-wip/redmine/trunk/debian/files	2008-08-18 15:32:52 UTC (rev 2949)
@@ -1 +1 @@
-redmine_0.7.4~svn20080812-1_all.deb web optional
+redmine_0.7.4~svn1747-1_all.deb web optional

Modified: packages-wip/redmine/trunk/debian/rules
===================================================================
--- packages-wip/redmine/trunk/debian/rules	2008-08-16 14:57:13 UTC (rev 2948)
+++ packages-wip/redmine/trunk/debian/rules	2008-08-18 15:32:52 UTC (rev 2949)
@@ -6,6 +6,12 @@
 
 include /usr/share/quilt/quilt.make
 
+# Get original source (temp)
+PACKAGE = redmine
+SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"~" '{ print $$2 }' | sed 's/svn//' )
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 
@@ -86,5 +92,15 @@
 	dh_md5sums
 	dh_builddeb
 
+
+get-orig-source:
+	rm -rf get-orig-source $(TARBALL)
+	mkdir get-orig-source
+	svn export -r $(SVN_REVISION) http://redmine.rubyforge.org/svn/trunk get-orig-source/$(PACKAGE)-$(SRC_VERSION)
+	tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION)
+	rm -rf get-orig-source
+	mv $(TARBALL) ..
+	echo "  "$(TARBALL)" created and moved to the parent directory"
+
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source




More information about the Pkg-ruby-extras-commits mailing list