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: 6%{?_dist_release} |
---|
9 | |
---|
10 | Group: System Environment/Libraries |
---|
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 | * Mon Jan 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.1.1-6 |
---|
66 | - moved main package to System Environment/Libraries Group |
---|
67 | |
---|
68 | * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.1-5 |
---|
69 | - rebuild with python-2.7.2 |
---|
70 | |
---|
71 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.1-4 |
---|
72 | - rebuild with libnotify-0.7.2 |
---|
73 | - add Patch0 (libnotify07.patch) from fedora |
---|
74 | |
---|
75 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.1-3 |
---|
76 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
77 | |
---|
78 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.1-2 |
---|
79 | - rebuild with python-2.6 |
---|
80 | |
---|
81 | * Mon Nov 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.1-1 |
---|
82 | - initial build for Vine Linux |
---|
83 | |
---|
84 | * Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.1-4 |
---|
85 | - fix license tag |
---|
86 | |
---|
87 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.1-3 |
---|
88 | - Autorebuild for GCC 4.3 |
---|
89 | |
---|
90 | * Fri Jan 4 2008 <jdennis@redhat.com> - 0.1.1-2 |
---|
91 | - Resolves bug# 427499: attach_to_status_icon not created |
---|
92 | force regeneration of pynotify.c |
---|
93 | |
---|
94 | * Wed Jan 2 2008 John Dennis <jdennis@redhat.com> - 0.1.1-1 |
---|
95 | - upgrade to current upstream |
---|
96 | - no longer remove package config file (notify-python.pc), resolves bug #427001 |
---|
97 | |
---|
98 | * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.0-4 |
---|
99 | - rebuild for python 2.5 |
---|
100 | |
---|
101 | * Tue Aug 15 2006 Luke Macken <lmacken@redhat.com> - 0.1.0-3 |
---|
102 | - Add notify-python-0.1.0-attach_to_status_icon.patch to allow the attaching |
---|
103 | notifications to status icons. |
---|
104 | |
---|
105 | * Thu Jul 20 2006 John Dennis <jdennis@redhat.com> - 0.1.0-2 |
---|
106 | - change use of python_sitelib to python_sitearch, add BuildRequires |
---|
107 | |
---|
108 | * Wed Jul 19 2006 John Dennis <jdennis@redhat.com> - 0.1.0-1 |
---|
109 | - Initial build |
---|
110 | |
---|