2010-04-20 13:10:53 +00:00
#
2010-12-21 15:41:58 +00:00
# spec file for package python-virtkey
2010-04-20 13:10:53 +00:00
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# 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.
2010-12-21 15:41:58 +00:00
#
2010-04-20 13:10:53 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2010-12-21 15:41:58 +00:00
%{!?python_sitelib: %global python_sitelib %(%{__python} -c " f r o m d i s t u t i l s . s y s c o n f i g i m p o r t g e t _ p y t h o n _ l i b ; p r i n t g e t _ p y t h o n _ l i b ( ) " )}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c " f r o m d i s t u t i l s . s y s c o n f i g i m p o r t g e t _ p y t h o n _ l i b ; p r i n t g e t _ p y t h o n _ l i b ( 1 ) " )}
2010-04-20 13:10:53 +00:00
2010-12-21 15:41:58 +00:00
%define mod_name virtkey
2010-04-20 13:10:53 +00:00
2010-12-21 15:41:58 +00:00
Name : python-%{mod_name}
2010-04-20 13:10:53 +00:00
Version : 0.50
2010-12-21 15:41:58 +00:00
Release : 0
Url : https://launchpad.net/virtkey
2010-04-20 13:10:53 +00:00
Summary : Python extension to emulate keypresses
2010-12-21 15:41:58 +00:00
License : GPLv2+
Group : Development/Languages/Python
Source : python-%{mod_name} -%{version} .tar.bz2
2010-04-20 13:10:53 +00:00
# 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
2010-12-21 15:41:58 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildRequires : python-devel
2010-04-20 13:10:53 +00:00
BuildRequires : glib2-devel
BuildRequires : gtk2-devel
2010-12-21 15:41:58 +00:00
%if 0%{?suse_version}
2010-04-20 13:10:53 +00:00
%py_requires
2010-12-21 15:41:58 +00:00
%endif
2010-04-20 13:10:53 +00:00
%description
Python extension for emulating keypresses and getting current keyboard layout.
2010-12-21 15:41:58 +00:00
Authors:
--------
Chris Jones <cej105@soton.ac.uk>
2010-04-20 13:10:53 +00:00
%prep
2010-12-21 15:41:58 +00:00
export CFLAGS=" %{optflags} "
%setup -c
2010-04-20 13:10:53 +00:00
%patch0 -p1
%build
2010-12-21 15:41:58 +00:00
python setup.py build
2010-04-20 13:10:53 +00:00
%install
2010-12-21 15:41:58 +00:00
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
2010-04-20 13:10:53 +00:00
%clean
2010-12-21 15:41:58 +00:00
rm -rf %{buildroot}
2010-04-20 13:10:53 +00:00
2010-12-21 15:41:58 +00:00
%files %{?suse_version: -f INSTALLED_FILES}
%defattr (-,root,root,-)
%if 0%{!?suse_version:1}
%python_sitelib/%{mod_name} *
%endif
2010-04-20 13:10:53 +00:00
%changelog