From 8c520202590b8763940a718aab36d36c0e794782002760fb637daf5ddd0a5ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Tue, 21 Dec 2010 15:41:58 +0000 Subject: [PATCH] Accepting request 56396 from home:saschpe:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/56396 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtkey?expand=0&rev=3 --- python-virtkey.changes | 5 +++++ python-virtkey.spec | 47 ++++++++++++++++++++++++++---------------- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/python-virtkey.changes b/python-virtkey.changes index c30d704..ebbd9b9 100644 --- a/python-virtkey.changes +++ b/python-virtkey.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 20 09:02:23 UTC 2010 - saschpe@suse.de + +- Re-packaged with py2pack to reduce build errors + ------------------------------------------------------------------- Fri Apr 2 03:21:38 CEST 2010 - vuntz@opensuse.org diff --git a/python-virtkey.spec b/python-virtkey.spec index 3f8477c..4ff3adb 100644 --- a/python-virtkey.spec +++ b/python-virtkey.spec @@ -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. # @@ -11,48 +11,59 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%define mod_name virtkey -Name: python-virtkey +Name: python-%{mod_name} Version: 0.50 -Release: 1 -License: GPLv2+ +Release: 0 +Url: https://launchpad.net/virtkey Summary: Python extension to emulate keypresses -Group: Development/Libraries/Python -Url: https://launchpad.net/virtkey -Source: %{name}-%{version}.tar.bz2 +License: GPLv2+ +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel BuildRequires: glib2-devel BuildRequires: gtk2-devel -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} %py_requires +%endif %description Python extension for emulating keypresses and getting current keyboard layout. +Authors: +-------- + Chris Jones + %prep -%setup -q -c +export CFLAGS="%{optflags}" +%setup -c %patch0 -p1 %build -%{__python} setup.py build +python setup.py build %install -%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot} +python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES} %clean -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} -%files -%defattr(-,root,root) -%{python_sitearch}/virtkey.so -%{python_sitearch}/virtkey-*.egg-info +%files %{?suse_version: -f INSTALLED_FILES} +%defattr(-,root,root,-) +%if 0%{!?suse_version:1} +%python_sitelib/%{mod_name}* +%endif %changelog