66 lines
2.1 KiB
RPMSpec
66 lines
2.1 KiB
RPMSpec
|
%define majver %(echo %version | cut -d. -f1-2)
|
||
|
Name: python-virtkey
|
||
|
Version: 0.63.0
|
||
|
Release: 2mamba
|
||
|
Summary: Python extension for emulating keypresses and getting layout information from the X server
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://launchpad.net/python-virtkey
|
||
|
Source: http://launchpad.net/python-virtkey/%{majver}/%{version}/+download/virtkey-%{version}.tar.gz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libcairo-devel
|
||
|
BuildRequires: libgdk-pixbuf-devel
|
||
|
BuildRequires: libglib-devel
|
||
|
BuildRequires: libgtk2-devel
|
||
|
BuildRequires: libpango-devel
|
||
|
BuildRequires: libpython-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXtst-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: python >= %python_version
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Python extension for emulating keypresses and getting layout information from the X server.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n virtkey-%{version}
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python} setup.py install \
|
||
|
-O1 --skip-build \
|
||
|
--root="%{buildroot}" \
|
||
|
--install-headers=%{_includedir}/python \
|
||
|
--install-lib=%{python_sitearch} \
|
||
|
--record=%{name}.filelist
|
||
|
|
||
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||
|
|
||
|
%files -f %{name}.filelist
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS COPYING COPYING.LESSER NEWS README
|
||
|
|
||
|
%changelog
|
||
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.63.0-2mamba
|
||
|
- python 2.7 mass rebuild
|
||
|
|
||
|
* Tue Jan 08 2013 Automatic Build System <autodist@mambasoft.it> 0.63.0-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Nov 12 2012 Automatic Build System <autodist@mambasoft.it> 0.62.0-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 0.61.0-1mamba
|
||
|
- update to 0.61.0
|
||
|
|
||
|
* Tue Dec 13 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.60.0-1mamba
|
||
|
- package created by autospec
|