sip3, python3-sip3 fix deps

This commit is contained in:
ertugerata
2015-09-07 23:47:01 +03:00
parent 2497b14880
commit b11f1a78b5
8 changed files with 164 additions and 8 deletions
@@ -0,0 +1,39 @@
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build-python3")
autotools.autoreconf("-fi")
shelltools.cd("build-python3")
shelltools.system("PYTHON=python3 ../configure --prefix=/usr \
--localstatedir=/var \
--disable-api-docs \
--disable-html-docs \
--disable-static")
def build():
shelltools.cd("build-python3")
autotools.make()
def check():
#autotools.make("check")
pass
def install():
shelltools.cd("build-python3")
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# remove dbus-python-common files in py3 package
pisitools.removeDir("/usr/include/")
pisitools.removeDir("/usr/lib/pkgconfig")
pisitools.removeDir("/usr/share/")
@@ -0,0 +1,12 @@
diff -Naur dbus-python-0.83.0.orig/dbus/connection.py dbus-python-0.83.0/dbus/connection.py
--- dbus-python-0.83.0.orig/dbus/connection.py 2009-04-22 13:58:33.000000000 +0300
+++ dbus-python-0.83.0/dbus/connection.py 2009-04-22 13:58:40.000000000 +0300
@@ -239,7 +239,7 @@
ProxyObjectClass = ProxyObject
def __init__(self, *args, **kwargs):
- super(Connection, self).__init__(*args, **kwargs)
+ super(Connection, self).__init__()
# this if-block is needed because shared bus connections can be
# __init__'ed more than once
@@ -0,0 +1,90 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>dbus-python</Name>
<Homepage>http://dbus.freedesktop.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<License>AFL-2.1</License>
<IsA>library</IsA>
<Summary>D-Bus Python bindings</Summary>
<Description>dbus-python provides a Python module which wraps the D-Bus programming API.</Description>
<Archive sha1sum="7a00f7861d26683ab7e3f4418860bd426deed9b5" type="targz">http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.0.tar.gz</Archive>
<BuildDependencies>
<!--<Dependency>python-devel</Dependency>-->
<Dependency>python3</Dependency>
<Dependency>dbus-devel</Dependency>
<Dependency>dbus-glib-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libpcre-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">suppress-warnings.patch</Patch>
</Patches>
</Source>
<Package>
<Name>dbus-python3</Name>
<PartOf>programming.language.python</PartOf>
<Summary>D-Bus Python3 bindings</Summary>
<RuntimeDependencies>
<!--<Dependency release="current">dbus-python-common</Dependency>--><!--is system.devel package, is not dependency in real -->
<Dependency>python3</Dependency>
<Dependency>dbus</Dependency>
<Dependency>glib2</Dependency>
<Dependency>dbus-glib</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python3*</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2015-06-02</Date>
<Version>1.2.0</Version>
<Comment>Release bump.</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="5">
<Date>2014-05-11</Date>
<Version>1.2.0</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-10-28</Date>
<Version>1.2.0</Version>
<Comment>rebuild.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-07-23</Date>
<Version>1.2.0</Version>
<Comment>Version bump. Remove dbus-devel from runtime dependencies.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-04-25</Date>
<Version>1.1.1</Version>
<Comment>Dep Fixed.</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-10</Date>
<Version>1.1.1</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>dbus-python</Name>
<Summary xml:lang="tr">D-Bus için Python bağlayıcıları</Summary>
</Source>
</PISI>