author | davelam |
Tue, 26 Aug 2008 08:47:51 +0000 | |
changeset 13281 | a7df4f788b3a |
parent 13099 | 4193ae8faf02 |
child 13558 | 25cd6c7be979 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package pygobject |
|
3 |
# |
|
11392 | 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: pygobject |
|
11 |
License: LGPL |
|
12 |
Group: System/Library |
|
13099 | 13 |
Version: 2.15.2 |
9397 | 14 |
Release: 2 |
15 |
Distribution: Java Desktop System |
|
16 |
Vendor: Sun Microsystems, Inc. |
|
17 |
Summary: Python bindings for GObject |
|
12818 | 18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.15/pygobject-%{version}.tar.bz2 |
13281
a7df4f788b3a
2008-08-26 Laszlo (Laca) Peter <[email protected]>
davelam
parents:
13099
diff
changeset
|
19 |
# owner:laca date:2008-08-26 type:bug bugzilla:???? |
a7df4f788b3a
2008-08-26 Laszlo (Laca) Peter <[email protected]>
davelam
parents:
13099
diff
changeset
|
20 |
Patch1: pygobject-01-uninstalled-pc.diff |
9397 | 21 |
URL: http://www.gnome.org |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
Docdir: %{_defaultdocdir}/doc |
|
24 |
Autoreqprov: on |
|
25 |
||
26 |
%define libglade_version 2.4.0 |
|
27 |
%define glib2_version 2.6.0 |
|
28 |
%define gtk2_version 2.6.0 |
|
29 |
%define atk_version 1.8.0 |
|
30 |
%define pango_version 1.8.0 |
|
31 |
%define python_version 2.4 |
|
32 |
||
33 |
Requires: libglade >= %{libglade_version} |
|
34 |
Requires: gtk2 >= %{gtk2_version} |
|
35 |
Requires: glib2 >= %{glib2_version} |
|
36 |
Requires: atk >= %{atk_version} |
|
37 |
Requires: pango >= %{pango_version} |
|
38 |
Requires: python >= %{python_version} |
|
39 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
40 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
41 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
42 |
BuildRequires: atk-devel >= %{atk_version} |
|
43 |
BuildRequires: pango-devel >= %{pango_version} |
|
44 |
||
45 |
%description |
|
46 |
PyGObject is an extension module for python that gives you access to GObject |
|
47 |
||
48 |
%package devel |
|
49 |
Summary: files needed to build wrappers for GObject libraries |
|
50 |
Group: Development/Languages |
|
51 |
Requires: %{name} = %{version} |
|
52 |
||
53 |
%description devel |
|
54 |
This package contains files required to build wrappers for GObject |
|
55 |
libraries so that they interoperate with pygobject. |
|
56 |
||
57 |
%prep |
|
58 |
%setup -q -n pygobject-%{version} |
|
13281
a7df4f788b3a
2008-08-26 Laszlo (Laca) Peter <[email protected]>
davelam
parents:
13099
diff
changeset
|
59 |
%patch1 -p1 |
9397 | 60 |
|
61 |
%build |
|
62 |
%ifos solaris |
|
63 |
# Disable optimizations on x86 to workaround compiler bug 6382078. |
|
64 |
%ifarch sparc |
|
65 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
66 |
%else |
|
67 |
CFLAGS="$RPM_OPT_FLAGS -xO0" \ |
|
68 |
%endif |
|
69 |
%endif |
|
10169 | 70 |
# Append -xc99 to fix #error failure in /usr/include/sys/feature_tests.h |
71 |
CFLAGS="$CFLAGS -xc99" |
|
9397 | 72 |
./configure --prefix=%{_prefix} \ |
73 |
--sysconfdir=%{_sysconfdir} |
|
13099 | 74 |
make \ |
75 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
76 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
9397 | 77 |
|
78 |
%install |
|
79 |
make install DESTDIR=$RPM_BUILD_ROOT \ |
|
80 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
81 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages |
|
82 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
83 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' |
|
84 |
||
85 |
%clean |
|
86 |
rm -rf $RPM_BUILD_ROOT |
|
87 |
||
88 |
%post |
|
89 |
||
90 |
%postun |
|
91 |
||
92 |
%files |
|
93 |
%defattr(-, root, root) |
|
94 |
%{_libdir}/python?.?/vendor-packages/* |
|
95 |
||
96 |
%files devel |
|
97 |
%defattr(-, root, root) |
|
98 |
%doc examples |
|
99 |
%doc AUTHORS NEWS README MAPPING ChangeLog |
|
100 |
%{_bindir}/* |
|
101 |
%{_includedir}/* |
|
102 |
%{_libdir}/pkgconfig/* |
|
103 |
%{_libdir}/pygobject/* |
|
104 |
%{_datadir}/pygobject/* |
|
105 |
||
106 |
%changelog -n pygobject |
|
13099 | 107 |
* Mon Aug 11 2008 - [email protected] |
108 |
- Bump to 2.15.2. Remove pyexecdir and pythondir vars from make install as it |
|
109 |
was breaking the build. |
|
110 |
||
12827 | 111 |
* Wed Jul 16 2008 - [email protected] |
112 |
- Bump to 2.15.1. |
|
113 |
||
12818 | 114 |
* Tue Jul 15 2008 - [email protected] |
115 |
- Bump to 2.15.0. Remove upstream patch, 01-pc-file. |
|
116 |
||
12357 | 117 |
* Mon May 26 2008 - [email protected] |
118 |
- Bump to 2.14.2. |
|
119 |
||
11392 | 120 |
* Fri Jan 04 2008 - [email protected] |
121 |
- Bump to 2.14.1. Remove upstream patch, 01-uninst-datadir; rename rest. |
|
122 |
||
10665 | 123 |
* Tue Oct 16 2007 - [email protected] |
124 |
- Add patch, 02-pc-file, to add entries to the pc files to support building |
|
125 |
against the uninstalled module. |
|
126 |
||
10617 | 127 |
* Sun Oct 07 2007 - [email protected] |
128 |
- Add patch, 01-uninst-datadir, to add a 'datadir' entry to the uninstalled pc |
|
129 |
file. |
|
130 |
||
10524 | 131 |
* Wed Sep 19 2007 - [email protected] |
132 |
- Bump to 2.14.0. |
|
133 |
||
10168 | 134 |
* Mon Jul 09 2007 - [email protected] |
135 |
- Bump to 2.13.2. Remove upstream patches, 01-gcc-wall and 02-return-zero. |
|
10169 | 136 |
Remove autofoo calls because configure.ac patches removed. |
137 |
Append -xc99 to CFLAGS to fix #error in /usr/include/sys/feature_tests.h |
|
10168 | 138 |
|
9850 | 139 |
* Wed May 09 2007 - [email protected] |
140 |
- Bump to 2.13.1. Remove upstream patches, 01-uninstalled.pc and 02-void-return. |
|
141 |
Add patches, 01-gcc-wall and 02-return-zero, to fix build issues. |
|
142 |
||
9397 | 143 |
* Mon Nov 27 2006 - [email protected] |
144 |
- Remove reference to pygtk2-02-pygobject-xsl-dir.diff as it has been removed. |
|
145 |
||
146 |
* Mon Nov 27 2006 - [email protected] |
|
147 |
- Bump to 2.12.3. |
|
148 |
||
149 |
* Sat Oct 07 2006 - [email protected] |
|
150 |
- Add aclocal and automake calls. |
|
151 |
||
152 |
* Wed Oct 04 2006 - [email protected] |
|
153 |
- Bump to 2.12.2. |
|
154 |
||
155 |
* Tue Sep 05 2006 - [email protected] |
|
156 |
- Bump to 2.12.1. |
|
157 |
||
158 |
* Mon Aug 28 2006 - [email protected] |
|
159 |
- Bump to 2.11.4. |
|
160 |
||
161 |
* Tue Aug 22 2006 - [email protected] |
|
162 |
- Bump to 2.11.3. |
|
163 |
||
164 |
* Tue Aug 08 2006 - [email protected] |
|
165 |
- Bump to 2.11.2. |
|
166 |
||
167 |
* Mon Aug 07 2006 - [email protected] |
|
168 |
- Bump to 2.11.1. |
|
169 |
||
170 |
* Fri Jul 21 2006 - [email protected] |
|
171 |
- Bump to 2.11.0. |
|
172 |
||
173 |
* Tue Apr 11 2006 - [email protected] |
|
174 |
- Bump to 2.10.1. |
|
175 |
||
176 |
* Wed Apr 5 2006 - [email protected] |
|
177 |
- Initial Sun release. |