14
0

Accepting request 75179 from devel:languages:python

Update to 0.60.0

OBS-URL: https://build.opensuse.org/request/show/75179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtkey?expand=0&rev=5
This commit is contained in:
2011-07-19 13:14:42 +00:00
committed by Git OBS Bridge
5 changed files with 34 additions and 48 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8cfb50a6fa9f7f08bf390356853a772c594c9a9f46d4f2e41fd7a43f43e215c6
size 19290

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f8de93ded985454484e6d2e52ce86b4c7aae65bc3cd97fc8aa7259def2a091a1
size 40328

View File

@@ -1,30 +0,0 @@
Index: python-virtkey-0.50/setup.py
===================================================================
--- python-virtkey-0.50.orig/setup.py
+++ python-virtkey-0.50/setup.py
@@ -1,10 +1,23 @@
#!/usr/bin/python
from distutils.core import setup, Extension
+import commands
+
+# From http://code.activestate.com/recipes/502261-python-distutils-pkg-config/
+def pkgconfig(*packages, **kw):
+ flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
+ for token in commands.getoutput("pkg-config --libs --cflags %s" % ' '.join(packages)).split():
+ if flag_map.has_key(token[:2]):
+ kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
+ else: # throw others to extra_link_args
+ kw.setdefault('extra_link_args', []).append(token)
+ for k, v in kw.iteritems(): # remove duplicated
+ kw[k] = list(set(v))
+ return kw
+
setup(name="virtkey",
ext_modules=[Extension("virtkey",
- ["python-virtkey.c","ucs2keysym.c"],include_dirs=['/usr/include/gtk-2.0', '/usr/include/glib-2.0', '/usr/lib/glib-2.0/include', '/usr/include/pango-1.0', '/usr/lib/gtk-2.0/include', '/usr/include/cairo'],
- libraries=["X11","Xtst","glib-2.0","gdk-x11-2.0"]
+ ["python-virtkey.c","ucs2keysym.c"], **pkgconfig('glib-2.0', 'gdk-2.0', 'x11', 'xtst')
)],
version="0.01"
)

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sat Jul 2 19:46:16 CEST 2011 - vuntz@opensuse.org
- Update to version 0.60.0:
+ Add methods to get the active layout symbols and group
(lp#65626)
+ Add python error exit in getKbd (lp#526791)
+ Fix potential X resource leaks
+ Add test code to simulate missing X keyboard
+ Some code cleanup
+ Reorganize source directory and add AUTHORS, NEWS and README files
+ Add MANIFEST.in file
+ Use pkg-config to find paths instead of hardcoded paths
+ Update license to LGPL 3
+ Use 'python-virtkey' name also for source package
+ Change version format to major.minor.micro
+ Add some API documentation
- Change License tag from GPLv2+ to LGPLv3+.
- Drop python-virtkey-use-pkg-config.patch: fixed upstream.
- Update description
-------------------------------------------------------------------
Mon Dec 20 09:02:23 UTC 2010 - saschpe@suse.de

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-virtkey (Version 0.50)
# spec file for package python-virtkey
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -23,15 +23,13 @@
%define mod_name virtkey
Name: python-%{mod_name}
Version: 0.50
Release: 2
Url: https://launchpad.net/virtkey
Version: 0.60.0
Release: 1
Url: https://launchpad.net/virtkey
Summary: Python extension to emulate keypresses
License: GPLv2+
License: LGPLv3+
Group: Development/Languages/Python
Source: python-%{mod_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM python-virtkey-use-pkg-config.patch vuntz@opensuse.org -- Fix build by using pkg-config to get compilation flags, sent by mail upstream (no bug tracker)
Patch0: python-virtkey-use-pkg-config.patch
Source: python-%{mod_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: glib2-devel
@@ -41,16 +39,12 @@ BuildRequires: gtk2-devel
%endif
%description
Python extension for emulating keypresses and getting current keyboard layout.
Authors:
--------
Chris Jones <cej105@soton.ac.uk>
python-virtkey is a python extension for emulating keypresses and
getting the keyboard geometry from the xserver.
%prep
export CFLAGS="%{optflags}"
%setup -c
%patch0 -p1
%setup -q
%build
python setup.py build
@@ -63,6 +57,7 @@ rm -rf %{buildroot}
%files %{?suse_version: -f INSTALLED_FILES}
%defattr(-,root,root,-)
%doc AUTHORS COPYING.LESSER NEWS README
%if 0%{!?suse_version:1}
%python_sitelib/%{mod_name}*
%endif