Merge pull request #1992 from groni/master

add python-mutagen audio metadata tag reader and writer, add python-pillow the friendly PIL fork (Python Imaging Library)
This commit is contained in:
yusuf
2016-06-19 12:44:34 +03:00
committed by GitHub
14 changed files with 96410 additions and 96056 deletions
+96161 -96054
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1 +1 @@
fda2744afa44456269c6a53fd5d69d2db0efd279
3a68a3c18b50f22ab15a0d8c29d59a25f40b37a1
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
f9e5a433b3192799cd284a074627ced94035e347
4b080aa4761fdae99ac4da8f4b50c8c2f75bfddc
@@ -0,0 +1,16 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "mutagen-%s" % get.srcVERSION()
def install():
pythonmodules.install()
pisitools.dodoc("NEWS", "COPYING", "README.rst")
@@ -0,0 +1,45 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python-mutagen</Name>
<Homepage>http://code.google.com/p/mutagen</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>An audio tag editing library</Summary>
<Description>Mutagen is an audio metadata tag reader and writer implemented in pure Python.</Description>
<Archive sha1sum="4006517ce55770639621d2880af9ffc3378569ad" type="targz">https://bitbucket.org/lazka/mutagen/downloads/mutagen-1.32.tar.gz</Archive>
<BuildDependencies>
<Dependency>python-devel</Dependency>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>python-mutagen</Name>
<RuntimeDependencies>
<Dependency>python</Dependency>
<Dependency>python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-06-18</Date>
<Version>1.32</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>mutagen</Name>
<Summary xml:lang="tr">Müzik dosyalarının etiketlerini düzenlemek için bir kütüphane</Summary>
<Description xml:lang="tr">mutagen, müzik dosyalarının etiklerini düzenlemeye yarayan python ile yazılmış bir kütüphanedir.</Description>
</Source>
</PISI>
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
#WorkDir="Imaging-%s" % get.srcVERSION()
def install():
pisitools.dosed("_imagingft.c", "<freetype/freetype.h>", "<freetype2/freetype.h>")
pisitools.dosed("_imagingft.c", "<freetype/fterrors.h>", "<freetype2/fterrors.h>")
pythonmodules.install()
#shelltools.cd("Sane")
#pythonmodules.install()
#shelltools.cd("..")
for header in ["Imaging.h","ImPlatform.h"]:
pisitools.insinto("/usr/include/%s" % get.curPYTHON(), "libImaging/%s" % header)
pisitools.dodoc("README.rst")
@@ -0,0 +1,38 @@
--- Imaging-1.1.7-orig/PIL/TiffImagePlugin.py 2009-11-01 02:44:12.000000000 +0200
+++ Imaging-1.1.7/PIL/TiffImagePlugin.py 2012-11-13 03:45:11.280000132 +0200
@@ -69,7 +69,7 @@
def il32(c,o=0):
return ord(c[o]) + (ord(c[o+1])<<8) + (ord(c[o+2])<<16) + (ord(c[o+3])<<24)
def ol16(i):
- return chr(i&255) + chr(i>>8&255)
+ return chr(i>>8&255) + chr(i&255)
def ol32(i):
return chr(i&255) + chr(i>>8&255) + chr(i>>16&255) + chr(i>>24&255)
@@ -197,6 +197,8 @@
}
PREFIXES = ["MM\000\052", "II\052\000", "II\xBC\000"]
+PREFIX_TO_BYTEORDER = {"MM":"b", "II":"l"}
+BYTEORDER_TO_PREFIX = {"b":"MM", "l":"II"}
def _accept(prefix):
return prefix[:4] in PREFIXES
@@ -219,6 +221,8 @@
self.o16, self.o32 = ol16, ol32
else:
raise SyntaxError("not a TIFF IFD")
+ self.byteorder = PREFIX_TO_BYTEORDER[self.prefix]
+
self.reset()
def reset(self):
@@ -749,7 +753,7 @@
def _save(im, fp, filename):
try:
- rawmode, prefix, photo, format, bits, extra = SAVE_INFO[im.mode]
+ rawmode, prefix, byteorder, photo, format, bits, extra = SAVE_INFO[im.mode]
except KeyError:
raise IOError, "cannot write mode %s as TIFF" % im.mode
@@ -0,0 +1,14 @@
--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py 2006-12-03 11:37:15.000000000 +0000
+++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100
@@ -352,6 +352,11 @@
for i in range(maxcolor):
s.append(chr(i) * 3)
+ if im.info.has_key('transparency'):
+ transparentIndex = im.info['transparency']
+ s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
+ chr(transparentIndex) + chr(0))
+
return s
def getdata(im, offset = (0, 0), **params):
@@ -0,0 +1,13 @@
--- Imaging-1.1.6/Sane/_sane.c.orig 2006-12-03 13:12:22.000000000 +0100
+++ Imaging-1.1.6/Sane/_sane.c 2009-02-28 11:41:19.000000000 +0200
@@ -1152,8 +1152,8 @@
static PyObject *
PySane_get_devices(PyObject *self, PyObject *args)
{
- SANE_Device **devlist;
- SANE_Device *dev;
+ const SANE_Device **devlist;
+ const SANE_Device *dev;
SANE_Status st;
PyObject *list;
int local_only, i;
@@ -0,0 +1,11 @@
--- python-imaging-1.1.6.old/Sane/_sane.c 2006-12-03 07:12:22.000000000 -0500
+++ python-imaging-1.1.6/Sane/_sane.c 2007-04-03 22:08:41.000000000 -0400
@@ -1156,7 +1156,7 @@
SANE_Device *dev;
SANE_Status st;
PyObject *list;
- int local_only, i;
+ int local_only=0, i;
if (!PyArg_ParseTuple(args, "|i", &local_only))
{
@@ -0,0 +1,66 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python-pillow</Name>
<Homepage>http://python-pillow.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>as-is</License>
<IsA>library</IsA>
<Summary>PIL is the Python Imaging Library.</Summary>
<Description>The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities.</Description>
<Archive sha1sum="eaa57b9d4b44c287e974b18696f52c6ac4f90382" type="targz">https://github.com/python-pillow/Pillow/archive/3.1.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-tk</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>lcms-devel</Dependency>
<Dependency>python-setuptools</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-qt5-devel</Dependency>
<Dependency>python-qt5-devel</Dependency>
<Dependency>webp-devel</Dependency>
<Dependency>tcltk-devel</Dependency>
<Dependency>tcl-devel</Dependency>
<Dependency>sane-backends-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>python-pillow</Name>
<RuntimeDependencies>
<Dependency>python3-tk</Dependency>
<Dependency>python</Dependency>
<Dependency>lcms</Dependency>
<Dependency>python-setuptools</Dependency>
<Dependency>python3-setuptools</Dependency>
<Dependency>python3-qt5</Dependency>
<Dependency>python-qt5</Dependency>
<Dependency>webp</Dependency>
<Dependency>tcltk</Dependency>
<Dependency>tcl</Dependency>
<Dependency>sane-backends</Dependency>
<Dependency>libjpeg-turbo</Dependency>
<Dependency>xdg-utils</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-06-18</Date>
<Version>3.1.0</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>python-imaging</Name>
<Summary xml:lang="tr">Python Görüntü İşleme Kitaplığı</Summary>
<Description xml:lang="es">La librería Python Imaging Library (PIL) facilita el procesamiento de imágenes desde Python. Esta librería soporta muchos formatos de archivos y provee potentes facilidades de procesamiento de gráficos.</Description>
</Source>
</PISI>