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