File python-notify.spec of Package python-notify
# Copyright (c) 2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de
# Packmangroup: Libraries
# Packmanpackagename: python-notify
# Packman: Toni Graffy
# norootforbuild
%define pypkgname pynotify
Name: python-notify
Version: 0.1.0
Release: 0.pm.2
Summary: Python bindings for libnotify
Group: Development/Languages/Python
License: LGPL
URL: http://www.galago-project.org/specs/notification
Source0: http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.gz
Patch0: %{name}-attach_to_status_icon.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
BuildRequires: dbus-1-devel
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.4.0
Requires: notification-daemon
%description
Python bindings for libnotify.
Author: Christian Hammond <chipx86@chipx86.com>
%debug_package
%prep
%setup -q -n notify-python-%{version}
%patch
%build
CFLAGS="$RPM_OPT_FLAGS"
PYTHON=%__python
%configure
%__make
%install
%makeinstall
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING INSTALL 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 Jan 03 2007 Toni Graffy <toni@links2linux.de> - 0.1.0-0.pm.2
- initial build 0.1.0