File python-notify.spec of Package python-notify

#
# spec file for package python-notify (Version 0.1.1)
#
# Copyright (c) 2009 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:        5
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:  fdupes
BuildRequires:  libnotify-devel
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
%py_requires

%description
Python bindings for libnotify.



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

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

%build
%configure
# We touch src/pynotify.override in build because upstream did not rebuild
# pynotify.c from the input definitions. This forces pynotify.c to be
# regenerated. This is needed to have Notification.attach_to_status_icon
touch src/pynotify.override
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%fdupes $RPM_BUILD_ROOT/%{py_sitedir}

%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
* Thu Mar 12 2009 vuntz@novell.com
- Make sure we have the complete bindings: pynotify.c was not
  regenerated for the tarball, so it's not up-to-date, and we have
  to touch a file to have it regenerated.
- Remove checks for old version of openSUSE.
- Remove unneeded BuildRequires: dbus-1-glib-devel, gtk2-devel,
  pkgconfig.
- Remove libnotify from Requires: it will be added automatically.
- Remove notification-daemon from Requires: it's not the job of the
  binding to say so (libnotify already does it).
- Remove definition of CFLAGS and PYTHON.
- Use fdupes.
* 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