[Python-modules-commits] r23338 - in packages/pytaglib/trunk (22 files)

supermihi-guest at users.alioth.debian.org supermihi-guest at users.alioth.debian.org
Fri Jan 18 13:57:34 UTC 2013


    Date: Friday, January 18, 2013 @ 13:57:32
  Author: supermihi-guest
Revision: 23338

[svn-inject] Applying Debian modifications (0.3.4-1) to trunk

Added:
  packages/pytaglib/trunk/debian/
  packages/pytaglib/trunk/debian/changelog
  packages/pytaglib/trunk/debian/compat
  packages/pytaglib/trunk/debian/control
  packages/pytaglib/trunk/debian/copyright
  packages/pytaglib/trunk/debian/docs
  packages/pytaglib/trunk/debian/patches/
  packages/pytaglib/trunk/debian/patches/change-binary-names.patch
  packages/pytaglib/trunk/debian/patches/series
  packages/pytaglib/trunk/debian/python-taglib.install
  packages/pytaglib/trunk/debian/python-taglib.manpages
  packages/pytaglib/trunk/debian/python-taglib.postinst
  packages/pytaglib/trunk/debian/python-taglib.prerm
  packages/pytaglib/trunk/debian/python3-taglib.install
  packages/pytaglib/trunk/debian/python3-taglib.manpages
  packages/pytaglib/trunk/debian/python3-taglib.postinst
  packages/pytaglib/trunk/debian/python3-taglib.prerm
  packages/pytaglib/trunk/debian/rules
  packages/pytaglib/trunk/debian/source/
  packages/pytaglib/trunk/debian/source/format
  packages/pytaglib/trunk/debian/source/options
  packages/pytaglib/trunk/debian/watch

