]> Raphaël G. Git Repositories - youtubedl/commitdiff
Install support files via debhelper instead of setup.py.
authorCarlos Maddela <e7appew@gmail.com>
Mon, 29 Feb 2016 15:59:45 +0000 (02:59 +1100)
committerCarlos Maddela <e7appew@gmail.com>
Sat, 8 Oct 2016 22:08:04 +0000 (09:08 +1100)
debian/control
debian/patches/series [new file with mode: 0644]
debian/patches/skip_support_file_installation.patch [new file with mode: 0644]
debian/rules
debian/youtube-dl.bash-completion [new file with mode: 0644]
debian/youtube-dl.docs [new file with mode: 0644]
debian/youtube-dl.install [new file with mode: 0644]
debian/youtube-dl.maintscript [new file with mode: 0644]
debian/youtube-dl.manpages [moved from debian/manpages with 100% similarity]

index aa4d618401581f74fb4272408c1fd798059c04a8..51ea9b47e7bc5240c80afebef8b1872a6c81d9d5 100644 (file)
@@ -3,6 +3,7 @@ Section: web
 Priority: extra
 Maintainer: Rogério Brito <rbrito@ime.usp.br>
 Build-Depends:
+ bash-completion,
  debhelper (>= 9),
  dh-python,
  pandoc,
@@ -18,6 +19,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/youtube-dl.git
 
 Package: youtube-dl
 Architecture: all
+Pre-Depends: dpkg (>= 1.15.7.2)
 Depends:
  python-pkg-resources,
  ${misc:Depends},
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..4813c5b
--- /dev/null
@@ -0,0 +1 @@
+skip_support_file_installation.patch
diff --git a/debian/patches/skip_support_file_installation.patch b/debian/patches/skip_support_file_installation.patch
new file mode 100644 (file)
index 0000000..1e5506f
--- /dev/null
@@ -0,0 +1,34 @@
+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:
index 870096940b3c124ddca977ba9296b502ad0ff962..9c645f1c863c90c91a71d29ad84cb96a3d6d86dd 100755 (executable)
@@ -1,27 +1,13 @@
 #!/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
diff --git a/debian/youtube-dl.bash-completion b/debian/youtube-dl.bash-completion
new file mode 100644 (file)
index 0000000..78fb192
--- /dev/null
@@ -0,0 +1 @@
+youtube-dl.bash-completion youtube-dl
diff --git a/debian/youtube-dl.docs b/debian/youtube-dl.docs
new file mode 100644 (file)
index 0000000..71dfd5b
--- /dev/null
@@ -0,0 +1 @@
+README.txt
diff --git a/debian/youtube-dl.install b/debian/youtube-dl.install
new file mode 100644 (file)
index 0000000..5512653
--- /dev/null
@@ -0,0 +1 @@
+youtube-dl.fish usr/share/fish/completions
diff --git a/debian/youtube-dl.maintscript b/debian/youtube-dl.maintscript
new file mode 100644 (file)
index 0000000..0086247
--- /dev/null
@@ -0,0 +1,2 @@
+rm_conffile /etc/bash_completion.d/youtube-dl.bash-completion 2016.08.17-1~
+rm_conffile /etc/fish/completions/youtube-dl.fish 2016.08.17-1~
similarity index 100%
rename from debian/manpages
rename to debian/youtube-dl.manpages