rpms/python-virtkey/F-9 python-virtkey-0.50-fix64build.patch, NONE, 1.1 python-virtkey.spec, NONE, 1.1 sources, 1.1, 1.2

Sindre Pedersen Bjørdal (sindrepb) fedora-extras-commits at redhat.com
Fri May 30 21:03:26 UTC 2008


Author: sindrepb

Update of /cvs/pkgs/rpms/python-virtkey/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8013

Modified Files:
	sources 
Added Files:
	python-virtkey-0.50-fix64build.patch python-virtkey.spec 
Log Message:


python-virtkey-0.50-fix64build.patch:

--- NEW FILE python-virtkey-0.50-fix64build.patch ---
--- setup.py	2008-02-16 00:56:49.000000000 +0530
+++ setup-modified.py	2008-05-22 12:38:01.000000000 +0530
@@ -1,10 +1,15 @@
 #!/usr/bin/python
 
+import os
+import distutils
+from distutils import sysconfig
 from distutils.core import setup, Extension
+libpath=os.path.dirname(os.path.dirname(distutils.sysconfig.get_python_lib(1)))
 setup(name="virtkey",
       ext_modules=[Extension("virtkey", 
-		["python-virtkey.c","ucs2keysym.c"],include_dirs=['/usr/include/gtk-2.0', '/usr/include/glib-2.0', '/usr/lib/glib-2.0/include', '/usr/include/pango-1.0', '/usr/lib/gtk-2.0/include', '/usr/include/cairo'],
+		["python-virtkey.c","ucs2keysym.c"],include_dirs=['/usr/include/gtk-2.0', '/usr/include/glib-2.0', '%s/glib-2.0/include' % libpath, '/usr/include/pango-1.0', '%s/gtk-2.0/include' % libpath , '/usr/include/cairo'],
 		libraries=["X11","Xtst","glib-2.0","gdk-x11-2.0"]
 		)],
 	version="0.01"
       )
+


--- NEW FILE python-virtkey.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-virtkey
Version:        0.50
Release:        3%{?dist}
Summary:        Python extension for emulating keypresses and getting current keyboard layout

Group:          Development/Languages
#missing copy of GPL, licensing info in source file
License:        GPLv2+
URL:            https://launchpad.net/virtkey
Source0:        http://launchpad.net/virtkey/trunk/0.50/+download/%{name}-%{version}.tar.gz
Patch0:         python-virtkey-0.50-fix64build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel, libXtst-devel, gtk2-devel, glib2-devel

%description
Python-virtkey is a python extension for emulating keypresses and getting
current keyboard layout.

%prep
%setup -q -c %{name}-%{version} -a0
%patch0 -p0

%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
#no documentation included in upstream tarball
%{python_sitearch}/*


%changelog
* Tue May 22 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 0.50-3
- Add patch to fix 64bit build issue, thanks Parag and Ivazquez
* Tue May 06 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 0.50-2
- Add missing glib2-devel build dependency
* Tue May 06 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 0.50-1
- Initial build


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtkey/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	30 May 2008 19:51:38 -0000	1.1
+++ sources	30 May 2008 21:02:45 -0000	1.2
@@ -0,0 +1 @@
+7784e71e20413424ca7afa7ac9eda7fd  python-virtkey-0.50.tar.gz




More information about the fedora-extras-commits mailing list