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
|
|
|
#
|
2013-01-15 08:54:10 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-20 13:10:53 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2013-01-15 09:15:41 +00:00
|
|
|
|
2010-12-21 15:41:58 +00:00
|
|
|
%define mod_name virtkey
|
2013-01-15 09:15:41 +00:00
|
|
|
%define build_for_python3 0
|
|
|
|
|
|
|
|
|
|
%if %{build_for_python3}
|
|
|
|
|
%define local_python python3
|
|
|
|
|
%else
|
|
|
|
|
%define local_python python
|
|
|
|
|
%endif
|
2010-04-20 13:10:53 +00:00
|
|
|
|
2010-12-21 15:41:58 +00:00
|
|
|
Name: python-%{mod_name}
|
2013-01-15 08:54:10 +00:00
|
|
|
Version: 0.63.0
|
2012-02-24 10:38:16 +00:00
|
|
|
Release: 0
|
2011-07-02 18:03:29 +00:00
|
|
|
Url: https://launchpad.net/virtkey
|
2010-04-20 13:10:53 +00:00
|
|
|
Summary: Python extension to emulate keypresses
|
2012-02-24 10:38:16 +00:00
|
|
|
License: LGPL-3.0+
|
2010-12-21 15:41:58 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-01-15 08:54:10 +00:00
|
|
|
Source: %{mod_name}-%{version}.tar.gz
|
2010-12-21 15:41:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-20 13:10:53 +00:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
BuildRequires: gtk2-devel
|
2013-01-15 09:15:41 +00:00
|
|
|
%if %{build_for_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-distribute
|
|
|
|
|
%else
|
2012-02-24 10:38:16 +00:00
|
|
|
BuildRequires: python-devel
|
2013-01-15 09:15:41 +00:00
|
|
|
%endif
|
2012-02-24 10:38:16 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2013-01-15 09:15:41 +00:00
|
|
|
BuildRequires: pkgconfig(xkbfile)
|
2012-02-24 10:38:16 +00:00
|
|
|
BuildRequires: pkgconfig(xtst)
|
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
|
2013-01-15 08:54:10 +00:00
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2010-04-20 13:10:53 +00:00
|
|
|
|
|
|
|
|
%build
|
2013-01-15 08:54:10 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2013-01-15 09:15:41 +00:00
|
|
|
%{local_python} setup.py build
|
2010-04-20 13:10:53 +00:00
|
|
|
|
|
|
|
|
%install
|
2013-01-15 09:15:41 +00:00
|
|
|
%{local_python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
2010-04-20 13:10:53 +00:00
|
|
|
|
2013-01-15 08:54:10 +00:00
|
|
|
%files -f INSTALLED_FILES
|
2010-12-21 15:41:58 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-07-02 18:03:29 +00:00
|
|
|
%doc AUTHORS COPYING.LESSER NEWS README
|
2010-04-20 13:10:53 +00:00
|
|
|
|
|
|
|
|
%changelog
|