author | daniell |
Wed, 13 Oct 2010 16:43:58 +0000 | |
branch | opensolaris-2009-06 |
changeset 20159 | f18a6979f732 |
parent 14202 | fc80c50f84e9 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-python-libs |
|
3 |
# |
|
4 |
# includes module(s): pyorbit gnome-python pyspi pygtk2 |
|
5 |
# |
|
10572 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: laca |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13099 | 13 |
%define pythonver 2.4 |
14 |
||
9397 | 15 |
%use pyorbit = pyorbit.spec |
16 |
%use pycairo = pycairo.spec |
|
17 |
%use gnome_python = gnome-python.spec |
|
18 |
%use pyspi = pyspi.spec |
|
19 |
%use pygobject = pygobject.spec |
|
20 |
%use pygtk2 = pygtk2.spec |
|
10617 | 21 |
%use pygtksourceview = pygtksourceview.spec |
9397 | 22 |
|
23 |
Name: SUNWgnome-python-libs |
|
24 |
Summary: Python support libraries for GNOME |
|
25 |
Version: %{default_pkg_version} |
|
26 |
SUNW_BaseDir: %{_basedir} |
|
12101 | 27 |
SUNW_Copyright: %{name}.copyright |
9397 | 28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
29 |
||
30 |
%include default-depend.inc |
|
31 |
Requires: SUNWgnome-component |
|
32 |
Requires: SUNWgnome-file-mgr |
|
33 |
Requires: SUNWgnome-print |
|
34 |
Requires: SUNWgnome-a11y-libs |
|
35 |
Requires: SUNWgnome-libs |
|
36 |
Requires: SUNWPython-extra |
|
37 |
Requires: SUNWjdsrm |
|
38 |
Requires: SUNWgnome-config |
|
39 |
Requires: SUNWPython |
|
40 |
Requires: SUNWgnome-base-libs |
|
41 |
Requires: SUNWgnome-vfs |
|
42 |
Requires: SUNWlibms |
|
43 |
Requires: SUNWlibpopt |
|
44 |
Requires: SUNWmlib |
|
10625 | 45 |
Requires: SUNWgnome-gtksourceview |
9397 | 46 |
BuildRequires: SUNWPython-devel |
47 |
BuildRequires: SUNWgnome-config-devel |
|
48 |
BuildRequires: SUNWgnome-vfs-devel |
|
49 |
BuildRequires: SUNWlibpopt-devel |
|
50 |
BuildRequires: SUNWgnome-libs-devel |
|
51 |
BuildRequires: SUNWgnome-base-libs-devel |
|
52 |
BuildRequires: SUNWgnome-file-mgr-devel |
|
53 |
BuildRequires: SUNWgnome-print-devel |
|
54 |
BuildRequires: SUNWgnome-a11y-libs-devel |
|
55 |
BuildRequires: SUNWPython-extra |
|
56 |
BuildRequires: SUNWgnome-component-devel |
|
57 |
BuildRequires: SUNWgnome-config-devel |
|
10625 | 58 |
BuildRequires: SUNWgnome-gtksourceview-devel |
14173 | 59 |
BuildRequires: SUNWpython-setuptools |
9397 | 60 |
|
61 |
%package devel |
|
62 |
Summary: %{summary} - development files |
|
63 |
SUNW_BaseDir: %{_basedir} |
|
64 |
%include default-depend.inc |
|
65 |
Requires: %name |
|
66 |
Requires: SUNWPython |
|
14202 | 67 |
# the 2.6 devel package is required because it contains the headers |
68 |
# (they are not duplicated in this package, since they would be identical) |
|
69 |
Requires: SUNWgnome-python26-libs-devel |
|
9397 | 70 |
|
71 |
%prep |
|
72 |
rm -rf %name-%version |
|
73 |
mkdir %name-%version |
|
74 |
%pygobject.prep -d %name-%version |
|
75 |
%pycairo.prep -d %name-%version |
|
76 |
%pygtk2.prep -d %name-%version |
|
77 |
%pyorbit.prep -d %name-%version |
|
78 |
%gnome_python.prep -d %name-%version |
|
79 |
%pyspi.prep -d %name-%version |
|
10617 | 80 |
%pygtksourceview.prep -d %name-%version |
9397 | 81 |
|
82 |
%build |
|
83 |
PKG_CONFIG_DISABLE_UNINSTALLED= |
|
84 |
unset PKG_CONFIG_DISABLE_UNINSTALLED |
|
85 |
||
86 |
export PKG_CONFIG_PATH=../pyorbit-%{pyorbit.version}:../pygtk-%{pygtk2.version}:%{_pkg_config_path}:../pygobject-%{pygobject.version}:../pycairo-%{pycairo.version} |
|
13616 | 87 |
export PYTHON="/usr/bin/python2.4" |
13099 | 88 |
export CPPFLAGS="-I/usr/xpg4/include -I/usr/include/python%{pythonver}" |
89 |
export CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python%{pythonver} -I%{_builddir}/%name-%version/pyorbit-%pyorbit.version/src -I%{_builddir}/%name-%version/pycairo-%pycairo.version/cairo" |
|
9397 | 90 |
export RPM_OPT_FLAGS="$CFLAGS" |
91 |
export LDFLAGS="%_ldflags" |
|
92 |
export PYCC_CC="$CC" |
|
93 |
export PYCC_CXX="$CXX" |
|
14198 | 94 |
export EXTRA_CFLAGS="-R%{_libdir}/python%{pythonver}/pygobject" |
9397 | 95 |
|
96 |
%pygobject.build -d %name-%version |
|
97 |
%pycairo.build -d %name-%version |
|
98 |
%pygtk2.build -d %name-%version |
|
99 |
cd %name-%version/pygtk-%{pygtk2.version} |
|
100 |
ln -s gtk/*.defs . |
|
101 |
ln -s gtk pygtk |
|
102 |
cd ../.. |
|
103 |
%pyorbit.build -d %name-%version |
|
13281
a7df4f788b3a
2008-08-26 Laszlo (Laca) Peter <[email protected]>
davelam
parents:
13105
diff
changeset
|
104 |
echo 'PYTHONPATH=%{_builddir}/%name-%version/pygobject-%{pygobject.version}/codegen:$PYTHONPATH /usr/bin/python %{_builddir}/%name-%version/pygobject-%{pygobject.version}/codegen/codegen.py "$@"' > %{_builddir}/%name-%version/pygtk-codegen-2.0 |
9397 | 105 |
chmod a+x %{_builddir}/%name-%version/pygtk-codegen-2.0 |
106 |
export PATH=%{_builddir}/%name-%version:$PATH |
|
107 |
%gnome_python.build -d %name-%version |
|
108 |
export CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`" |
|
109 |
%pyspi.build -d %name-%version |
|
10617 | 110 |
%pygtksourceview.build -d %name-%version |
9397 | 111 |
|
112 |
%install |
|
14198 | 113 |
rm -rf $RPM_BUILD_ROOT |
9397 | 114 |
%pygobject.install -d %name-%version |
115 |
%pycairo.install -d %name-%version |
|
116 |
%pygtk2.install -d %name-%version |
|
117 |
%pyorbit.install -d %name-%version |
|
118 |
%gnome_python.install -d %name-%version |
|
119 |
%pyspi.install -d %name-%version |
|
10617 | 120 |
%pygtksourceview.install -d %name-%version |
9397 | 121 |
|
13099 | 122 |
# move to vendor-packages |
123 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages |
|
124 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \ |
|
125 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/ |
|
126 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages |
|
127 |
||
9397 | 128 |
# Move demo to demo directory. |
129 |
# |
|
130 |
install -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin |
|
131 |
mv $RPM_BUILD_ROOT%{_bindir}/pygtk-demo $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin/pygtk-demo |
|
132 |
||
14198 | 133 |
# avoid conflicts with 2.5 and 2.6: |
134 |
cd $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules |
|
135 |
mv libpythonmethod.so libpythonmethod-%{pythonver}.so |
|
136 |
ln -s libpythonmethod-%{pythonver}.so libpythonmethod.so |
|
137 |
||
138 |
# these are included in SUNWgnome-python26-libs |
|
139 |
rm -r $RPM_BUILD_ROOT%{_bindir} |
|
140 |
||
141 |
# move to subdir to avoid conflict with Python 2.5 and Python 2.6 |
|
142 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/pygobject |
|
143 |
mv $RPM_BUILD_ROOT%{_libdir}/libpyglib-2.0.so* \ |
|
144 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/pygobject |
|
145 |
mv $RPM_BUILD_ROOT%{_libdir}/pygtk \ |
|
146 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/pygobject |
|
147 |
||
148 |
# these are included in SUNWgnome-python26-libs-devel: |
|
149 |
rm -r $RPM_BUILD_ROOT%{_includedir} |
|
150 |
rm -r $RPM_BUILD_ROOT%{_datadir} |
|
151 |
mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig \ |
|
152 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/pkgconfig |
|
153 |
||
9397 | 154 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
155 |
||
156 |
%clean |
|
157 |
rm -rf $RPM_BUILD_ROOT |
|
158 |
||
159 |
%files |
|
160 |
%defattr(-, root, bin) |
|
161 |
%dir %attr (0755, root, bin) %{_libdir} |
|
162 |
%{_libdir}/python?.?/vendor-packages |
|
14198 | 163 |
%{_libdir}/python?.?/pygobject |
164 |
%{_libdir}/gnome-vfs-2.0/modules/libpythonmethod*.so |
|
9397 | 165 |
|
166 |
%files devel |
|
167 |
%defattr(-, root, bin) |
|
168 |
%dir %attr (0755, root, bin) %{_libdir} |
|
14198 | 169 |
%dir %attr (0755, root, other) %{_libdir}/python2.4/pkgconfig |
170 |
%{_libdir}/python2.4/pkgconfig/* |
|
9397 | 171 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo |
172 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds |
|
173 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds/bin |
|
174 |
%{_prefix}/demo/jds/bin/pygtk-demo |
|
175 |
||
176 |
%changelog |
|
14198 | 177 |
* Tue Nov 25 2008 - [email protected] |
178 |
- re-add libpyglib.so* but move in a subdir because it is dependent on |
|
179 |
the python version so we need to include it in both the 2.4 and the 2.5 |
|
180 |
package. |
|
181 |
- remove references to SUNWgnome-python-libs-common |
|
182 |
* Mon Nov 24 2008 - [email protected] |
|
183 |
- remove bits included in SUNWgnome-python-libs-common, which is defined in |
|
184 |
SUNWgnome-python25-libs.spec |
|
13616 | 185 |
* Wed Sep 17 2008 - [email protected] |
186 |
- set PYTHON to python2.4 (instead of just python) to make sure the |
|
187 |
right version is used for the build |
|
13105 | 188 |
* Tue Aug 12 2008 - [email protected] |
189 |
- Add %{_libdir}/libpyglib-2.0.so* to %files. |
|
13099 | 190 |
* Mon Aug 11 2008 - [email protected] |
191 |
- Move site-packages to vendor-packages here because pygobject 2.15.2 borked |
|
192 |
when vendor-packages was specified by pyexecdir and pythondir in make |
|
193 |
install. |
|
10665 | 194 |
* Tue Oct 16 2007 - [email protected] |
195 |
- Remove unnecessary environment variable settings. |
|
10625 | 196 |
* Mon Oct 8 2007 - [email protected] |
197 |
- Add SUNWgnome-gtksourceview dependency as it is required to by |
|
198 |
pygtksourceview. |
|
10617 | 199 |
* Sun Oct 7 2007 - [email protected] |
200 |
- Add pygtksourceview as it is required to build python bindings in gedit. |
|
10572 | 201 |
* Fri Sep 28 2007 - [email protected] |
202 |
- delete some unnecessary env vars |
|
10415 | 203 |
* Fri Aug 31 2007 - [email protected] |
204 |
- Remove pygtksourceview.spec. It is still not building and isn't required. |
|
10164 | 205 |
* Thu Jul 05 2007 - [email protected] |
206 |
- Add pygtksourceview.spec, but disable it because it is not building yet. |
|
9397 | 207 |
* Tue Jan 9 2007 - [email protected] |
208 |
- define PYCC_CC and PYCC_CXX to override what the configure script sets |
|
209 |
in CC/CXX |
|
210 |
* Mon Aug 28 2006 - [email protected] |
|
211 |
- Fix typo in PKG_CONFIG_PATH data (s/=/-/). |
|
212 |
* Sun Jun 11 2006 - [email protected] |
|
213 |
- change group from other to bin/sys |
|
214 |
* Fri May 12 2006 - [email protected] |
|
215 |
- Small update to dependency list after check-deps.pl run. |
|
216 |
* Thu May 11 2006 - [email protected] |
|
217 |
- Move pygtk-demo to demo directory. |
|
218 |
* Wed Apr 5 2006 - [email protected] |
|
219 |
- Add pygobject. It has been moved from pygtk2. |
|
220 |
* Mon Feb 20 2006 - [email protected] |
|
221 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
222 |
* Fri Feb 17 2006 - [email protected] |
|
223 |
- Update Build/Requires after running check-deps.pl script. |
|
224 |
* Mon Jan 09 2006 - [email protected] |
|
225 |
- Add gnome-vfs module. |
|
226 |
* Thu Oct 27 2005 - [email protected] |
|
227 |
- add pygtk2 |
|
228 |
* Tue Sep 20 2005 - [email protected] |
|
229 |
- move to /usr as Python was also moved there |
|
230 |
* Thu Sep 01 2005 - [email protected] |
|
231 |
- Remove unused pygtk2 references. |
|
232 |
* Wed Aug 30 2005 - [email protected] |
|
233 |
- Add Build/Requires for SUNWgnome-file-mgr (nautilus) and SUNWgnome-print |
|
234 |
(libgnomeprint/libgnomeprintui) so that those submodules will be built. |
|
235 |
* Mon Aug 29 2005 - [email protected] |
|
236 |
- Adjusted to put files under /usr/sfw |
|
237 |
* Thu Aug 25 2005 - [email protected] |
|
238 |
- Removed the 'export CC="/opt/SUNWspro/bin/cc"' line. No longer needed. |
|
239 |
* Mon Aug 22 2005 - [email protected] |
|
240 |
- Adjustments needed to make the package proto maps equivalent to what gets |
|
241 |
installed via "make install" |
|
242 |
* Thu Aug 11 2005 - [email protected] |
|
243 |
- initial version |