]> Raphaƫl G. Git Repositories - youtubedl/commitdiff
Rebuild with only Python 3 support.
authorCarlos Maddela <e7appew@gmail.com>
Tue, 1 Mar 2016 07:47:40 +0000 (18:47 +1100)
committerCarlos Maddela <e7appew@gmail.com>
Sat, 8 Oct 2016 22:08:04 +0000 (09:08 +1100)
Closes: #723990
debian/control
debian/rules
debian/utils/python [new file with mode: 0755]
debian/utils/pyversions [new file with mode: 0755]

index 51ea9b47e7bc5240c80afebef8b1872a6c81d9d5..6dcb3b6002354b39a5d4d49e8f9aee465fa75e08 100644 (file)
@@ -7,11 +7,11 @@ Build-Depends:
  debhelper (>= 9),
  dh-python,
  pandoc,
  debhelper (>= 9),
  dh-python,
  pandoc,
- python-pkg-resources,
+ python3-pkg-resources,
  zip
 Build-Depends-Indep:
  zip
 Build-Depends-Indep:
- python
-X-Python-Version: >= 2.6
+ python3
+X-Python3-Version: >= 3.2
 Standards-Version: 3.9.7
 Homepage: https://rg3.github.com/youtube-dl/
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/youtube-dl.git
 Standards-Version: 3.9.7
 Homepage: https://rg3.github.com/youtube-dl/
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/youtube-dl.git
@@ -21,9 +21,9 @@ Package: youtube-dl
 Architecture: all
 Pre-Depends: dpkg (>= 1.15.7.2)
 Depends:
 Architecture: all
 Pre-Depends: dpkg (>= 1.15.7.2)
 Depends:
- python-pkg-resources,
+ python3-pkg-resources,
  ${misc:Depends},
  ${misc:Depends},
- ${python:Depends}
+ ${python3:Depends},
 Recommends:
  aria2 | wget | curl,
  ca-certificates,
 Recommends:
  aria2 | wget | curl,
  ca-certificates,
index 3efd20e1e7d5d89ef75911917e4bf66a5cf3fad7..82d26cbeb20215b18fae35212f3ffda59d764b78 100755 (executable)
@@ -1,7 +1,11 @@
 #!/usr/bin/make -f
 #!/usr/bin/make -f
+
+#export DH_VERBOSE = 1
+export PYBUILD_NAME = youtube_dl
+export PATH := $(CURDIR)/debian/utils:$(PATH)
+
 %:
 %:
-       dh $@ --with python2 --buildsystem=python_distutils \
-               --with bash-completion
+       dh $@ --with python3 --buildsystem=pybuild --with bash-completion
 
 override_dh_auto_configure:
        PREFIX=/usr SYSCONFDIR=/etc make
 
 override_dh_auto_configure:
        PREFIX=/usr SYSCONFDIR=/etc make
diff --git a/debian/utils/python b/debian/utils/python
new file mode 100755 (executable)
index 0000000..1c65bd1
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/python3 "$@"
diff --git a/debian/utils/pyversions b/debian/utils/pyversions
new file mode 100755 (executable)
index 0000000..54e34e2
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/bin/py3versions "$@"