9a03d42
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
9a03d42
9a03d42
Name:           notify-python
9a03d42
Version:        0.1.0
d045bed
Release: 4%{?dist}
9a03d42
Summary:        Python bindings for libnotify
9a03d42
9a03d42
Group:          Development/Languages
9a03d42
License:        LGPL
9a03d42
URL:            http://www.galago-project.org/specs/notification
9a03d42
Source0:        http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.gz
82d18db
Patch0:         %{name}-%{version}-attach_to_status_icon.patch
9a03d42
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9a03d42
9a03d42
BuildRequires:  python-devel, pkgconfig, libnotify-devel, pygtk2-devel
9a03d42
BuildRequires:  gtk2-devel, dbus-devel, dbus-glib-devel
9a03d42
9a03d42
Requires:   libnotify >= 0.4.0
9a03d42
Requires:   notification-daemon
9a03d42
9a03d42
%define pypkgname pynotify
9a03d42
9a03d42
%description
9a03d42
Python bindings for libnotify
9a03d42
9a03d42
%prep
9a03d42
%setup -q
82d18db
%patch0
9a03d42
9a03d42
%build
9a03d42
CFLAGS="$RPM_OPT_FLAGS"
9a03d42
PYTHON=%{__python}
9a03d42
%configure
9a03d42
make
9a03d42
9a03d42
%install
9a03d42
rm -rf $RPM_BUILD_ROOT
9a03d42
make DESTDIR=$RPM_BUILD_ROOT install
9a03d42
# remove unnecessary pkgconfig file
9a03d42
rm $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/%{name}.pc
9a03d42
# remove unnecessary la file
9a03d42
rm $RPM_BUILD_ROOT/%{python_sitearch}/gtk-2.0/%{pypkgname}/_%{pypkgname}.la
9a03d42
9a03d42
 
9a03d42
%clean
9a03d42
rm -rf $RPM_BUILD_ROOT
9a03d42
9a03d42
%files
9a03d42
%defattr(-,root,root,-)
9a03d42
%doc
9a03d42
%{python_sitearch}/gtk-2.0/%{pypkgname}
9a03d42
%{_datadir}/pygtk/2.0/defs/%{pypkgname}.defs
9a03d42
9a03d42
%changelog
d045bed
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.0-4
d045bed
- rebuild for python 2.5
d045bed
82d18db
* Tue Aug 15 2006 Luke Macken <lmacken@redhat.com> - 0.1.0-3
82d18db
- Add notify-python-0.1.0-attach_to_status_icon.patch to allow the attaching
82d18db
  notifications to status icons.
82d18db
9a03d42
* Thu Jul 20 2006 John Dennis <jdennis@redhat.com> - 0.1.0-2
9a03d42
- change use of python_sitelib to python_sitearch, add BuildRequires
9a03d42
9a03d42
* Wed Jul 19 2006 John Dennis <jdennis@redhat.com> - 0.1.0-1
9a03d42
- Initial build
9a03d42