From dff16ea35d5eead9c75e2bc5f0e2879c48ecc70f Mon Sep 17 00:00:00 2001 From: John (J5) Palmieri Date: Jul 18 2006 17:11:08 +0000 Subject: auto-import dbus-python-0.70-1 on branch devel from dbus-python-0.70-1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..0d5ca09 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +dbus-python-0.70.tar.gz diff --git a/dbus-python-0.70-fix-binary-modules-dir.patch b/dbus-python-0.70-fix-binary-modules-dir.patch new file mode 100644 index 0000000..d68f1f3 --- /dev/null +++ b/dbus-python-0.70-fix-binary-modules-dir.patch @@ -0,0 +1,17 @@ +--- dbus-python-0.70/setup.py.fix-binary-modules-dir 2006-07-17 20:30:07.000000000 -0400 ++++ dbus-python-0.70/setup.py 2006-07-17 20:30:22.000000000 -0400 +@@ -92,12 +92,12 @@ + "dbus/_util", + ], + ext_modules=[ +- Extension("dbus_bindings", ["dbus/dbus_bindings.pyx"], ++ Extension("dbus/dbus_bindings", ["dbus/dbus_bindings.pyx"], + include_dirs=dbus_includes, + libraries=["dbus-1"], + + ), +- Extension("dbus_glib_bindings", ["dbus/dbus_glib_bindings.pyx"], ++ Extension("dbus/dbus_glib_bindings", ["dbus/dbus_glib_bindings.pyx"], + include_dirs=dbus_glib_includes, + libraries=["dbus-glib-1", "dbus-1", "glib-2.0"], + define_macros=[ diff --git a/dbus-python.spec b/dbus-python.spec new file mode 100644 index 0000000..63d1e82 --- /dev/null +++ b/dbus-python.spec @@ -0,0 +1,51 @@ +%define pyver %(python -c 'import sys ; print sys.version[:3]') +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_pytho\n_lib()")} + +%define pyrex_versio 0.9.3 +%define dbus_glib_version 0.70 + +Summary: D-Bus Python Bindings +Name: dbus-python +Version: 0.70 +Release: 1 +URL: http://www.freedesktop.org/software/dbus/ +Source0: %{name}-%{version}.tar.gz +Patch0: dbus-python-0.70-fix-binary-modules-dir.patch +License: AFL/GPL +Group: System Environment/Libraries +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: dbus-glib-devel >= %{dbus_glib_version} +BuildRequires: Pyrex >= %{pyrex_version} +Obsoletes: dbus-python < 0.90 + +%description + +D-Bus python bindings for use with python programs. + +%prep +%setup -q +%patch0 -p1 -b .fix-binary-modules-dir + +%build + +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%install +rm -rf %{buildroot} + +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) + +%doc COPYING ChangeLog NEWS + +%{python_sitelib}/dbus/*.so +%{python_sitelib}/dbus/*.py* + +%changelog +* Mon Jul 17 2006 John (J5) Palmieri - 0.70-1 +- Initial package import diff --git a/sources b/sources index e69de29..07215d6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +26a680134801aa9d8dc77ccde7928927 dbus-python-0.70.tar.gz