9397
|
1 |
#
|
|
2 |
# spec file for package pygtk2
|
|
3 |
#
|
11391
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
9397
|
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: laca
|
|
9 |
#
|
|
10 |
Name: pygtk2
|
|
11 |
License: LGPL
|
|
12 |
Group: System/Library
|
11391
|
13 |
Version: 2.12.1
|
9397
|
14 |
Release: 2
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Python bindings for GTK+
|
10524
|
18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.12/pygtk-%{version}.tar.bz2
|
9397
|
19 |
# date:2005-10-27 owner:dcarbery type:feature bugzilla:385131
|
|
20 |
Patch1: pygtk2-01-uninstalled.pc.diff
|
11102
|
21 |
# The numpy integration patch is based on the pygtk_r2808_patch_for_numpy found
|
|
22 |
# at this URL - http://www.scipy.org/Porting_to_NumPy.
|
11103
|
23 |
# date:2007-10-22 owner:yippi type:bug bugzilla:397544 bugster:6602536
|
11102
|
24 |
Patch2: pygtk2-02-numpy-r2808.diff
|
9397
|
25 |
URL: http://www.gnome.org
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Docdir: %{_defaultdocdir}/doc
|
|
28 |
Autoreqprov: on
|
|
29 |
|
|
30 |
%define libglade_version 2.4.0
|
|
31 |
%define glib2_version 2.6.0
|
|
32 |
%define gtk2_version 2.6.0
|
|
33 |
%define atk_version 1.8.0
|
|
34 |
%define pango_version 1.8.0
|
|
35 |
%define python_version 2.4
|
|
36 |
|
|
37 |
Requires: libglade >= %{libglade_version}
|
|
38 |
Requires: gtk2 >= %{gtk2_version}
|
|
39 |
Requires: glib2 >= %{glib2_version}
|
|
40 |
Requires: atk >= %{atk_version}
|
|
41 |
Requires: pango >= %{pango_version}
|
|
42 |
Requires: python >= %{python_version}
|
|
43 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
44 |
BuildRequires: libglade-devel >= %{libglade_version}
|
|
45 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
46 |
BuildRequires: atk-devel >= %{atk_version}
|
|
47 |
BuildRequires: pango-devel >= %{pango_version}
|
|
48 |
|
|
49 |
%description
|
|
50 |
PyGTK is an extension module for python that gives you access to the GTK+
|
|
51 |
widget set. Just about anything you can write in C with GTK+ you can write
|
|
52 |
in python with PyGTK (within reason), but with all the benefits of python.
|
|
53 |
|
|
54 |
%package devel
|
|
55 |
Summary: files needed to build wrappers for GTK+ addon libraries
|
|
56 |
Group: Development/Languages
|
|
57 |
Requires: %{name} = %{version}
|
|
58 |
|
|
59 |
%description devel
|
|
60 |
This package contains files required to build wrappers for GTK+ addon
|
|
61 |
libraries so that they interoperate with pygtk.
|
|
62 |
|
|
63 |
%prep
|
|
64 |
%setup -q -n pygtk-%{version}
|
|
65 |
%patch1 -p1
|
11102
|
66 |
%patch2 -p1
|
9397
|
67 |
|
|
68 |
%build
|
11102
|
69 |
export CFLAGS="$CFLAGS -I/usr/lib/python2.4/vendor-packages/numpy/core/include"
|
9397
|
70 |
autoconf
|
|
71 |
./configure --prefix=%{_prefix} \
|
|
72 |
--sysconfdir=%{_sysconfdir}
|
|
73 |
make
|
|
74 |
|
|
75 |
%install
|
|
76 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
77 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
78 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
79 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
80 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
81 |
|
|
82 |
%clean
|
|
83 |
rm -rf $RPM_BUILD_ROOT
|
|
84 |
|
|
85 |
%post
|
|
86 |
|
|
87 |
%postun
|
|
88 |
|
|
89 |
%files
|
|
90 |
%defattr(-, root, root)
|
|
91 |
%{_libdir}/python?.?/vendor-packages/*
|
|
92 |
|
|
93 |
%files devel
|
|
94 |
%defattr(-, root, root)
|
|
95 |
%doc examples
|
|
96 |
%doc AUTHORS NEWS README MAPPING ChangeLog
|
|
97 |
%{_bindir}/*
|
|
98 |
%{_includedir}/*
|
|
99 |
%{_libdir}/pkgconfig/*
|
|
100 |
%{_libdir}/pygtk/*
|
|
101 |
%{_datadir}/pygtk/*
|
|
102 |
|
|
103 |
%changelog -n pygtk2
|
11391
|
104 |
* Fri Jan 04 2008 - [email protected]
|
|
105 |
- Bump to 2.12.1.
|
11102
|
106 |
* Mon Oct 22 2007 - [email protected]
|
|
107 |
- Add patch so pygtk builds against numpy to add numeric processing extension
|
|
108 |
support.
|
10524
|
109 |
* Wed Sep 19 2007 - [email protected]
|
|
110 |
- Bump to 2.12.0.
|
10379
|
111 |
* Mon Aug 27 2007 - [email protected]
|
|
112 |
- Bump to 2.11.0.
|
10178
|
113 |
* Wed Jul 11 2007 - [email protected]
|
|
114 |
- Bump to 2.10.5. Remove obsolete patch, 02-gtk-tooltips.
|
10109
|
115 |
* Fri Jun 22 2007 - [email protected]
|
10111
|
116 |
- Add patch 02-gtk-tooltips to fix bugzilla 449318 (pygtk not in sync with gtk+)
|
9397
|
117 |
* Tue Feb 6 2007 - [email protected]
|
|
118 |
- Bump to 2.10.4.
|
|
119 |
* Thu Dec 14 2006 - [email protected]
|
|
120 |
- Remove patch 02-pygobject-xsl-dir as nothing is built in the docs dir.
|
|
121 |
* Wed Oct 04 2006 - [email protected]
|
|
122 |
- Bump to 2.10.3.
|
|
123 |
* Tue Oct 03 2006 - [email protected]
|
|
124 |
- Bump to 2.10.2.
|
|
125 |
* Sat Sep 9 2006 - [email protected]
|
|
126 |
- re-enable optimisation as the compiler bug that prevented it has been fixed
|
|
127 |
* Tue Sep 05 2006 - [email protected]
|
|
128 |
- Bump to 2.10.1.
|
|
129 |
* Mon Aug 28 2006 - [email protected]
|
|
130 |
- Bump to 2.9.6 really
|
|
131 |
* Tue Aug 08 2006 - [email protected]
|
|
132 |
- Bump to 2.9.6.
|
|
133 |
* Tue Aug 08 2006 - [email protected]
|
|
134 |
- Bump to 2.9.5.
|
|
135 |
* Mon Aug 07 2006 - [email protected]
|
|
136 |
- Bump to 2.9.4.
|
|
137 |
* Fri Jul 21 2006 - [email protected]
|
|
138 |
- Bump to 2.9.3.
|
|
139 |
* Tue Apr 4 2006 - [email protected]
|
|
140 |
- Bump to 2.9.0.
|
|
141 |
* Fri Mar 31 2006 - [email protected]
|
|
142 |
- Bump to 2.8.5.
|
|
143 |
* Wed Feb 15 2006 - [email protected]
|
|
144 |
- Disable optimizations on x86 to workaround compiler bug 6382078.
|
|
145 |
* Sun Jan 15 2006 - [email protected]
|
|
146 |
- Bump to 2.8.4
|
|
147 |
* Tue Dec 20 2005 - [email protected]
|
|
148 |
- Bump to 2.8.2
|
|
149 |
* Thu Oct 27 2005 - [email protected]
|
|
150 |
- add patch uninstalled.pc.diff so the pygtk can be included in the same
|
|
151 |
Solaris pkg as gnome-python
|
|
152 |
- move from site-packages to vendor-packages
|
|
153 |
* Tue Sep 27 2005 - [email protected]
|
|
154 |
- Bump to 2.7.4.
|
|
155 |
* Thu Aug 25 2005 [email protected]
|
|
156 |
- Adjusted the defattr lines to have three parameters, not four.
|
|
157 |
* Tue Aug 16 2005 - [email protected]
|
|
158 |
- Bump to 2.7.3.
|
|
159 |
* Mon Aug 04 2003 - [email protected]
|
|
160 |
- Initial Sun release
|