yazıcı için paketler

This commit is contained in:
alihanozturk
2016-01-09 23:55:25 +02:00
parent 83b09584be
commit 858643879e
76 changed files with 11967 additions and 13 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/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():
# Remove .c file to be regenerated from .defs file
shelltools.unlink("src/pynotify.c")
autotools.autoreconf("-fi")
autotools.configure()
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
@@ -0,0 +1,36 @@
diff -up notify-python-0.1.1/src/pynotify.defs.notify070 notify-python-0.1.1/src/pynotify.defs
--- notify-python-0.1.1/src/pynotify.defs.notify070 2010-11-02 17:11:14.928179237 -0400
+++ notify-python-0.1.1/src/pynotify.defs 2010-11-02 17:11:51.153180231 -0400
@@ -38,7 +38,6 @@
'("const-gchar*" "summary")
'("const-gchar*" "message" (null-ok) (default "NULL"))
'("const-gchar*" "icon" (null-ok) (default "NULL"))
- '("GtkWidget*" "attach" (null-ok) (default "NULL"))
)
)
@@ -53,24 +52,6 @@
)
)
-(define-method attach_to_widget
- (of-object "NotifyNotification")
- (c-name "notify_notification_attach_to_widget")
- (return-type "none")
- (parameters
- '("GtkWidget*" "attach")
- )
-)
-
-(define-method attach_to_status_icon
- (of-object "NotifyNotification")
- (c-name "notify_notification_attach_to_status_icon")
- (return-type "none")
- (parameters
- '("GtkStatusIcon*" "attach")
- )
-)
-
(define-method show
(of-object "NotifyNotification")
(c-name "notify_notification_show")
@@ -0,0 +1,13 @@
Index: notify-python-0.1.1/src/Makefile.am
===================================================================
--- notify-python-0.1.1.orig/src/Makefile.am
+++ notify-python-0.1.1/src/Makefile.am
@@ -17,7 +17,7 @@ pkgpypynotify_PYTHON = __init__.py
pypynotifydir = $(pkgpyexecdir)/pynotify
pypynotify_LTLIBRARIES = _pynotify.la
-_pynotify_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_pynotify
+_pynotify_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_pynotify `python-config --libs`
_pynotify_la_LIBADD = $(NOTIFY_PYTHON_LIBS)
_pynotify_la_SOURCES = pynotifymodule.c pynotify.c
#nodist_pynotify_la_SOURCES = pynotify.c
@@ -0,0 +1,25 @@
diff -up notify-python-0.1.1/src/__init__.py.BAD notify-python-0.1.1/src/__init__.py
--- notify-python-0.1.1/src/__init__.py.BAD 2010-08-31 09:04:45.353844005 -0400
+++ notify-python-0.1.1/src/__init__.py 2010-08-31 09:04:49.281844300 -0400
@@ -1 +1,21 @@
+"""
+Fedora's libnotify.so is not linked against GTK2 or GTK3. The idea
+was to support being linked against different parallel-installable
+GTK stacks.
+
+Unfortunately, python needs to jump through some special hoops in order
+to share symbols with extension modules, specifically, pygtk, which does
+link against GTK2.
+
+Without using sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL),
+the result is:
+libnotify-WARNING **: Missing symbol 'gdk_screen_make_display_name'
+
+Thanks to David Malcolm for figuring out the workaround.
+"""
+import ctypes
+import sys
+sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
+import gtk
+
from _pynotify import *
+80
View File
@@ -0,0 +1,80 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>notify-python</Name>
<Homepage>http://www.galago-project.com</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Python bindings for libnotify</Summary>
<Description>notify-python are Python bindings for the Galago project's notification library libnotify.</Description>
<Archive sha1sum="0e2b8525b1aabf0924c5efb53ced6aa429240ed0" type="targz">http://galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.gz</Archive>
<BuildDependencies>
<Dependency>libnotify-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>python-gtk-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">link-with-python.patch</Patch>
<Patch level="1">notify-python-0.1.1-fix-GTK-symbols.patch</Patch>
<Patch level="1">libnotify0.7.patch</Patch>
</Patches>
</Source>
<Package>
<Name>notify-python</Name>
<RuntimeDependencies>
<Dependency>atk</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>cairo</Dependency>
<Dependency>glib2</Dependency>
<Dependency>pango</Dependency>
<Dependency>python</Dependency>
<Dependency>freetype</Dependency>
<Dependency>libnotify</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>gdk-pixbuf</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/share/pygtk/2.0/defs</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2016-01-09</Date>
<Version>0.1.1</Version>
<Comment>Rebuild</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-11-03</Date>
<Version>0.1.1</Version>
<Comment>Rebuild</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-28</Date>
<Version>0.1.1</Version>
<Comment>Dep Fixed</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-11-27</Date>
<Version>0.1.1</Version>
<Comment>First release</Comment>
<Name>Gökmen Görgen</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>notify-python</Name>
<Description xml:lang="tr"> Galago programlar arası duruş/görünüm bilgisini iletecek şekilde dizayn edilmiş bir masaüstü görüntü çerçevesidir. Daha basitçe açıklamak gerekirse, bir anlık ileti programından (gaim gibi) veya benzeri başka programlardan kimlerin çevrimiçi, boş/uzakta olduğu bilgisini alıp diğer programların (örn. Evolution) bu bilgiyi kullanmasını sağlar.</Description>
<Description xml:lang="fr">Galago est un framework (cadre de développement) de présence bureautique, conçu pour transmettre des informations de présences entre programmes. Pour faire simple, il recense les présents et agrège les informations concernant leur état depuis un logiciel de messagerie instantannée (tel que gaim) ou de programmes similaires et permet à d'autre logiciels (tels que Evolution) d'avoir accès à cette information.</Description>
<Summary xml:lang="tr">libnotify'ın Python bağlayıcıları</Summary>
<Description xml:lang="es">Galego es un entorno de presencia de escritorio, diseñado para transmitir informaciones entre programas. En términos sencillos: Puede tomar información sobre quien está en linea, y el estado ausente/inactivo de un programa de mensajería instantánea, como pidgin o similar, y pasar la información a otros programas (ejemplo Evolution) para hacer uso de ello.</Description>
</Source>
</PISI>