[Python-apps-commits] r9573 - in packages/pype/trunk/debian (changelog rules)
anoteng-guest at users.alioth.debian.org
anoteng-guest at users.alioth.debian.org
Mon Apr 29 18:48:57 UTC 2013
Date: Monday, April 29, 2013 @ 18:48:55
Author: anoteng-guest
Revision: 9573
Add a get-orig-source rule
Modified:
packages/pype/trunk/debian/changelog
packages/pype/trunk/debian/rules
Modified: packages/pype/trunk/debian/changelog
===================================================================
--- packages/pype/trunk/debian/changelog 2013-04-27 21:08:03 UTC (rev 9572)
+++ packages/pype/trunk/debian/changelog 2013-04-29 18:48:55 UTC (rev 9573)
@@ -1,11 +1,11 @@
pype (2.9.4-1) experimental; urgency=low
* New upstream release
- * Remove unnecessary executable permissions in upstream tarball
* Bump Standards-Version to 3.9.4
- Changed versioned build dependency debhelper to 8.1.0
+ * Add a get-orig-source rule to download and repack
- -- Andreas Noteng <andreas at noteng.no> Sat, 27 Apr 2013 20:07:44 +0200
+ -- Andreas Noteng <andreas at noteng.no> Mon, 29 Apr 2013 09:32:47 +0200
pype (2.9.1-4) unstable; urgency=low
Modified: packages/pype/trunk/debian/rules
===================================================================
--- packages/pype/trunk/debian/rules 2013-04-27 21:08:03 UTC (rev 9572)
+++ packages/pype/trunk/debian/rules 2013-04-29 18:48:55 UTC (rev 9573)
@@ -1,20 +1,35 @@
#!/usr/bin/make -f
# -*- makefile -*-
+VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+]+).*,\1,p')
+
clean:
# Deleting the upstream setup.py, because it is windows only,
# and breaks the build
rm -f setup.py
-# Delete the backup made by bomstrip
- rm -f pype.py.bom
find ./ -name '*.pyc' -delete
dh_clean
override_dh_auto_build:
for i in $(shell find -executable -type f);do chmod 644 $$i; done
- dos2unix * plugins/*
- bomstrip-files pype.py
chmod 755 pype.py
chmod 755 debian/rules
+# Adapted from the rules file of the python-werkzeug package
+get-orig-source:
+ mkdir -p get-orig-source
+ uscan --force-download --rename --destdir=get-orig-source --upstream-version=$(VER) &&\
+ cd get-orig-source &&\
+ unzip ./PyPE-*.zip &&\
+ cd PyPE-$(VER) &&\
+# for i in $(shell find -executable -type f);do chmod 644 $$i; done &&\
+ dos2unix * plugins/* &&\
+ bomstrip-files pype.py &&\
+ chmod 755 pype.py &&\
+ rm -f pype.py.bom &&\
+ cd .. &&\
+ tar Jcf ../pype_$(VER).orig.tar.xz PyPE-$(VER)
+ rm -rf get-orig-source
+
%:
dh $@ --with python2
+
More information about the Python-apps-commits
mailing list