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.
|
2011-07-02 18:03:29 +00:00
|
|
|
|
2010-04-20 13:10:53 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
2011-07-02 18:03:29 +00:00
|
|
|
|
2010-12-21 15:41:58 +00:00
|
|
|
%{!?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)")}
|
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}
|
2011-07-02 18:03:29 +00:00
|
|
|
Version: 0.60.0
|
|
|
|
|
Release: 1
|
|
|
|
|
Url: https://launchpad.net/virtkey
|
2010-04-20 13:10:53 +00:00
|
|
|
Summary: Python extension to emulate keypresses
|
2011-07-02 18:03:29 +00:00
|
|
|
License: LGPLv3+
|
2010-12-21 15:41:58 +00:00
|
|
|
Group: Development/Languages/Python
|
2011-07-02 18:03:29 +00:00
|
|
|
Source: python-%{mod_name}-%{version}.tar.gz
|
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
|
2011-07-02 18:03:29 +00:00
|
|
|
python-virtkey is a python extension for emulating keypresses and
|
|
|
|
|
getting the keyboard geometry from the xserver.
|
2010-12-21 15:41:58 +00:00
|
|
|
|
2010-04-20 13:10:53 +00:00
|
|
|
%prep
|
2010-12-21 15:41:58 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2011-07-02 18:03:29 +00:00
|
|
|
%setup -q
|
2010-04-20 13:10:53 +00:00
|
|
|
|
|
|
|
|
%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,-)
|
2011-07-02 18:03:29 +00:00
|
|
|
%doc AUTHORS COPYING.LESSER NEWS README
|
2010-12-21 15:41:58 +00:00
|
|
|
%if 0%{!?suse_version:1}
|
|
|
|
|
%python_sitelib/%{mod_name}*
|
|
|
|
|
%endif
|
2010-04-20 13:10:53 +00:00
|
|
|
|
|
|
|
|
%changelog
|