| 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
|---|
| 2 | |
|---|
| 3 | Summary: Python bindings for libnotify |
|---|
| 4 | Summary(ja): libnotify の Python バインディング |
|---|
| 5 | |
|---|
| 6 | Name: notify-python |
|---|
| 7 | Version: 0.1.1 |
|---|
| 8 | Release: 5%{?_dist_release} |
|---|
| 9 | |
|---|
| 10 | Group: Development/Languages |
|---|
| 11 | # No version specified, just COPYING. |
|---|
| 12 | License: LGPLv2+ |
|---|
| 13 | URL: http://www.galago-project.org/specs/notification |
|---|
| 14 | Source0: http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.gz |
|---|
| 15 | Patch0: libnotify07.patch |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 18 | |
|---|
| 19 | BuildRequires: python-devel, pkgconfig, libnotify-devel, pygtk2-devel |
|---|
| 20 | BuildRequires: gtk2-devel, dbus-devel, dbus-glib-devel |
|---|
| 21 | |
|---|
| 22 | Requires: libnotify |
|---|
| 23 | Requires: notification-daemon |
|---|
| 24 | |
|---|
| 25 | Vendor: Project Vine |
|---|
| 26 | Distribution: Vine Linux |
|---|
| 27 | |
|---|
| 28 | %define pypkgname pynotify |
|---|
| 29 | |
|---|
| 30 | %description |
|---|
| 31 | Python bindings for libnotify |
|---|
| 32 | |
|---|
| 33 | %prep |
|---|
| 34 | %setup -q |
|---|
| 35 | %patch0 -p1 -b .libnotify07 |
|---|
| 36 | |
|---|
| 37 | # WARNING - we touch src/pynotify.override in build because upstream did not rebuild pynotify.c |
|---|
| 38 | # from the input definitions, this forces pynotify.c to be regenerated, at some point this can be removed |
|---|
| 39 | |
|---|
| 40 | %build |
|---|
| 41 | CFLAGS="$RPM_OPT_FLAGS" |
|---|
| 42 | PYTHON=%{__python} |
|---|
| 43 | %configure |
|---|
| 44 | touch src/pynotify.override |
|---|
| 45 | make |
|---|
| 46 | |
|---|
| 47 | %install |
|---|
| 48 | rm -rf $RPM_BUILD_ROOT |
|---|
| 49 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 50 | # remove unnecessary la file |
|---|
| 51 | rm $RPM_BUILD_ROOT/%{python_sitearch}/gtk-2.0/%{pypkgname}/_%{pypkgname}.la |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | %clean |
|---|
| 55 | rm -rf $RPM_BUILD_ROOT |
|---|
| 56 | |
|---|
| 57 | %files |
|---|
| 58 | %defattr(-,root,root,-) |
|---|
| 59 | %doc |
|---|
| 60 | %{python_sitearch}/gtk-2.0/%{pypkgname} |
|---|
| 61 | %{_datadir}/pygtk/2.0/defs/%{pypkgname}.defs |
|---|
| 62 | %{_libdir}/pkgconfig/%{name}.pc |
|---|
| 63 | |
|---|
| 64 | %changelog |
|---|
| 65 | * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.1-5 |
|---|
| 66 | - rebuild with python-2.7.2 |
|---|
| 67 | |
|---|
| 68 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.1-4 |
|---|
| 69 | - rebuild with libnotify-0.7.2 |
|---|
| 70 | - add Patch0 (libnotify07.patch) from fedora |
|---|
| 71 | |
|---|
| 72 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.1-3 |
|---|
| 73 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 74 | |
|---|
| 75 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.1-2 |
|---|
| 76 | - rebuild with python-2.6 |
|---|
| 77 | |
|---|
| 78 | * Mon Nov 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.1-1 |
|---|
| 79 | - initial build for Vine Linux |
|---|
| 80 | |
|---|
| 81 | * Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.1-4 |
|---|
| 82 | - fix license tag |
|---|
| 83 | |
|---|
| 84 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.1-3 |
|---|
| 85 | - Autorebuild for GCC 4.3 |
|---|
| 86 | |
|---|
| 87 | * Fri Jan 4 2008 <jdennis@redhat.com> - 0.1.1-2 |
|---|
| 88 | - Resolves bug# 427499: attach_to_status_icon not created |
|---|
| 89 | force regeneration of pynotify.c |
|---|
| 90 | |
|---|
| 91 | * Wed Jan 2 2008 John Dennis <jdennis@redhat.com> - 0.1.1-1 |
|---|
| 92 | - upgrade to current upstream |
|---|
| 93 | - no longer remove package config file (notify-python.pc), resolves bug #427001 |
|---|
| 94 | |
|---|
| 95 | * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.0-4 |
|---|
| 96 | - rebuild for python 2.5 |
|---|
| 97 | |
|---|
| 98 | * Tue Aug 15 2006 Luke Macken <lmacken@redhat.com> - 0.1.0-3 |
|---|
| 99 | - Add notify-python-0.1.0-attach_to_status_icon.patch to allow the attaching |
|---|
| 100 | notifications to status icons. |
|---|
| 101 | |
|---|
| 102 | * Thu Jul 20 2006 John Dennis <jdennis@redhat.com> - 0.1.0-2 |
|---|
| 103 | - change use of python_sitelib to python_sitearch, add BuildRequires |
|---|
| 104 | |
|---|
| 105 | * Wed Jul 19 2006 John Dennis <jdennis@redhat.com> - 0.1.0-1 |
|---|
| 106 | - Initial build |
|---|
| 107 | |
|---|