[Python-modules-commits] r26603 - in packages/pyqt5/trunk/debian (changelog control rules)
mitya57-guest at users.alioth.debian.org
mitya57-guest at users.alioth.debian.org
Thu Nov 28 15:38:30 UTC 2013
Date: Thursday, November 28, 2013 @ 15:38:29
Author: mitya57-guest
Revision: 26603
Symlink duplicate files in examples using fdupes.
Modified:
packages/pyqt5/trunk/debian/changelog
packages/pyqt5/trunk/debian/control
packages/pyqt5/trunk/debian/rules
Modified: packages/pyqt5/trunk/debian/changelog
===================================================================
--- packages/pyqt5/trunk/debian/changelog 2013-11-28 15:35:33 UTC (rev 26602)
+++ packages/pyqt5/trunk/debian/changelog 2013-11-28 15:38:29 UTC (rev 26603)
@@ -1,6 +1,7 @@
pyqt5 (5.1.1+dfsg-3) UNRELEASED; urgency=low
* Backport upstream patch (gluint64.sip) to disable GLuint64 on GL ES.
+ * Symlink duplicate files in examples using fdupes.
-- Dmitry Shachnev <mitya57 at gmail.com> Thu, 28 Nov 2013 19:33:21 +0400
Modified: packages/pyqt5/trunk/debian/control
===================================================================
--- packages/pyqt5/trunk/debian/control 2013-11-28 15:35:33 UTC (rev 26602)
+++ packages/pyqt5/trunk/debian/control 2013-11-28 15:38:29 UTC (rev 26603)
@@ -6,6 +6,7 @@
Scott Kitterman <scott at kitterman.com>
Build-Depends: dpkg-dev (>= 1.16.1~),
debhelper (>= 9),
+ fdupes,
libdbus-1-dev (>= 1.0.2),
libglib2.0-dev,
libgstreamer0.10-dev,
Modified: packages/pyqt5/trunk/debian/rules
===================================================================
--- packages/pyqt5/trunk/debian/rules 2013-11-28 15:35:33 UTC (rev 26602)
+++ packages/pyqt5/trunk/debian/rules 2013-11-28 15:38:29 UTC (rev 26603)
@@ -103,6 +103,16 @@
find . -name '*.py' -exec sed -i 's/\/env python/\/python3/g' {} +; \
find . -name '*.qrc' | sed 's/\.qrc//g' | xargs -I {} \
$(CURDIR)/build-$(DEFAULT_PYTHON)/pyrcc/pyrcc5 {}.qrc -o {}_rc.py
+ # Symlink duplicate files in examples. Based on Andrew Starr-Bochicchio's
+ # code in ubuntu-packaging-guide.
+ cd $(CURDIR)/debian/pyqt5-doc && \
+ fdupes -r1nq usr/share/doc/pyqt5-doc/examples | while read s; do \
+ set -- $$(echo $$s | tr ' ' '\n' | sort); \
+ f=$$1; shift; for d; do \
+ echo "symlinking identical file $$d to $$f"; \
+ rm $$d; ln -s /$$f $$d; \
+ done; \
+ done
dh_link -i
install-arch: build-arch
More information about the Python-modules-commits
mailing list