author | hem |
Mon, 08 Feb 2010 06:46:00 +0000 | |
branch | opensolaris-2009-06 |
changeset 14354 | c3d6244280dc |
parent 14202 | fc80c50f84e9 |
permissions | -rw-r--r-- |
11673 | 1 |
# |
2 |
# spec file for package SUNWgnome-python-extras |
|
3 |
# |
|
14202 | 4 |
# Copyright 2009 Sun Microsystems, Inc. |
11673 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
# Owner: dkenny |
|
9 |
# |
|
10 |
||
11 |
%include Solaris.inc |
|
12 |
Name: SUNWgnome-python-extras |
|
13 |
Summary: Supplemental Python bindings for GNOME |
|
14 |
URL: http://ftp.gnome.org/pub/GNOME/sources/gnome-python-extras |
|
15 |
Version: 2.19.1 |
|
16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-python-extras/2.19/gnome-python-extras-%{version}.tar.bz2 |
|
17 |
# date:2008-02-18 owner:dkenny type:feature |
|
18 |
Patch1: gnome-python-extras-01-libgksu-missing-funcs.diff |
|
12545 | 19 |
# Build with Firefox3 when "--with-ff3" is specified |
20 |
%if %option_with_ff3 |
|
12799 | 21 |
# date:2008-05-29 owner:evan type:bug bugzilla:532856 |
12545 | 22 |
Patch2: gnome-python-extras-02-using-firefox3.diff |
23 |
%endif |
|
11673 | 24 |
SUNW_BaseDir: %{_basedir} |
12114 | 25 |
SUNW_Copyright: %{name}.copyright |
11673 | 26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
27 |
Requires: SUNWPython |
|
11716 | 28 |
Requires: SUNWgnome-python-libs |
12333 | 29 |
Requires: SUNWfirefox |
30 |
Requires: SUNWgksu |
|
11716 | 31 |
BuildRequires: SUNWgnome-python-libs-devel |
12333 | 32 |
BuildRequires: SUNWfirefox-devel |
33 |
BuildRequires: SUNWgksu-devel |
|
14173 | 34 |
BuildRequires: SUNWpython-setuptools |
11673 | 35 |
|
36 |
%include default-depend.inc |
|
37 |
||
38 |
%define pythonver 2.4 |
|
39 |
||
40 |
%prep |
|
41 |
%setup -q -n gnome-python-extras-%version |
|
42 |
%patch1 -p1 |
|
12545 | 43 |
%if %option_with_ff3 |
44 |
%patch2 -p1 |
|
45 |
%endif |
|
11673 | 46 |
|
47 |
%build |
|
14202 | 48 |
export PYTHON=/usr/bin/python%{pythonver} |
49 |
export PKG_CONFIG_PATH=/usr/lib/python%{pythonver}/pkgconfig |
|
12545 | 50 |
autoconf |
11673 | 51 |
./configure --prefix=%{_prefix} |
52 |
make |
|
53 |
||
54 |
%install |
|
55 |
rm -rf $RPM_BUILD_ROOT |
|
56 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
57 |
||
58 |
# move to vendor-packages |
|
59 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages |
|
60 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \ |
|
61 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/ |
|
62 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages |
|
63 |
||
64 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
65 |
||
66 |
%clean |
|
67 |
rm -rf $RPM_BUILD_ROOT |
|
68 |
||
69 |
%files |
|
70 |
%defattr (-, root, bin) |
|
71 |
%dir %attr (0755, root, bin) %{_libdir} |
|
72 |
%{_libdir}/python%{pythonver}/vendor-packages/gtk-2.0/* |
|
73 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
74 |
%{_libdir}/pkgconfig/* |
|
75 |
%dir %attr (0755, root, sys) %{_datadir} |
|
76 |
%{_datadir}/pygtk/* |
|
77 |
%{_datadir}/gtk-doc/* |
|
13573
341105fe187e
* SUNWgnome-python-extras.spec: Add %doc to %files
mattman
parents:
12799
diff
changeset
|
78 |
%doc AUTHORS COPYING README |
341105fe187e
* SUNWgnome-python-extras.spec: Add %doc to %files
mattman
parents:
12799
diff
changeset
|
79 |
%doc(bzip2) COPYING.GPL COPYING.LGPL ChangeLog NEWS |
341105fe187e
* SUNWgnome-python-extras.spec: Add %doc to %files
mattman
parents:
12799
diff
changeset
|
80 |
%dir %attr (0755, root, other) %{_datadir}/doc |
11673 | 81 |
|
82 |
%changelog |
|
14202 | 83 |
* Tue Feb 17 2009 - [email protected] |
84 |
- set PYTHON and PKG_CONFIG_PATH so the correct python version and |
|
85 |
dependencies are picked up |
|
13573
341105fe187e
* SUNWgnome-python-extras.spec: Add %doc to %files
mattman
parents:
12799
diff
changeset
|
86 |
* Fri Sep 12 2008 - [email protected] |
341105fe187e
* SUNWgnome-python-extras.spec: Add %doc to %files
mattman
parents:
12799
diff
changeset
|
87 |
- Update copyright |
12545 | 88 |
* Fri May 30 2008 - [email protected] |
89 |
- Add option "--with-ff3" to enable building with Firefox3 |
|
90 |
- Add patch gnome-python-extras-02-using-firefox3.diff |
|
12333 | 91 |
* Wed May 21 2008 - [email protected] |
92 |
- Add Build/Requires: SUNWfirefox/-devel and SUNWgksu/-devel after |
|
93 |
check-deps.pl run. |
|
11673 | 94 |
* Wed Feb 20 2007 - Darren Kenny <[email protected]> |
95 |
- Move from spec-files-other since it's GNOME related. |
|
96 |
* Mon Feb 18 2007 - Darren Kenny <[email protected]> |
|
97 |
- Import into svn.opensolaris.org/spec-files-other |
|
98 |
* Tue Jul 10 2007 - Brian Cameron <[email protected]> |
|
99 |
- Bump to 2.19.1 |
|
100 |
* Fri Feb 9 2007 - Irene Huang <[email protected]> |
|
101 |
- created |