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

#
# spec file for package dbus-1-python (Version 0.83.2)
#
# 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/
#

# norootforbuild


Name:           dbus-1-python
BuildRequires:  dbus-1-glib-devel pyrex python-devel
Url:            http://dbus.freedesktop.org/
License:        MIT License (or similar)
Group:          Development/Libraries/Python
Version:        0.83.2
Release:        1
AutoReqProv:    on
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}
AutoReqProv:    on
Group:          Development/Libraries/Python

%description
Python bindings for D-Bus.



Authors:
--------
    Olivier Andrieu <oliv__a@users.sourceforge.net>
    Philip Blundell <pb@nexus.co.uk>
    Anders Carlsson <andersca@gnome.org>
    Kristian Hogsberg  <krh@redhat.com>
    Alex Larsson <alexl@redhat.com>
    Michael Meeks <michael@ximian.com>
    Seth Nickell <seth@gnome.org>
    Havoc Pennington <hp@redhat.com>
    Harri Porten <porten@kde.org>
    Matthew Rickard <mjricka@epoch.ncsc.mil>
    Zack Rusin <zack@kde.org>
    Joe Shaw <joe@assbarn.com>
    Colin Walters <walters@gnu.org>
    David Zeuthen <david@fubar.dk>

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



Authors:
--------
    Olivier Andrieu <oliv__a@users.sourceforge.net>
    Philip Blundell <pb@nexus.co.uk>
    Anders Carlsson <andersca@gnome.org>
    Kristian Hogsberg  <krh@redhat.com>
    Alex Larsson <alexl@redhat.com>
    Michael Meeks <michael@ximian.com>
    Seth Nickell <seth@gnome.org>
    Havoc Pennington <hp@redhat.com>
    Harri Porten <porten@kde.org>
    Matthew Rickard <mjricka@epoch.ncsc.mil>
    Zack Rusin <zack@kde.org>
    Joe Shaw <joe@assbarn.com>
    Colin Walters <walters@gnu.org>
    David Zeuthen <david@fubar.dk>

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

%build
autoreconf -fi
export CFLAGS="${RPM_OPT_FLAGS} -fstack-protector -fno-strict-aliasing -fPIC"
./configure                                  \
	--prefix=%{_prefix}                  \
	--exec_prefix=%{_exec_prefix}        \
	--sysconfdir=%{_sysconfdir}          \
	--datadir=%{_datadir}                \
	--localstatedir=%{_localstatedir}    \
	--libdir=%{_libdir}                  \
	--mandir=%{_mandir}                  \
	--docdir=%{_docdir}/dbus-python
make %{?_smp_mflags} 

%install
%{__rm} -rf %{buildroot}
make DESTDIR=%{buildroot} install

%clean
%{__rm} -rf %{buildroot}

%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