Browse Source

update debian packaging for python3

Helmut Pozimski 9 years ago
parent
commit
e3774cb532
4 changed files with 14 additions and 7 deletions
  1. 6 0
      debian/changelog
  2. 1 1
      debian/compat
  3. 3 3
      debian/control
  4. 4 3
      debian/rules

+ 6 - 0
debian/changelog

@@ -1,3 +1,9 @@
+stov (0.9.3~beta-1) unstable; urgency=low
+
+  * New upstream beta release
+
+ -- Helmut Pozimski <helmut@pozimski.eu>  Wed, 13 May 2015 20:28:00 +0200
+
 stov (0.9.2-1) unstable; urgency=low
 
   * New upstream release

+ 1 - 1
debian/compat

@@ -1,2 +1,2 @@
-7
+9
 

+ 3 - 3
debian/control

@@ -1,15 +1,15 @@
 Source: stov
-XS-Python-Version: >= 2.7
+X-Python3-Version: >= 3.0
 Maintainer: Helmut Pozimski <helmut@pozimski.eu>
 Homepage: https://dev.intranet.helmut-pozimski.de/stov
 Section: python
 Priority: optional
-Build-Depends: python (>= 2.7), debhelper (>= 7.4.3), dh-python, gettext, python-sphinx
+Build-Depends: python3 (>= 3.0), debhelper (>= 9), dh-python, gettext, python3-sphinx
 Standards-Version: 3.9.6
 
 Package: stov
 Architecture: all
-Depends: ${misc:Depends}, python (>= 2.7), python-lxml
+Depends: ${misc:Depends}, python3 (>= 3.0), python3-lxml
 Description: tool to subscribe to videos on youtube
  program which allows you to subscribe to channels, playlists and search
  results on youtube. You don't need a youtube account for the program to

+ 4 - 3
debian/rules

@@ -4,9 +4,9 @@
 # Sun, 14 Apr 2013 00:45:09 +0200
 
 %:
-	dh $@ --with python2
+	dh $@ --with python3
 override_dh_auto_install:
-	python setup.py install --root=debian/stov --install-layout=deb --install-lib=/usr/share/stov --install-scripts=/usr/share/stov --install-data=/usr
+	python3 setup.py install --root=debian/stov --install-layout=deb --install-lib=/usr/share/stov --install-scripts=/usr/share/stov --install-data=/usr
 	# manually compile localization files and copy them into the right directory since distutils don't handle this
 	msgfmt locale/de/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/de/LC_MESSAGES/stov.mo
 	msgfmt locale/en/LC_MESSAGES/stov.po --output-file debian/stov/usr/share/locale/en/LC_MESSAGES/stov.mo
@@ -21,4 +21,5 @@ override_dh_install:
 
 clean::
 	if [ -d "doc/_build" ]; then rm -r doc/_build; fi
-	dh clean --with python2
+	if [ -d build ]; then rm -r build; fi
+	dh clean --with python3