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
|
9397
|
59 |
|
|
60 |
%package devel
|
|
61 |
Summary: %{summary} - development files
|
|
62 |
SUNW_BaseDir: %{_basedir}
|
|
63 |
%include default-depend.inc
|
|
64 |
Requires: %name
|
|
65 |
Requires: SUNWPython
|
|
66 |
|
|
67 |
%prep
|
|
68 |
rm -rf %name-%version
|
|
69 |
mkdir %name-%version
|
|
70 |
%pygobject.prep -d %name-%version
|
|
71 |
%pycairo.prep -d %name-%version
|
|
72 |
%pygtk2.prep -d %name-%version
|
|
73 |
%pyorbit.prep -d %name-%version
|
|
74 |
%gnome_python.prep -d %name-%version
|
|
75 |
%pyspi.prep -d %name-%version
|
10617
|
76 |
%pygtksourceview.prep -d %name-%version
|
9397
|
77 |
|
|
78 |
%build
|
|
79 |
PKG_CONFIG_DISABLE_UNINSTALLED=
|
|
80 |
unset PKG_CONFIG_DISABLE_UNINSTALLED
|
|
81 |
|
|
82 |
export PKG_CONFIG_PATH=../pyorbit-%{pyorbit.version}:../pygtk-%{pygtk2.version}:%{_pkg_config_path}:../pygobject-%{pygobject.version}:../pycairo-%{pycairo.version}
|
|
83 |
export PYTHON="/usr/bin/python"
|
13099
|
84 |
export CPPFLAGS="-I/usr/xpg4/include -I/usr/include/python%{pythonver}"
|
|
85 |
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
|
86 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
87 |
export LDFLAGS="%_ldflags"
|
|
88 |
export PYCC_CC="$CC"
|
|
89 |
export PYCC_CXX="$CXX"
|
|
90 |
|
|
91 |
%pygobject.build -d %name-%version
|
|
92 |
%pycairo.build -d %name-%version
|
|
93 |
%pygtk2.build -d %name-%version
|
|
94 |
cd %name-%version/pygtk-%{pygtk2.version}
|
|
95 |
ln -s gtk/*.defs .
|
|
96 |
ln -s gtk pygtk
|
|
97 |
cd ../..
|
|
98 |
%pyorbit.build -d %name-%version
|
|
99 |
echo 'PYTHONPATH=%{_builddir}/%name-%version/pygtk-%{pygtk2.version}/codegen:$PYTHONPATH /usr/bin/python %{_builddir}/%name-%version/pygtk-%{pygtk2.version}/codegen/codegen.py "$@"' > %{_builddir}/%name-%version/pygtk-codegen-2.0
|
|
100 |
chmod a+x %{_builddir}/%name-%version/pygtk-codegen-2.0
|
|
101 |
export PATH=%{_builddir}/%name-%version:$PATH
|
|
102 |
%gnome_python.build -d %name-%version
|
|
103 |
export CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`"
|
|
104 |
%pyspi.build -d %name-%version
|
10617
|
105 |
%pygtksourceview.build -d %name-%version
|
9397
|
106 |
|
|
107 |
%install
|
|
108 |
%pygobject.install -d %name-%version
|
|
109 |
%pycairo.install -d %name-%version
|
|
110 |
%pygtk2.install -d %name-%version
|
|
111 |
%pyorbit.install -d %name-%version
|
|
112 |
%gnome_python.install -d %name-%version
|
|
113 |
%pyspi.install -d %name-%version
|
10617
|
114 |
%pygtksourceview.install -d %name-%version
|
9397
|
115 |
|
13099
|
116 |
# move to vendor-packages
|
|
117 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
118 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
119 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
120 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
121 |
|
|
122 |
|
9397
|
123 |
# Move demo to demo directory.
|
|
124 |
#
|
|
125 |
install -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin
|
|
126 |
mv $RPM_BUILD_ROOT%{_bindir}/pygtk-demo $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin/pygtk-demo
|
|
127 |
|
|
128 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
129 |
|
|
130 |
%clean
|
|
131 |
rm -rf $RPM_BUILD_ROOT
|
|
132 |
|
|
133 |
%files
|
|
134 |
%defattr(-, root, bin)
|
|
135 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
136 |
%{_bindir}/*
|
|
137 |
%dir %attr (0755, root, bin) %{_libdir}
|
13105
|
138 |
%{_libdir}/libpyglib-2.0.so*
|
9397
|
139 |
%{_libdir}/python?.?/vendor-packages
|
|
140 |
%{_libdir}/pygtk
|
|
141 |
%{_libdir}/gnome-vfs-2.0/modules/libpythonmethod.so
|
|
142 |
|
|
143 |
%files devel
|
|
144 |
%defattr(-, root, bin)
|
|
145 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
146 |
%{_includedir}/*
|
|
147 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
148 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
149 |
%{_libdir}/pkgconfig/*
|
|
150 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
151 |
%{_datadir}/*
|
|
152 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo
|
|
153 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds
|
|
154 |
%dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds/bin
|
|
155 |
%{_prefix}/demo/jds/bin/pygtk-demo
|
|
156 |
|
|
157 |
%changelog
|
13105
|
158 |
* Tue Aug 12 2008 - [email protected]
|
|
159 |
- Add %{_libdir}/libpyglib-2.0.so* to %files.
|
13099
|
160 |
* Mon Aug 11 2008 - [email protected]
|
|
161 |
- Move site-packages to vendor-packages here because pygobject 2.15.2 borked
|
|
162 |
when vendor-packages was specified by pyexecdir and pythondir in make
|
|
163 |
install.
|
10665
|
164 |
* Tue Oct 16 2007 - [email protected]
|
|
165 |
- Remove unnecessary environment variable settings.
|
10625
|
166 |
* Mon Oct 8 2007 - [email protected]
|
|
167 |
- Add SUNWgnome-gtksourceview dependency as it is required to by
|
|
168 |
pygtksourceview.
|
10617
|
169 |
* Sun Oct 7 2007 - [email protected]
|
|
170 |
- Add pygtksourceview as it is required to build python bindings in gedit.
|
10572
|
171 |
* Fri Sep 28 2007 - [email protected]
|
|
172 |
- delete some unnecessary env vars
|
10415
|
173 |
* Fri Aug 31 2007 - [email protected]
|
|
174 |
- Remove pygtksourceview.spec. It is still not building and isn't required.
|
10164
|
175 |
* Thu Jul 05 2007 - [email protected]
|
|
176 |
- Add pygtksourceview.spec, but disable it because it is not building yet.
|
9397
|
177 |
* Tue Jan 9 2007 - [email protected]
|
|
178 |
- define PYCC_CC and PYCC_CXX to override what the configure script sets
|
|
179 |
in CC/CXX
|
|
180 |
* Mon Aug 28 2006 - [email protected]
|
|
181 |
- Fix typo in PKG_CONFIG_PATH data (s/=/-/).
|
|
182 |
* Sun Jun 11 2006 - [email protected]
|
|
183 |
- change group from other to bin/sys
|
|
184 |
* Fri May 12 2006 - [email protected]
|
|
185 |
- Small update to dependency list after check-deps.pl run.
|
|
186 |
* Thu May 11 2006 - [email protected]
|
|
187 |
- Move pygtk-demo to demo directory.
|
|
188 |
* Wed Apr 5 2006 - [email protected]
|
|
189 |
- Add pygobject. It has been moved from pygtk2.
|
|
190 |
* Mon Feb 20 2006 - [email protected]
|
|
191 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
192 |
* Fri Feb 17 2006 - [email protected]
|
|
193 |
- Update Build/Requires after running check-deps.pl script.
|
|
194 |
* Mon Jan 09 2006 - [email protected]
|
|
195 |
- Add gnome-vfs module.
|
|
196 |
* Thu Oct 27 2005 - [email protected]
|
|
197 |
- add pygtk2
|
|
198 |
* Tue Sep 20 2005 - [email protected]
|
|
199 |
- move to /usr as Python was also moved there
|
|
200 |
* Thu Sep 01 2005 - [email protected]
|
|
201 |
- Remove unused pygtk2 references.
|
|
202 |
* Wed Aug 30 2005 - [email protected]
|
|
203 |
- Add Build/Requires for SUNWgnome-file-mgr (nautilus) and SUNWgnome-print
|
|
204 |
(libgnomeprint/libgnomeprintui) so that those submodules will be built.
|
|
205 |
* Mon Aug 29 2005 - [email protected]
|
|
206 |
- Adjusted to put files under /usr/sfw
|
|
207 |
* Thu Aug 25 2005 - [email protected]
|
|
208 |
- Removed the 'export CC="/opt/SUNWspro/bin/cc"' line. No longer needed.
|
|
209 |
* Mon Aug 22 2005 - [email protected]
|
|
210 |
- Adjustments needed to make the package proto maps equivalent to what gets
|
|
211 |
installed via "make install"
|
|
212 |
* Thu Aug 11 2005 - [email protected]
|
|
213 |
- initial version
|