Added: packages/pytaglib/trunk/debian/changelog
===================================================================
--- packages/pytaglib/trunk/debian/changelog	                        (rev 0)
+++ packages/pytaglib/trunk/debian/changelog	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,5 @@
+pytaglib (0.3.4-1) experimental; urgency=low
+
+  * Initial release (Closes: #696455)
+
+ -- Michael Helmling <michaelhelmling at posteo.de>  Thu, 17 Jan 2013 20:14:07 +0100

Added: packages/pytaglib/trunk/debian/compat
===================================================================
--- packages/pytaglib/trunk/debian/compat	                        (rev 0)
+++ packages/pytaglib/trunk/debian/compat	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+8

Added: packages/pytaglib/trunk/debian/control
===================================================================
--- packages/pytaglib/trunk/debian/control	                        (rev 0)
+++ packages/pytaglib/trunk/debian/control	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,36 @@
+Source: pytaglib
+Section: python
+Priority: extra
+Maintainer: Michael Helmling <michaelhelmling at posteo.de>
+Build-Depends: debhelper (>= 8), python-all-dev (>= 2.7), python3-all-dev (>= 3.2), cython (>= 0.16), cython3 (>=0.16), libtag1-dev (>= 1.8), python-setuptools, python3-setuptools
+Standards-Version: 3.9.4
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.2
+Homepage: http://github.com/supermihi/pytaglib
+
+Package: python-taglib
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, libtag1c2a (>= 1.8), python-pkg-resources
+Description: Python bindings for the TagLib audio metadata library
+ Pytaglib provides an easy interface to read and write metadata of audio files
+ in Python (this package contains the build for Python2). It relies on the
+ TagLib library and thus supports all formats that are supported by TagLib,
+ which include all relevant formats in use today.
+ .
+ Pytaglib allows you to use arbitrary tag names (not only the most common ones
+ like TITLE, ARTIST, ALBUM, ...) and even define multiple values for the same
+ tag, as long as the metadata system of the underlying audio file supports that.
+
+Package: python3-taglib
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libtag1c2a (>= 1.8), python3-pkg-resources
+Architecture: any
+Description: Python3 bindings for the TagLib audio metadata library
+ Pytaglib provides an easy interface to read and write metadata of audio files
+ in Python (this package contains the build for Python3). It relies on the
+ TagLib library and thus supports all formats that are supported by TagLib,
+ which include all relevant formats in use today.
+ .
+ Pytaglib allows you to use arbitrary tag names (not only the most common ones
+ like TITLE, ARTIST, ALBUM, ...) and even define multiple values for the same
+ tag, as long as the metadata system of the underlying audio file supports that.
+

Added: packages/pytaglib/trunk/debian/copyright
===================================================================
--- packages/pytaglib/trunk/debian/copyright	                        (rev 0)
+++ packages/pytaglib/trunk/debian/copyright	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytaglib
+Source: http://github.com/supermihi/pytaglib
+
+Files: *
+Copyright: 2011-2012 Michael Helmling <michaelhelmling at posteo.de>
+License: GPL-3
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 3 as
+ published by the Free Software Foundation
+
+Files: debian/*
+Copyright: 2013 Michael Helmling <michaelhelmling at posteo.de>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

Added: packages/pytaglib/trunk/debian/docs
===================================================================
--- packages/pytaglib/trunk/debian/docs	                        (rev 0)
+++ packages/pytaglib/trunk/debian/docs	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+README.rst

Added: packages/pytaglib/trunk/debian/patches/change-binary-names.patch
===================================================================
--- packages/pytaglib/trunk/debian/patches/change-binary-names.patch	                        (rev 0)
+++ packages/pytaglib/trunk/debian/patches/change-binary-names.patch	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,12 @@
+Change the names of the binaries to prepare for update-alternatives
+--- a/setup.py
++++ b/setup.py
+@@ -32,7 +32,7 @@
+     else:
+         return open(readmeFile, "rt").read()
+ 
+-script_name = 'pyprinttags3' if sys.version_info.major >= 3 else 'pyprinttags'
++script_name = 'pyprinttags-python3' if sys.version_info.major >= 3 else 'pyprinttags-python2'
+ 
+ setup(
+     name='pytaglib',

Added: packages/pytaglib/trunk/debian/patches/series
===================================================================
--- packages/pytaglib/trunk/debian/patches/series	                        (rev 0)
+++ packages/pytaglib/trunk/debian/patches/series	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+change-binary-names.patch

Added: packages/pytaglib/trunk/debian/python-taglib.install
===================================================================
--- packages/pytaglib/trunk/debian/python-taglib.install	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python-taglib.install	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,2 @@
+usr/lib/python2.*/
+usr/bin/pyprinttags-python2

Added: packages/pytaglib/trunk/debian/python-taglib.manpages
===================================================================
--- packages/pytaglib/trunk/debian/python-taglib.manpages	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python-taglib.manpages	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+doc/pyprinttags-python2.1

Added: packages/pytaglib/trunk/debian/python-taglib.postinst
===================================================================
--- packages/pytaglib/trunk/debian/python-taglib.postinst	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python-taglib.postinst	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
+  update-alternatives --install /usr/bin/pyprinttags \
+    pyprinttags /usr/bin/pyprinttags-python2 2 \
+    --slave /usr/share/man/man1/pyprinttags.1.gz \
+    pyprinttags.1.gz /usr/share/man/man1/pyprinttags-python2.1.gz
+fi              
+
+#DEBHELPER#
+

Added: packages/pytaglib/trunk/debian/python-taglib.prerm
===================================================================
--- packages/pytaglib/trunk/debian/python-taglib.prerm	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python-taglib.prerm	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove pyprinttags /usr/bin/pyprinttags-python2
+fi
+
+#DEBHELPER#

Added: packages/pytaglib/trunk/debian/python3-taglib.install
===================================================================
--- packages/pytaglib/trunk/debian/python3-taglib.install	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python3-taglib.install	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,2 @@
+usr/lib/python3/
+usr/bin/pyprinttags-python3

Added: packages/pytaglib/trunk/debian/python3-taglib.manpages
===================================================================
--- packages/pytaglib/trunk/debian/python3-taglib.manpages	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python3-taglib.manpages	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+doc/pyprinttags-python3.1

Added: packages/pytaglib/trunk/debian/python3-taglib.postinst
===================================================================
--- packages/pytaglib/trunk/debian/python3-taglib.postinst	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python3-taglib.postinst	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
+  update-alternatives --install /usr/bin/pyprinttags \
+    pyprinttags /usr/bin/pyprinttags-python3 3 \
+    --slave /usr/share/man/man1/pyprinttags.1.gz \
+    pyprinttags.1.gz /usr/share/man/man1/pyprinttags-python3.1.gz
+fi              
+
+#DEBHELPER#
+

Added: packages/pytaglib/trunk/debian/python3-taglib.prerm
===================================================================
--- packages/pytaglib/trunk/debian/python3-taglib.prerm	                        (rev 0)
+++ packages/pytaglib/trunk/debian/python3-taglib.prerm	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove pyprinttags /usr/bin/pyprinttags-python3
+fi
+
+#DEBHELPER#

Added: packages/pytaglib/trunk/debian/rules
===================================================================
--- packages/pytaglib/trunk/debian/rules	                        (rev 0)
+++ packages/pytaglib/trunk/debian/rules	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+PYTHON2=$(shell pyversions -r)
+PYTHON3=$(shell py3versions -r)
+
+%:
+	dh $@ --with=python2,python3
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm  -f doc/pyprinttags-python?.1
+	rm -rf build/
+
+override_dh_auto_install:
+	set -ex; for python in $(PYTHON3); do \
+		$$python setup.py install --install-layout=deb --root=debian/tmp; \
+	done
+	# remove hard coded python3 version from script
+	sed -i '1c#!/usr/bin/python3' debian/tmp/usr/bin/pyprinttags-python3
+	dh_auto_install
+
+override_dh_auto_build:
+	rm src/taglib.cpp
+	cp doc/pyprinttags.1 doc/pyprinttags-python3.1
+	cp doc/pyprinttags.1 doc/pyprinttags-python2.1
+	dh_auto_build


Property changes on: packages/pytaglib/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pytaglib/trunk/debian/source/format
===================================================================
--- packages/pytaglib/trunk/debian/source/format	                        (rev 0)
+++ packages/pytaglib/trunk/debian/source/format	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/pytaglib/trunk/debian/source/options
===================================================================
--- packages/pytaglib/trunk/debian/source/options	                        (rev 0)
+++ packages/pytaglib/trunk/debian/source/options	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1 @@
+extend-diff-ignore = "(/taglib.cpp|/top_level.txt|/entry_points.txt)"

Added: packages/pytaglib/trunk/debian/watch
===================================================================
--- packages/pytaglib/trunk/debian/watch	                        (rev 0)
+++ packages/pytaglib/trunk/debian/watch	2013-01-18 13:57:32 UTC (rev 23338)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/p/pytaglib/pytaglib-(.*)\.tar\.gz




More information about the Python-modules-commits mailing list