9397
|
1 |
#
|
|
2 |
# spec file for package pygobject
|
|
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 |
# Owner: laca
|
|
9 |
#
|
|
10 |
Name: pygobject
|
|
11 |
License: LGPL
|
|
12 |
Group: System/Library
|
|
13 |
Version: 2.12.3
|
|
14 |
Release: 2
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Python bindings for GObject
|
|
18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-%{version}.tar.bz2
|
|
19 |
URL: http://www.gnome.org
|
|
20 |
# date:2006-04-05 owner:dcarbery type:feature bugzilla:385129
|
|
21 |
Patch1: pygobject-01-uninstalled.pc.diff
|
|
22 |
# date:2006-07-27 owner:dcarbery type:bug bugzilla:385127
|
|
23 |
Patch2: pygobject-02-void-return.diff
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
Docdir: %{_defaultdocdir}/doc
|
|
26 |
Autoreqprov: on
|
|
27 |
|
|
28 |
%define libglade_version 2.4.0
|
|
29 |
%define glib2_version 2.6.0
|
|
30 |
%define gtk2_version 2.6.0
|
|
31 |
%define atk_version 1.8.0
|
|
32 |
%define pango_version 1.8.0
|
|
33 |
%define python_version 2.4
|
|
34 |
|
|
35 |
Requires: libglade >= %{libglade_version}
|
|
36 |
Requires: gtk2 >= %{gtk2_version}
|
|
37 |
Requires: glib2 >= %{glib2_version}
|
|
38 |
Requires: atk >= %{atk_version}
|
|
39 |
Requires: pango >= %{pango_version}
|
|
40 |
Requires: python >= %{python_version}
|
|
41 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
42 |
BuildRequires: libglade-devel >= %{libglade_version}
|
|
43 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
44 |
BuildRequires: atk-devel >= %{atk_version}
|
|
45 |
BuildRequires: pango-devel >= %{pango_version}
|
|
46 |
|
|
47 |
%description
|
|
48 |
PyGObject is an extension module for python that gives you access to GObject
|
|
49 |
|
|
50 |
%package devel
|
|
51 |
Summary: files needed to build wrappers for GObject libraries
|
|
52 |
Group: Development/Languages
|
|
53 |
Requires: %{name} = %{version}
|
|
54 |
|
|
55 |
%description devel
|
|
56 |
This package contains files required to build wrappers for GObject
|
|
57 |
libraries so that they interoperate with pygobject.
|
|
58 |
|
|
59 |
%prep
|
|
60 |
%setup -q -n pygobject-%{version}
|
|
61 |
%patch1 -p1
|
|
62 |
%patch2 -p1
|
|
63 |
|
|
64 |
%build
|
|
65 |
aclocal -I ./m4 $ACLOCAL_FLAGS
|
|
66 |
autoconf
|
|
67 |
automake -a -c -f
|
|
68 |
%ifos solaris
|
|
69 |
# Disable optimizations on x86 to workaround compiler bug 6382078.
|
|
70 |
%ifarch sparc
|
|
71 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
72 |
%else
|
|
73 |
CFLAGS="$RPM_OPT_FLAGS -xO0" \
|
|
74 |
%endif
|
|
75 |
%endif
|
|
76 |
./configure --prefix=%{_prefix} \
|
|
77 |
--sysconfdir=%{_sysconfdir}
|
|
78 |
make
|
|
79 |
|
|
80 |
%install
|
|
81 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
82 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
83 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
84 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
85 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
86 |
|
|
87 |
%clean
|
|
88 |
rm -rf $RPM_BUILD_ROOT
|
|
89 |
|
|
90 |
%post
|
|
91 |
|
|
92 |
%postun
|
|
93 |
|
|
94 |
%files
|
|
95 |
%defattr(-, root, root)
|
|
96 |
%{_libdir}/python?.?/vendor-packages/*
|
|
97 |
|
|
98 |
%files devel
|
|
99 |
%defattr(-, root, root)
|
|
100 |
%doc examples
|
|
101 |
%doc AUTHORS NEWS README MAPPING ChangeLog
|
|
102 |
%{_bindir}/*
|
|
103 |
%{_includedir}/*
|
|
104 |
%{_libdir}/pkgconfig/*
|
|
105 |
%{_libdir}/pygobject/*
|
|
106 |
%{_datadir}/pygobject/*
|
|
107 |
|
|
108 |
%changelog -n pygobject
|
|
109 |
* Mon Nov 27 2006 - [email protected]
|
|
110 |
- Remove reference to pygtk2-02-pygobject-xsl-dir.diff as it has been removed.
|
|
111 |
|
|
112 |
* Mon Nov 27 2006 - [email protected]
|
|
113 |
- Bump to 2.12.3.
|
|
114 |
|
|
115 |
* Sat Oct 07 2006 - [email protected]
|
|
116 |
- Add aclocal and automake calls.
|
|
117 |
|
|
118 |
* Wed Oct 04 2006 - [email protected]
|
|
119 |
- Bump to 2.12.2.
|
|
120 |
|
|
121 |
* Tue Sep 05 2006 - [email protected]
|
|
122 |
- Bump to 2.12.1.
|
|
123 |
|
|
124 |
* Mon Aug 28 2006 - [email protected]
|
|
125 |
- Bump to 2.11.4.
|
|
126 |
|
|
127 |
* Tue Aug 22 2006 - [email protected]
|
|
128 |
- Bump to 2.11.3.
|
|
129 |
|
|
130 |
* Tue Aug 08 2006 - [email protected]
|
|
131 |
- Bump to 2.11.2.
|
|
132 |
|
|
133 |
* Mon Aug 07 2006 - [email protected]
|
|
134 |
- Bump to 2.11.1.
|
|
135 |
|
|
136 |
* Fri Jul 21 2006 - [email protected]
|
|
137 |
- Bump to 2.11.0.
|
|
138 |
|
|
139 |
* Tue Apr 11 2006 - [email protected]
|
|
140 |
- Bump to 2.10.1.
|
|
141 |
|
|
142 |
* Wed Apr 5 2006 - [email protected]
|
|
143 |
- Initial Sun release.
|