18110
|
1 |
#
|
|
2 |
# spec file for package notify-python
|
|
3 |
#
|
|
4 |
# Copyright 2009 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner jedy
|
|
9 |
#
|
|
10 |
|
18269
|
11 |
%{?!pythonver:%define pythonver 2.6}
|
18110
|
12 |
|
|
13 |
%define OSR 9207:0.x
|
|
14 |
|
|
15 |
Name: notify-python
|
|
16 |
Summary: Python bindings for libnotify
|
|
17 |
Vendor: Galago
|
|
18 |
URL: http://www.galago-project.org/
|
|
19 |
Version: 0.1.1
|
|
20 |
License: LGPL v2.1
|
|
21 |
Source: http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.bz2
|
|
22 |
SUNW_BaseDir: %{_basedir}
|
|
23 |
SUNW_Copyright: %{name}.copyright
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
|
|
26 |
%prep
|
|
27 |
%setup -q -n notify-python-%version
|
|
28 |
|
|
29 |
%build
|
|
30 |
export PYTHON=/usr/bin/python%{pythonver}
|
|
31 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
32 |
|
|
33 |
autoheader
|
|
34 |
aclocal $ACLOCAL_FLAGS
|
|
35 |
autoconf
|
|
36 |
automake -a -c -f
|
|
37 |
./configure --prefix=%{_prefix}
|
|
38 |
|
|
39 |
# Refer to http://trac.galago-project.org/ticket/121 for the reason to remove
|
|
40 |
# the file
|
|
41 |
rm src/pynotify.c
|
|
42 |
make
|
|
43 |
|
|
44 |
%install
|
|
45 |
rm -rf $RPM_BUILD_ROOT
|
|
46 |
# Do a make clean first as the tarball contains out dated generated code
|
|
47 |
# see last comment in http://trac.galago-project.org/ticket/121
|
|
48 |
make clean
|
|
49 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
50 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
51 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
52 |
|
|
53 |
# move to vendor-packages
|
|
54 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
55 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
56 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
57 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
58 |
|
|
59 |
%clean
|
|
60 |
rm -rf $RPM_BUILD_ROOT
|
|
61 |
|
|
62 |
%files
|
|
63 |
%defattr (-, root, bin)
|
|
64 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
65 |
%{_libdir}/python%{pythonver}/vendor-packages/gtk-2.0/pynotify
|
|
66 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
67 |
%{_datadir}/pygtk
|
|
68 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
69 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
70 |
%{_libdir}/pkgconfig/*
|
|
71 |
|
|
72 |
%changelog
|
|
73 |
* Mon Feb 16 2009 - [email protected]
|
|
74 |
- Remove src/pynotify.c before building.
|
|
75 |
* Thu Feb 12 2009 - [email protected]
|
|
76 |
- Split from SUNWpython-notify.spec file.
|
|
77 |
* Wed Onv 05 2008 - [email protected]
|
|
78 |
- Update license.
|
|
79 |
* Tue Sep 16 2008 - [email protected]
|
|
80 |
- Add copyright files.
|
|
81 |
* Thu Jul 17 2008 - [email protected]
|
|
82 |
- Add default file attribute for devel pkg to fix the incorrect attribute issue
|
|
83 |
* Mon Jun 30 2008 - [email protected]
|
|
84 |
- Rename to SUNWpython-notify
|
|
85 |
* Wed Jun 25 2008 - [email protected]
|
|
86 |
- Moved from spec-files-extra
|
|
87 |
* Sat Apr 12 2008 - [email protected]
|
|
88 |
- created
|