author | dc144907 |
Tue, 04 Apr 2006 16:08:39 +0000 | |
changeset 7004 | d9f3eebc93fe |
parent 6989 | e77ba6f6474f |
child 7706 | 2582c8fc8329 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package pygtk2 |
|
3 |
# |
|
4 |
# Copyright (c) 2005 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 |
Name: pygtk2 |
|
9 |
License: LGPL |
|
10 |
Group: System/Library |
|
7004 | 11 |
Version: 2.9.0 |
5943 | 12 |
Release: 2 |
5518 | 13 |
Distribution: Java Desktop System |
14 |
Vendor: Sun Microsystems, Inc. |
|
15 |
Summary: Python bindings for GTK+ |
|
7004 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.9/pygtk-%{version}.tar.bz2 |
6199 | 17 |
Patch1: pygtk2-01-uninstalled.pc.diff |
5518 | 18 |
URL: http://www.gnome.org |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Docdir: %{_defaultdocdir}/doc |
|
21 |
Autoreqprov: on |
|
22 |
||
23 |
%define libglade_version 2.4.0 |
|
24 |
%define glib2_version 2.6.0 |
|
25 |
%define gtk2_version 2.6.0 |
|
26 |
%define atk_version 1.8.0 |
|
27 |
%define pango_version 1.8.0 |
|
6193 | 28 |
%define python_version 2.4 |
5518 | 29 |
|
30 |
Requires: libglade >= %{libglade_version} |
|
31 |
Requires: gtk2 >= %{gtk2_version} |
|
32 |
Requires: glib2 >= %{glib2_version} |
|
33 |
Requires: atk >= %{atk_version} |
|
34 |
Requires: pango >= %{pango_version} |
|
35 |
Requires: python >= %{python_version} |
|
36 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
37 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
38 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
39 |
BuildRequires: atk-devel >= %{atk_version} |
|
40 |
BuildRequires: pango-devel >= %{pango_version} |
|
41 |
||
42 |
%description |
|
43 |
PyGTK is an extension module for python that gives you access to the GTK+ |
|
44 |
widget set. Just about anything you can write in C with GTK+ you can write |
|
45 |
in python with PyGTK (within reason), but with all the benefits of python. |
|
46 |
||
47 |
%package devel |
|
48 |
Summary: files needed to build wrappers for GTK+ addon libraries |
|
49 |
Group: Development/Languages |
|
50 |
Requires: %{name} = %{version} |
|
51 |
||
52 |
%description devel |
|
53 |
This package contains files required to build wrappers for GTK+ addon |
|
54 |
libraries so that they interoperate with pygtk. |
|
55 |
||
56 |
%prep |
|
57 |
%setup -q -n pygtk-%{version} |
|
6199 | 58 |
%patch1 -p1 |
5518 | 59 |
|
60 |
%build |
|
6199 | 61 |
autoconf |
6923 | 62 |
%ifos solaris |
6770 | 63 |
# Disable optimizations on x86 to workaround compiler bug 6382078. |
64 |
%ifarch sparc |
|
5518 | 65 |
CFLAGS="$RPM_OPT_FLAGS" \ |
6770 | 66 |
%else |
67 |
CFLAGS="$RPM_OPT_FLAGS -xO0" \ |
|
68 |
%endif |
|
6923 | 69 |
%endif |
5518 | 70 |
./configure --prefix=%{_prefix} \ |
71 |
--sysconfdir=%{_sysconfdir} |
|
72 |
make |
|
73 |
||
74 |
%install |
|
6193 | 75 |
make install DESTDIR=$RPM_BUILD_ROOT \ |
76 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
77 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
5518 | 78 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
79 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' |
|
80 |
||
81 |
%clean |
|
82 |
rm -rf $RPM_BUILD_ROOT |
|
83 |
||
84 |
%post |
|
85 |
||
86 |
%postun |
|
87 |
||
88 |
%files |
|
5943 | 89 |
%defattr(-, root, root) |
6923 | 90 |
%{_libdir}/python?.?/vendor-packages/* |
5518 | 91 |
|
92 |
%files devel |
|
5943 | 93 |
%defattr(-, root, root) |
94 |
%doc examples |
|
95 |
%doc AUTHORS NEWS README MAPPING ChangeLog |
|
6923 | 96 |
%{_bindir}/* |
97 |
%{_includedir}/* |
|
98 |
%{_libdir}/pkgconfig/* |
|
99 |
%{_libdir}/pygtk/* |
|
100 |
%{_datadir}/pygtk/* |
|
5518 | 101 |
|
102 |
%changelog -n pygtk2 |
|
7004 | 103 |
* Tue Apr 4 2006 - [email protected] |
104 |
- Bump to 2.9.0. |
|
105 |
||
6989 | 106 |
* Fri Mar 31 2006 - [email protected] |
107 |
- Bump to 2.8.5. |
|
108 |
||
6770 | 109 |
* Wed Feb 15 2006 - [email protected] |
110 |
- Disable optimizations on x86 to workaround compiler bug 6382078. |
|
111 |
||
6564
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6427
diff
changeset
|
112 |
* Sun Jan 15 2006 - [email protected] |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6427
diff
changeset
|
113 |
- Bump to 2.8.4 |
480b9993069a
* control-center.spec, eog.spec, gcalctool.spec, gdm.spec, gedit.spec,
dc144907
parents:
6427
diff
changeset
|
114 |
|
6427
0e3b94fe124d
pyorbit.spec: Bump to 2.13.1; gnome-python: Bump to 2.12.2; pygtk2.spec: Bump to 2.8.2
dermotm
parents:
6200
diff
changeset
|
115 |
* Tue Dec 20 2005 - [email protected] |
0e3b94fe124d
pyorbit.spec: Bump to 2.13.1; gnome-python: Bump to 2.12.2; pygtk2.spec: Bump to 2.8.2
dermotm
parents:
6200
diff
changeset
|
116 |
- Bump to 2.8.2 |
0e3b94fe124d
pyorbit.spec: Bump to 2.13.1; gnome-python: Bump to 2.12.2; pygtk2.spec: Bump to 2.8.2
dermotm
parents:
6200
diff
changeset
|
117 |
|
6199 | 118 |
* Thu Oct 27 2005 - [email protected] |
119 |
- add patch uninstalled.pc.diff so the pygtk can be included in the same |
|
120 |
Solaris pkg as gnome-python |
|
6200 | 121 |
- move from site-packages to vendor-packages |
6199 | 122 |
|
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5943
diff
changeset
|
123 |
* Tue Sep 27 2005 - [email protected] |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5943
diff
changeset
|
124 |
- Bump to 2.7.4. |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5943
diff
changeset
|
125 |
|
5598
c6ff0993194c
Adjusted the defattr lines to have three parameters, not four.
richb
parents:
5548
diff
changeset
|
126 |
* Thu Aug 25 2005 [email protected] |
c6ff0993194c
Adjusted the defattr lines to have three parameters, not four.
richb
parents:
5548
diff
changeset
|
127 |
- Adjusted the defattr lines to have three parameters, not four. |
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5943
diff
changeset
|
128 |
|
5548
ddbd17ae3838
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
129 |
* Tue Aug 16 2005 - [email protected] |
ddbd17ae3838
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
130 |
- Bump to 2.7.3. |
ddbd17ae3838
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
131 |
|
5518 | 132 |
* Mon Aug 04 2003 - [email protected] |
133 |
- Initial Sun release |