14
0
Files
python-virtkey/python-virtkey.spec

59 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-virtkey (Version 0.50)
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-virtkey
Version: 0.50
Release: 1
License: GPLv2+
Summary: Python extension to emulate keypresses
Group: Development/Libraries/Python
Url: https://launchpad.net/virtkey
Source: %{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
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
Python extension for emulating keypresses and getting current keyboard layout.
%prep
%setup -q -c
%patch0 -p1
%build
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{python_sitearch}/virtkey.so
%{python_sitearch}/virtkey-*.egg-info
%changelog