rev 3697 - kde-extras/kipi-plugins/trunk/debian

Mark Purcell msp at costa.debian.org
Mon May 8 21:03:38 UTC 2006


Author: msp
Date: 2006-05-08 21:03:15 +0000 (Mon, 08 May 2006)
New Revision: 3697

Modified:
   kde-extras/kipi-plugins/trunk/debian/changelog
   kde-extras/kipi-plugins/trunk/debian/rules
Log:
* Add debian/rules print-version & get-orig-source targets

Modified: kde-extras/kipi-plugins/trunk/debian/changelog
===================================================================
--- kde-extras/kipi-plugins/trunk/debian/changelog	2006-05-08 20:48:52 UTC (rev 3696)
+++ kde-extras/kipi-plugins/trunk/debian/changelog	2006-05-08 21:03:15 UTC (rev 3697)
@@ -1,8 +1,10 @@
 kipi-plugins (0.1+rc2-1) UNRELEASED; urgency=low
 
+  [ Mark Purcell ]
   * (NOT RELEASED YET) New upstream release
+  * Add debian/rules print-version & get-orig-source targets
 
- -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Mon,  8 May 2006 21:46:39 +0100
+ -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Mon,  8 May 2006 22:01:28 +0100
 
 kipi-plugins (0.1+rc1-3) unstable; urgency=low
 

Modified: kde-extras/kipi-plugins/trunk/debian/rules
===================================================================
--- kde-extras/kipi-plugins/trunk/debian/rules	2006-05-08 20:48:52 UTC (rev 3696)
+++ kde-extras/kipi-plugins/trunk/debian/rules	2006-05-08 21:03:15 UTC (rev 3697)
@@ -1,5 +1,12 @@
 #!/usr/bin/make -f
 
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//' -e 's/+/.0-/')
+
+FILENAME := kipi-plugins_$(DEBVERSION).orig.tar.gz
+URL := http://ovh.dl.sourceforge.net/kipi/kipi-plugins-$(UPVERSION).tar.bz2
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/class/kde.mk
@@ -26,3 +33,16 @@
 	make -f admin/Makefile.common dist
 	debian/rules clean
 
+print-version:
+	@@echo "Debian version:          $(DEBVERSION)"
+	@@echo "Upstream version:        $(UPVERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+	@@echo Downloading $(FILENAME) from $(URL) ...
+	@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME).bz2 $(URL)
+	@@echo bzcat ../tarballs/$(FILENAME).bz2 | gzip -9 > ../tarballs/$(FILENAME)
+	@@bzcat ../tarballs/$(FILENAME).bz2 | gzip -9 > ../tarballs/$(FILENAME)
+	@@rm -rf ../tarballs/$(FILENAME).bz2
+




More information about the pkg-kde-commits mailing list