File python-notify.spec of Package python-notify

#
# spec file for package python-notify (Version 0.1.1)
#
# Copyright (c) 2008 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

%define pypkgname pynotify

Name:           python-notify
Version:        0.1.1
Release:        2
Summary:        Python bindings for libnotify
Group:          Development/Languages/Python
License:        LGPL v2.1 or later
Url:            http://www.galago-project.org/specs/notification
Source:         http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gtk2-devel
BuildRequires:  pkgconfig
BuildRequires:  libnotify-devel >= 0.4.0
BuildRequires:  python-devel
%if %suse_version >= 1020
BuildRequires:  python-gtk-devel
%else
BuildRequires:  python-gtk
%endif
Requires:       libnotify >= 0.3.0
Requires:       notification-daemon
%py_requires

%description
Python bindings for libnotify.



Authors:
--------
    Christian Hammond <chipx86@chipx86.com>

%prep
%setup -q -n "notify-python-%{version}"

%build
CFLAGS="%{optflags}" \
PYTHON="%__python" \
%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

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

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS
%dir %{py_sitedir}/gtk-2.0/%{pypkgname}
%{py_sitedir}/gtk-2.0/%{pypkgname}/*
%{_datadir}/pygtk/2.0/defs/%{pypkgname}.defs
%{_libdir}/pkgconfig/notify-python.pc

%changelog
* Wed Sep 10 2008 vuntz@suse.de
- Push package done by Pascal Bleser <guru@unixtech.be> in
  GNOME:Factory to Factory. It's required by system-config-printer.
openSUSE Build Service is sponsored by