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
|
11392
|
13 |
Version: 2.14.1
|
9397
|
14 |
Release: 2
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Python bindings for GObject
|
10524
|
18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.14/pygobject-%{version}.tar.bz2
|
10667
|
19 |
#owner:dcarbery date:2007-10-16 bugzilla:487523 type:bug
|
11392
|
20 |
Patch1: pygobject-01-pc-file.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}
|
10617
|
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}
|
|
74 |
make
|
|
75 |
|
|
76 |
%install
|
|
77 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
78 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
79 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
80 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
81 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
82 |
|
|
83 |
%clean
|
|
84 |
rm -rf $RPM_BUILD_ROOT
|
|
85 |
|
|
86 |
%post
|
|
87 |
|
|
88 |
%postun
|
|
89 |
|
|
90 |
%files
|
|
91 |
%defattr(-, root, root)
|
|
92 |
%{_libdir}/python?.?/vendor-packages/*
|
|
93 |
|
|
94 |
%files devel
|
|
95 |
%defattr(-, root, root)
|
|
96 |
%doc examples
|
|
97 |
%doc AUTHORS NEWS README MAPPING ChangeLog
|
|
98 |
%{_bindir}/*
|
|
99 |
%{_includedir}/*
|
|
100 |
%{_libdir}/pkgconfig/*
|
|
101 |
%{_libdir}/pygobject/*
|
|
102 |
%{_datadir}/pygobject/*
|
|
103 |
|
|
104 |
%changelog -n pygobject
|
11392
|
105 |
* Fri Jan 04 2008 - [email protected]
|
|
106 |
- Bump to 2.14.1. Remove upstream patch, 01-uninst-datadir; rename rest.
|
|
107 |
|
10665
|
108 |
* Tue Oct 16 2007 - [email protected]
|
|
109 |
- Add patch, 02-pc-file, to add entries to the pc files to support building
|
|
110 |
against the uninstalled module.
|
|
111 |
|
10617
|
112 |
* Sun Oct 07 2007 - [email protected]
|
|
113 |
- Add patch, 01-uninst-datadir, to add a 'datadir' entry to the uninstalled pc
|
|
114 |
file.
|
|
115 |
|
10524
|
116 |
* Wed Sep 19 2007 - [email protected]
|
|
117 |
- Bump to 2.14.0.
|
|
118 |
|
10168
|
119 |
* Mon Jul 09 2007 - [email protected]
|
|
120 |
- Bump to 2.13.2. Remove upstream patches, 01-gcc-wall and 02-return-zero.
|
10169
|
121 |
Remove autofoo calls because configure.ac patches removed.
|
|
122 |
Append -xc99 to CFLAGS to fix #error in /usr/include/sys/feature_tests.h
|
10168
|
123 |
|
9850
|
124 |
* Wed May 09 2007 - [email protected]
|
|
125 |
- Bump to 2.13.1. Remove upstream patches, 01-uninstalled.pc and 02-void-return.
|
|
126 |
Add patches, 01-gcc-wall and 02-return-zero, to fix build issues.
|
|
127 |
|
9397
|
128 |
* Mon Nov 27 2006 - [email protected]
|
|
129 |
- Remove reference to pygtk2-02-pygobject-xsl-dir.diff as it has been removed.
|
|
130 |
|
|
131 |
* Mon Nov 27 2006 - [email protected]
|
|
132 |
- Bump to 2.12.3.
|
|
133 |
|
|
134 |
* Sat Oct 07 2006 - [email protected]
|
|
135 |
- Add aclocal and automake calls.
|
|
136 |
|
|
137 |
* Wed Oct 04 2006 - [email protected]
|
|
138 |
- Bump to 2.12.2.
|
|
139 |
|
|
140 |
* Tue Sep 05 2006 - [email protected]
|
|
141 |
- Bump to 2.12.1.
|
|
142 |
|
|
143 |
* Mon Aug 28 2006 - [email protected]
|
|
144 |
- Bump to 2.11.4.
|
|
145 |
|
|
146 |
* Tue Aug 22 2006 - [email protected]
|
|
147 |
- Bump to 2.11.3.
|
|
148 |
|
|
149 |
* Tue Aug 08 2006 - [email protected]
|
|
150 |
- Bump to 2.11.2.
|
|
151 |
|
|
152 |
* Mon Aug 07 2006 - [email protected]
|
|
153 |
- Bump to 2.11.1.
|
|
154 |
|
|
155 |
* Fri Jul 21 2006 - [email protected]
|
|
156 |
- Bump to 2.11.0.
|
|
157 |
|
|
158 |
* Tue Apr 11 2006 - [email protected]
|
|
159 |
- Bump to 2.10.1.
|
|
160 |
|
|
161 |
* Wed Apr 5 2006 - [email protected]
|
|
162 |
- Initial Sun release.
|