14
0

Accepting request 56543 from devel:languages:python

Accepted submit request 56543 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/56543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtkey?expand=0&rev=2
This commit is contained in:
Ruediger Oertel
2010-12-28 23:31:35 +00:00
committed by Git OBS Bridge
2 changed files with 34 additions and 18 deletions

View File

@@ -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

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.
#
@@ -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 <cej105@soton.ac.uk>
%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