File dbus-1-python.spec of Package dbus-1-python

#
# spec file for package dbus-1-python
#
# Copyright (c) 2011 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/
#



Name:           dbus-1-python
BuildRequires:  dbus-1-glib-devel pyrex python-devel
BuildRequires:  libtool
Url:            http://dbus.freedesktop.org/
License:        MIT License (or similar)
Group:          Development/Libraries/Python
Version:        0.83.2
Release:        1
Summary:        Python bindings for D-Bus
Source0:        dbus-python-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`)
Requires:       libxml2-python
Requires:       python-xml
%{py_requires}

%package -n dbus-1-python-devel
License:        Other uncritical OpenSource License
Summary:        Python bindings for D-Bus
Requires:       dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`)
Requires:       dbus-1-devel >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1-devel`)
Requires:       dbus-1-python = %{version}
Group:          Development/Libraries/Python

%description
Python bindings for D-Bus.

%description -n dbus-1-python-devel
Developer files for Python bindings for D-Bus.

%prep
%setup -n dbus-python-%{version} -q

%build
autoreconf -fi
export CFLAGS="${RPM_OPT_FLAGS} -fstack-protector -fno-strict-aliasing -fPIC"
%configure --docdir=%_docdir/dbus-python
make %{?_smp_mflags} 

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-, root, root)
%dir %{_docdir}/dbus-python
%{python_sitelib}/*
%{python_sitearch}/*
%{_docdir}/dbus-python/*

%files -n dbus-1-python-devel
%defattr(-, root, root)
%{_includedir}/dbus-1.0/dbus/dbus-python.h
%{_libdir}/pkgconfig/dbus-python.pc

%changelog
openSUSE Build Service is sponsored by