notify-python-vl.spec 3.3 KB

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