telepathy-python:add pisi-2.0
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
#!/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 autotools
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
shelltools.unlink("py-compile")
|
||||||
|
autotools.configure()
|
||||||
|
|
||||||
|
def build():
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pisitools.dosed("src/Makefile", "\s_generated\/errors\.py.*", deleteLine=True)
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
diff -Nuar telepathy-python-0.15.15.orig/Makefile.in telepathy-python-0.15.15/Makefile.in
|
||||||
|
--- telepathy-python-0.15.15.orig/Makefile.in 2010-01-20 15:47:58.000000000 +0200
|
||||||
|
+++ telepathy-python-0.15.15/Makefile.in 2010-02-16 14:34:28.333117263 +0200
|
||||||
|
@@ -34,7 +34,7 @@
|
||||||
|
subdir = .
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||||
|
- ChangeLog INSTALL NEWS install-sh missing py-compile
|
||||||
|
+ ChangeLog INSTALL NEWS install-sh missing
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
diff -Nuar telepathy-python-0.15.15.orig/src/client/Makefile.in telepathy-python-0.15.15/src/client/Makefile.in
|
||||||
|
--- telepathy-python-0.15.15.orig/src/client/Makefile.in 2010-01-20 15:47:58.000000000 +0200
|
||||||
|
+++ telepathy-python-0.15.15/src/client/Makefile.in 2010-02-16 14:38:54.061356515 +0200
|
||||||
|
@@ -71,7 +71,6 @@
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__installdirs = "$(DESTDIR)$(clientdir)"
|
||||||
|
-py_compile = $(top_srcdir)/py-compile
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
@@ -218,14 +217,7 @@
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clientdir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(clientdir)" || exit $$?; \
|
||||||
|
- done || exit $$?; \
|
||||||
|
- if test -n "$$dlist"; then \
|
||||||
|
- if test -z "$(DESTDIR)"; then \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --basedir "$(clientdir)" $$dlist; \
|
||||||
|
- else \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(clientdir)" $$dlist; \
|
||||||
|
- fi; \
|
||||||
|
- else :; fi
|
||||||
|
+ done || exit $$?;
|
||||||
|
|
||||||
|
uninstall-clientPYTHON:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
diff -Nuar telepathy-python-0.15.15.orig/src/Makefile.in telepathy-python-0.15.15/src/Makefile.in
|
||||||
|
--- telepathy-python-0.15.15.orig/src/Makefile.in 2010-01-20 15:47:58.000000000 +0200
|
||||||
|
+++ telepathy-python-0.15.15/src/Makefile.in 2010-02-16 14:38:41.068107412 +0200
|
||||||
|
@@ -79,7 +79,6 @@
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__installdirs = "$(DESTDIR)$(generateddir)" \
|
||||||
|
"$(DESTDIR)$(versiondir)" "$(DESTDIR)$(telepathydir)"
|
||||||
|
-py_compile = $(top_srcdir)/py-compile
|
||||||
|
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||||
|
distclean-recursive maintainer-clean-recursive
|
||||||
|
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
||||||
|
@@ -288,14 +287,7 @@
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(generateddir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(generateddir)" || exit $$?; \
|
||||||
|
- done || exit $$?; \
|
||||||
|
- if test -n "$$dlist"; then \
|
||||||
|
- if test -z "$(DESTDIR)"; then \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --basedir "$(generateddir)" $$dlist; \
|
||||||
|
- else \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(generateddir)" $$dlist; \
|
||||||
|
- fi; \
|
||||||
|
- else :; fi
|
||||||
|
+ done || exit $$?;
|
||||||
|
|
||||||
|
uninstall-nodist_generatedPYTHON:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@@ -326,14 +318,7 @@
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(versiondir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(versiondir)" || exit $$?; \
|
||||||
|
- done || exit $$?; \
|
||||||
|
- if test -n "$$dlist"; then \
|
||||||
|
- if test -z "$(DESTDIR)"; then \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --basedir "$(versiondir)" $$dlist; \
|
||||||
|
- else \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(versiondir)" $$dlist; \
|
||||||
|
- fi; \
|
||||||
|
- else :; fi
|
||||||
|
+ done || exit $$?;
|
||||||
|
|
||||||
|
uninstall-nodist_versionPYTHON:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@@ -364,14 +349,7 @@
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(telepathydir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(telepathydir)" || exit $$?; \
|
||||||
|
- done || exit $$?; \
|
||||||
|
- if test -n "$$dlist"; then \
|
||||||
|
- if test -z "$(DESTDIR)"; then \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --basedir "$(telepathydir)" $$dlist; \
|
||||||
|
- else \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(telepathydir)" $$dlist; \
|
||||||
|
- fi; \
|
||||||
|
- else :; fi
|
||||||
|
+ done || exit $$?;
|
||||||
|
|
||||||
|
uninstall-telepathyPYTHON:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
diff -Nuar telepathy-python-0.15.15.orig/src/server/Makefile.in telepathy-python-0.15.15/src/server/Makefile.in
|
||||||
|
--- telepathy-python-0.15.15.orig/src/server/Makefile.in 2010-01-20 15:47:58.000000000 +0200
|
||||||
|
+++ telepathy-python-0.15.15/src/server/Makefile.in 2010-02-16 14:39:09.238088477 +0200
|
||||||
|
@@ -71,7 +71,6 @@
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__installdirs = "$(DESTDIR)$(serverdir)"
|
||||||
|
-py_compile = $(top_srcdir)/py-compile
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
@@ -222,14 +221,7 @@
|
||||||
|
while read files; do \
|
||||||
|
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(serverdir)'"; \
|
||||||
|
$(INSTALL_DATA) $$files "$(DESTDIR)$(serverdir)" || exit $$?; \
|
||||||
|
- done || exit $$?; \
|
||||||
|
- if test -n "$$dlist"; then \
|
||||||
|
- if test -z "$(DESTDIR)"; then \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --basedir "$(serverdir)" $$dlist; \
|
||||||
|
- else \
|
||||||
|
- PYTHON=$(PYTHON) $(py_compile) --destdir "$(DESTDIR)" --basedir "$(serverdir)" $$dlist; \
|
||||||
|
- fi; \
|
||||||
|
- else :; fi
|
||||||
|
+ done || exit $$?;
|
||||||
|
|
||||||
|
uninstall-serverPYTHON:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 135f2f0..ede1fc3 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -13,10 +13,12 @@ telepathy_PYTHON = \
|
||||||
|
spec_dir = $(top_srcdir)/spec
|
||||||
|
spec_files := $(patsubst $(spec_dir)%.xml,_generated%.py,$(wildcard $(spec_dir)/*.xml))
|
||||||
|
|
||||||
|
+# We leave _generated/errors.py out of here because there exists a
|
||||||
|
+# spec/errors.xml file, so that means there'll be a
|
||||||
|
+# _generated/errors.py in $(spec_files). See fd.o#32526
|
||||||
|
BUILT_SOURCES = \
|
||||||
|
_generated/interfaces.py \
|
||||||
|
_generated/constants.py \
|
||||||
|
- _generated/errors.py \
|
||||||
|
_generated/__init__.py \
|
||||||
|
$(spec_files)
|
||||||
|
|
||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
From 95f5183700cad0c713bc4f5757555b45ce173ed8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||||
|
Date: Sun, 24 Jun 2012 21:02:04 -0400
|
||||||
|
Subject: [PATCH] Stop using obsolete $(mkdir_p) for automake-1.12
|
||||||
|
compatibility
|
||||||
|
|
||||||
|
$(mkdir_p) was declared obsolete in automake-1.10, deprecated in 1.12,
|
||||||
|
and removed in 1.13.
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=51392
|
||||||
|
---
|
||||||
|
src/Makefile.am | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index ede1fc3..154c56e 100644
|
||||||
|
--- a/src/Makefile.am
|
||||||
|
+++ b/src/Makefile.am
|
||||||
|
@@ -57,7 +57,7 @@ _generated/errors.py: $(tools_dir)/python-errors-generator.xsl $(wildcard $(spec
|
||||||
|
$(spec_dir)/all.xml
|
||||||
|
|
||||||
|
_generated/__init__.py:
|
||||||
|
- $(AM_V_GEN)$(mkdir_p) $(dir $@)
|
||||||
|
+ $(AM_V_GEN)$(MKDIR_P) $(dir $@)
|
||||||
|
@echo "# Placeholder for package" > $@
|
||||||
|
|
||||||
|
_generated/%.py: $(tools_dir)/spec-to-python.xsl $(spec_dir)/%.xml
|
||||||
|
--
|
||||||
|
1.7.8.6
|
||||||
|
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>telepathy-python</Name>
|
||||||
|
<Homepage>http://telepathy.freedesktop.org/wiki</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>LGPLv2+</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<Summary>Python libraries for Telepathy</Summary>
|
||||||
|
<Description>telepathy-python is the Python libraries for use in Telepathy client and connection managers.</Description>
|
||||||
|
<Archive sha1sum="a0cc066088f2fc25849c1d005baaea2b7c6409fd" type="targz">http://telepathy.freedesktop.org/releases/telepathy-python/telepathy-python-0.15.19.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>libxslt-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">telepathy-python-0.15.19-mkdir_p.patch</Patch>
|
||||||
|
<Patch level="1">dont-compile-py.patch</Patch>
|
||||||
|
<Patch level="1">python-telepathy-no_double_errors-py.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>telepathy-python</Name>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="5">
|
||||||
|
<Date>2015-11-22</Date>
|
||||||
|
<Version>0.15.19</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Alihan Öztürk</Name>
|
||||||
|
<Email>alihan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="4">
|
||||||
|
<Date>2013-08-03</Date>
|
||||||
|
<Version>0.15.19</Version>
|
||||||
|
<Comment>Fix build</Comment>
|
||||||
|
<Name>Marcin Bojara</Name>
|
||||||
|
<Email>marcin@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2013-06-16</Date>
|
||||||
|
<Version>0.15.19</Version>
|
||||||
|
<Comment>Fixed</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2013-06-15</Date>
|
||||||
|
<Version>0.15.19</Version>
|
||||||
|
<Comment>Version bump</Comment>
|
||||||
|
<Name>Aydın Demirel</Name>
|
||||||
|
<Email>aydin@demirel.web.tr</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2010-10-13</Date>
|
||||||
|
<Version>0.15.18</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Pisi Linux Admins</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>telepathy-python</Name>
|
||||||
|
<Summary xml:lang="tr">Telepathy için Python kitaplıkları</Summary>
|
||||||
|
<Description xml:lang="tr">telepathy-pyhon Telepathy istemcileri ve bağlantı yöneticilerinde kullanılmak üzere tasarlanmış Python kitaplığıdır.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user