--- /dev/null
+From: Carlos Maddela <e7appew@gmail.com>
+Date: Tue, 1 Mar 2016 02:31:47 +1100
+Subject: Don't install support files via setup.py
+
+Description: Don't install support files via setup.py
+ for better control over where they should be installed.
+Author: Carlos Maddela <e7appew@gmail.com>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2016-06-27
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+---
+ setup.py | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 508b27f..7b13ef7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -58,12 +58,7 @@ py2exe_params = {
+ if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
+ params = py2exe_params
+ else:
+- files_spec = [
+- ('etc/bash_completion.d', ['youtube-dl.bash-completion']),
+- ('etc/fish/completions', ['youtube-dl.fish']),
+- ('share/doc/youtube_dl', ['README.txt']),
+- ('share/man/man1', ['youtube-dl.1'])
+- ]
++ files_spec = []
+ root = os.path.dirname(os.path.abspath(__file__))
+ data_files = []
+ for dirname, files in files_spec:
#!/usr/bin/make -f
%:
- dh $@ --with python2 --buildsystem=python_distutils
+ dh $@ --with python2 --buildsystem=python_distutils \
+ --with bash-completion
override_dh_auto_configure:
PREFIX=/usr SYSCONFDIR=/etc make
mv Makefile Makefile.inactive
rm youtube-dl
-override_dh_install:
- mv debian/youtube-dl/usr/etc debian/youtube-dl/
-# # For the future (similarly for fish):
-# # dpkg-maintscript-helper rm_conffile /etc/youtube-dl.bash-completion \
-# # etc.
-#
-# mv debian/youtube-dl/usr/etc/bash_completion.d/youtube-dl.bash-completion \
-# debian/usr/share/bash-completion/completions/youtube-dl
- dh_install
-
-override_dh_installdocs:
- dh_installdocs
- mv debian/youtube-dl/usr/share/doc/youtube_dl/* debian/youtube-dl/usr/share/doc/youtube-dl
- rmdir debian/youtube-dl/usr/share/doc/youtube_dl
-
override_dh_clean:
-mv Makefile.inactive Makefile
-make clean