sip3, python3-sip3 fix deps
This commit is contained in:
@@ -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>
|
||||
@@ -20,7 +20,7 @@ def setup():
|
||||
--sip /usr/bin/sip3 \
|
||||
--qmake='/usr/lib/qt5/bin/qmake' \
|
||||
--destdir='/usr/lib/python3.4/site-packages/' \
|
||||
--sip-incdir='/usr/include/python3.4' \
|
||||
--sip-incdir='/usr/include/python3.4m' \
|
||||
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||
|
||||
shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
<Description>Qt is a set of C++ libraries and development tools that includes platform independent abstractions for graphical user interfaces, networking, threads, Unicode, regular expressions, SQL databases, SVG, OpenGL, XML, and user and application settings. PyQt implements 440 of these classes as a set of Python modules.</Description>
|
||||
<BuildDependencies>
|
||||
<Dependency>dbus-devel</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>dbus-python3</Dependency>
|
||||
<Dependency>dbus-python-common</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency versionFrom="4.16.6">python3-sip3</Dependency>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
@@ -34,6 +35,7 @@
|
||||
</BuildDependencies>
|
||||
<Archive sha1sum="ceb5f6e088923beaa9885226a3e677fec089964e" type="targz">mirrors://sourceforge/pyqt/PyQt5/PyQt-5.4.2/PyQt-gpl-5.4.2.tar.gz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python3-qt5-common</Name>
|
||||
<Summary>Common files shared between python-qt5 and python3-qt5</Summary>
|
||||
@@ -48,11 +50,13 @@
|
||||
<Path fileType="data">/usr/share/sip/PyQt5</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-qt5</Name>
|
||||
<Summary>A set of Python 3.x bindings for the Qt 5.x Toolkit</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>dbus</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
<Dependency release="current">python3-qt5-common</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
@@ -70,6 +74,7 @@
|
||||
<Path fileType="library">/usr/lib/qt5/plugins</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-qt5-docs</Name>
|
||||
<Summary>Documentation for python-qt5 bindings</Summary>
|
||||
@@ -80,11 +85,12 @@
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2015-06-14</Date>
|
||||
<Date>2015-09-07</Date>
|
||||
<Version>5.4.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
|
||||
@@ -9,6 +9,7 @@ from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "sip-%s" % get.srcVERSION()
|
||||
py3dir = "python3.4"
|
||||
|
||||
@@ -16,7 +17,7 @@ def setup():
|
||||
pythonmodules.run('configure.py \
|
||||
-b /usr/bin \
|
||||
-d /usr/lib/%s/site-packages/ \
|
||||
-e /usr/include/%s/ \
|
||||
-e /usr/include/%sm/ \
|
||||
CFLAGS="%s" CXXFLAGS="%s"' % (py3dir, py3dir, get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||
|
||||
def build():
|
||||
@@ -27,6 +28,3 @@ def install():
|
||||
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.rename("/usr/bin/sip", "sip3")
|
||||
|
||||
|
||||
# By PiSiDo 2.3.1
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<Patch level="1">sip-outoftree.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>sip3</Name>
|
||||
<Files>
|
||||
@@ -37,6 +38,7 @@
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-sip3</Name>
|
||||
<Files>
|
||||
@@ -53,6 +55,7 @@
|
||||
<Dependency release="current">sip3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>sip3-devel</Name>
|
||||
<Files>
|
||||
@@ -68,6 +71,7 @@
|
||||
<Dependency release="current">sip3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2015-06-14</Date>
|
||||
|
||||
Reference in New Issue
Block a user