author | henryz |
Wed, 09 Apr 2008 07:35:21 +0000 | |
changeset 12065 | ec40d145a28b |
parent 11935 | fa2b34838439 |
child 13605 | 8d89870f3a42 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-meeting |
|
3 |
# |
|
9688 | 4 |
# includes module(s): pwlib, opal, ekiga |
9397 | 5 |
# |
11370 | 6 |
# Copyright 2008 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: davelam |
|
11 |
# |
|
12 |
# DO NOT REMOVE NEXT LINE |
|
13 |
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM |
|
14 |
# |
|
15 |
%include Solaris.inc |
|
9688 | 16 |
|
17 |
%if %arch_sse2 |
|
18 |
%include x86_sse2.inc |
|
19 |
%define ekiga_libdir %{_prefix}/lib/ekiga/%sse2_arch |
|
20 |
||
21 |
%use pwlib_sse2 = pwlib.spec |
|
22 |
%use opal_sse2 = opal.spec |
|
23 |
||
24 |
%define pwlib_opt --with-pwlib-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%sse2_arch/pwlib-%{pwlib.version} |
|
25 |
%define opal_opt --with-opal-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%sse2_arch/opal-%{opal.version} |
|
26 |
%use ekiga_sse2 = ekiga.spec |
|
27 |
%endif |
|
28 |
||
29 |
%include base.inc |
|
30 |
%define ekiga_libdir %{_libdir}/ekiga |
|
31 |
%use pwlib = pwlib.spec |
|
32 |
%use opal = opal.spec |
|
33 |
||
34 |
%define pwlib_opt --with-pwlib-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%base_arch/pwlib-%{pwlib.version} |
|
35 |
%define opal_opt --with-opal-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%base_arch/opal-%{opal.version} |
|
36 |
||
9397 | 37 |
%use ekiga = ekiga.spec |
38 |
||
39 |
Name: SUNWgnome-meeting |
|
40 |
Summary: GNOME video conference application |
|
9688 | 41 |
Version: %{default_pkg_version} |
10490 | 42 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 43 |
SUNW_BaseDir: %{_basedir} |
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11370
diff
changeset
|
44 |
SUNW_Copyright:%{name}.copyright |
9397 | 45 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
46 |
||
47 |
%include default-depend.inc |
|
48 |
Requires: SUNWlibC |
|
49 |
Requires: SUNWlxml |
|
50 |
Requires: SUNWlibms |
|
51 |
Requires: SUNWlibmsr |
|
52 |
Requires: SUNWgnome-base-libs |
|
53 |
Requires: SUNWgnome-libs |
|
54 |
Requires: SUNWgnome-component |
|
55 |
Requires: SUNWgnutls |
|
56 |
Requires: SUNWgnome-config |
|
57 |
Requires: SUNWgnome-meeting-root |
|
58 |
Requires: SUNWpostrun |
|
59 |
Requires: SUNWevolution-data-server |
|
60 |
Requires: SUNWgnome-audio |
|
11189 | 61 |
Requires: SUNWavahi-bridge-dsd |
9397 | 62 |
#Requires: SUNWdbus |
63 |
BuildRequires: SUNWgnome-base-libs-devel |
|
64 |
BuildRequires: SUNWgnome-config-devel |
|
10645 | 65 |
BuildRequires: SUNWgnome-doc-utils |
9397 | 66 |
#BuildRequires: SUNWdbus-devel |
67 |
BuildRequires: SUNWlxml-python |
|
11189 | 68 |
BuildRequires: SUNWavahi-bridge-dsd-devel |
9688 | 69 |
Requires: SUNWlibsdl |
70 |
BuildRequires: SUNWlibsdl-devel |
|
9397 | 71 |
|
72 |
%package root |
|
73 |
Summary: %{summary} - / filesystem |
|
74 |
SUNW_BaseDir: / |
|
75 |
%include default-depend.inc |
|
76 |
Requires: SUNWpostrun-root |
|
77 |
Requires: SUNWgnome-config |
|
78 |
||
79 |
%if %build_l10n |
|
80 |
%package l10n |
|
81 |
Summary: %{summary} - l10n files |
|
82 |
SUNW_BaseDir: %{_basedir} |
|
83 |
%include default-depend.inc |
|
84 |
Requires: %{name} |
|
85 |
%endif |
|
86 |
||
87 |
%prep |
|
88 |
rm -rf %name-%version |
|
9688 | 89 |
mkdir %name-%version |
90 |
||
91 |
%if %arch_sse2 |
|
92 |
mkdir %name-%version/%sse2_arch |
|
93 |
%pwlib_sse2.prep -d %name-%version/%sse2_arch |
|
94 |
%opal_sse2.prep -d %name-%version/%sse2_arch |
|
95 |
%ekiga_sse2.prep -d %name-%version/%sse2_arch |
|
9397 | 96 |
%endif |
9688 | 97 |
|
98 |
mkdir %name-%version/%base_arch |
|
99 |
%pwlib.prep -d %name-%version/%base_arch |
|
100 |
%opal.prep -d %name-%version/%base_arch |
|
101 |
%ekiga.prep -d %name-%version/%base_arch |
|
10490 | 102 |
cd %{_builddir}/%name-%version |
103 |
gzcat %SOURCE0 | tar xf - |
|
9397 | 104 |
|
105 |
%build |
|
106 |
# to fix performace CR#6401342 on sparc |
|
107 |
%ifarch sparc |
|
9692
fae4909558e5
fix a typo in if/else statement related to EXTRA_CXXFLAGS
elaine
parents:
9688
diff
changeset
|
108 |
export EXTRA_CXXFLAGS="-features=tmplife -xO5 -xlinkopt -xF=lcldata,gbldata -Qoption postopt -dataredundancy=on,-tune:optimizer:data-alignment=4 -xbuiltin=%%all" |
fae4909558e5
fix a typo in if/else statement related to EXTRA_CXXFLAGS
elaine
parents:
9688
diff
changeset
|
109 |
%else |
9688 | 110 |
export EXTRA_CXXFLAGS="-features=tmplife -xbuiltin=%%all" |
9397 | 111 |
%endif |
9688 | 112 |
|
9791 | 113 |
%if %cc_is_gcc |
114 |
%else |
|
115 |
export CXX="${CXX} -norunpath" |
|
116 |
%endif |
|
117 |
||
9688 | 118 |
%if %arch_sse2 |
119 |
%pwlib_sse2.build -d %name-%version/%sse2_arch |
|
120 |
export PWLIBDIR=`pwd`/%name-%version/%sse2_arch/pwlib-%{pwlib.version} |
|
121 |
export EXTRA_LDFLAGS="-L$PWLIBDIR/lib" |
|
122 |
%opal_sse2.build -d %name-%version/%sse2_arch |
|
123 |
%ekiga_sse2.build -d %name-%version/%sse2_arch |
|
9397 | 124 |
%endif |
9688 | 125 |
|
126 |
export PWLIBDIR=`pwd`/%name-%version/%base_arch/pwlib-%{pwlib.version} |
|
127 |
%pwlib.build -d %name-%version/%base_arch |
|
128 |
%opal.build -d %name-%version/%base_arch |
|
129 |
%ekiga.build -d %name-%version/%base_arch |
|
9397 | 130 |
|
131 |
%install |
|
9688 | 132 |
rm -rf $RPM_BUILD_ROOT |
133 |
%if %arch_sse2 |
|
134 |
%pwlib_sse2.install -d %name-%version/%sse2_arch |
|
135 |
%opal_sse2.install -d %name-%version/%sse2_arch |
|
136 |
%ekiga_sse2.install -d %name-%version/%sse2_arch |
|
137 |
rm -r $RPM_BUILD_ROOT%{_libdir}/%sse2_arch/bonobo |
|
138 |
rmdir $RPM_BUILD_ROOT%{_libdir}/%sse2_arch |
|
139 |
%endif |
|
140 |
||
141 |
%pwlib.install -d %name-%version/%base_arch |
|
142 |
%opal.install -d %name-%version/%base_arch |
|
143 |
%ekiga.install -d %name-%version/%base_arch |
|
144 |
||
145 |
%if %can_isaexec |
|
146 |
mkdir $RPM_BUILD_ROOT%{_bindir}/%{base_isa} |
|
147 |
mv $RPM_BUILD_ROOT%{_bindir}/ekiga $RPM_BUILD_ROOT%{_bindir}/%{base_isa} |
|
148 |
cd $RPM_BUILD_ROOT%{_bindir} |
|
149 |
ln -s ../lib/isaexec ekiga |
|
150 |
%endif |
|
9397 | 151 |
|
152 |
%if %build_l10n |
|
153 |
%else |
|
154 |
# REMOVE l10n FILES |
|
155 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
156 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{ekiga.name}/[a-z]* |
|
157 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/%{ekiga.name}/%{ekiga.name}-[a-z]*.omf |
|
158 |
%endif |
|
159 |
||
10490 | 160 |
# install man page |
161 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
162 |
cd %{_builddir}/%name-%version/sun-manpages |
|
163 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
164 |
||
9397 | 165 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
166 |
||
167 |
%clean |
|
168 |
rm -rf $RPM_BUILD_ROOT |
|
169 |
||
170 |
%post |
|
171 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
172 |
echo '/usr/bin/update-desktop-database' |
|
173 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
174 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
175 |
echo '/usr/bin/scrollkeeper-update' |
|
176 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
177 |
||
178 |
%postun |
|
179 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
180 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
181 |
echo '/usr/bin/update-desktop-database' |
|
182 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
183 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
184 |
echo '/usr/bin/scrollkeeper-update' |
|
185 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
186 |
||
187 |
%post root |
|
11370 | 188 |
%include gconf-install.script |
9397 | 189 |
|
190 |
%preun root |
|
191 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
192 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
193 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
194 |
echo ' exit 0'; |
|
195 |
echo '}'; |
|
196 |
echo 'umask 0022'; |
|
197 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
198 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
199 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
200 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
201 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
202 |
echo 'schemas="$SDIR/ekiga.schemas"'; |
|
203 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
204 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
205 |
||
206 |
%files |
|
207 |
%defattr (-, root, bin) |
|
208 |
%dir %attr (0755, root, bin) %{_bindir} |
|
9688 | 209 |
%hard %{_bindir}/* |
9397 | 210 |
%dir %attr (0755, root, bin) %{_libdir} |
211 |
%{_libdir}/%{ekiga.name} |
|
212 |
%{_libdir}/bonobo |
|
213 |
%dir %attr (0755, root, sys) %{_datadir} |
|
214 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
215 |
%{_datadir}/applications/* |
|
216 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
217 |
%{_datadir}/pixmaps/* |
|
218 |
%{_datadir}/sounds |
|
219 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
220 |
%{_datadir}/gnome/help/%{ekiga.name}/C |
|
221 |
%{_datadir}/omf/%{ekiga.name}/%{ekiga.name}-C.omf |
|
222 |
%dir %attr(0755, root, bin) %{_mandir} |
|
223 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
224 |
%{_mandir}/*/* |
|
225 |
||
226 |
%files root |
|
227 |
%defattr (-, root, sys) |
|
228 |
%dir %attr(0755, root, sys) %{_sysconfdir} |
|
229 |
%{_sysconfdir}/gconf/schemas/ekiga.schemas |
|
230 |
||
231 |
%if %build_l10n |
|
232 |
%files l10n |
|
233 |
%defattr (-, root, bin) |
|
234 |
%dir %attr (0755, root, sys) %{_datadir} |
|
235 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
236 |
%attr (-, root, other) %{_datadir}/locale |
|
237 |
%{_datadir}/gnome/help/%{ekiga.name}/[a-z]* |
|
238 |
%{_datadir}/omf/%{ekiga.name}/*-[a-z]*.omf |
|
239 |
%endif |
|
240 |
||
241 |
%changelog |
|
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11370
diff
changeset
|
242 |
* Thu Mar 27 2008 - [email protected] |
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11370
diff
changeset
|
243 |
- Add file SUNWgnome-meeting.copyright. |
11370 | 244 |
* Thu Jan 3 2008 - [email protected] |
245 |
- use gconf-install.script instead of an inline script |
|
11189 | 246 |
* Wed Nov 14 2007 - [email protected] |
247 |
- Add Build/Requires SUNWavahi-bridge-dsd/-devel as required by ekiga. |
|
10645 | 248 |
* Thu Oct 11 2007 - [email protected] |
249 |
- Remove install dependency on SUNWgnome-doc-utils and change the build |
|
250 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. |
|
10569 | 251 |
* Fri Sep 28 2007 - [email protected] |
252 |
- delete SUNWxw* deps -- this pkg already depends on SUNWgnome-base-libs |
|
10490 | 253 |
* Thu Sep 13 2007 - [email protected] |
254 |
- Add SGML format man page. |
|
10406 | 255 |
* Thu Aug 30 2007 - [email protected] |
256 |
- simply cancel my last checkin about DBUS. |
|
10137 | 257 |
* Thu Jun 28 2007 - [email protected] |
258 |
- pack the DBUS service files to pkg since DBUS enabled. |
|
9791 | 259 |
* Thu Apr 26 2007 - [email protected] |
260 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes |
|
261 |
and leaves compiler paths in the binaries, fixes 6497744 |
|
9692
fae4909558e5
fix a typo in if/else statement related to EXTRA_CXXFLAGS
elaine
parents:
9688
diff
changeset
|
262 |
* Sat Apr 7 2007 - [email protected] |
fae4909558e5
fix a typo in if/else statement related to EXTRA_CXXFLAGS
elaine
parents:
9688
diff
changeset
|
263 |
- correct if/else statement related to EXTRA_CXXFLAGS. |
9688 | 264 |
* Thu Apr 5 2007 - [email protected] |
265 |
- explode ekiga.spec into individual spec files for each component and |
|
266 |
add SSE2 optimized versions |
|
9535
9fceb2e50ce2
Cancel partly my last checkin on SUNWgnome-meeting.spec since the optimization option should be added in a better way.
elaine
parents:
9515
diff
changeset
|
267 |
* Tue Mar 13 2007 - [email protected] |
9688 | 268 |
- cancel part of last checking to make sure each env var change is solid and |
269 |
worthful. |
|
9535
9fceb2e50ce2
Cancel partly my last checkin on SUNWgnome-meeting.spec since the optimization option should be added in a better way.
elaine
parents:
9515
diff
changeset
|
270 |
* Sun Mar 11 2007 - [email protected] |
9fceb2e50ce2
Cancel partly my last checkin on SUNWgnome-meeting.spec since the optimization option should be added in a better way.
elaine
parents:
9515
diff
changeset
|
271 |
- add some optimization options to get more optimized binary |
9397 | 272 |
* Mon Nov 20 2006 - [email protected] |
273 |
- add patch comment |
|
274 |
* Thu Otc 26 2006 - [email protected] |
|
275 |
- Move patch ekiga-06-opal-jitter.diff, ekiga-07-conststr.diff from |
|
276 |
spec-files/Solaris/patches to spec-files/patches, rename the patch |
|
277 |
to solve the patch number conflict there(the new name are |
|
278 |
ekiga-11-opal-jitter.diff, ekiga-12-conststr.diff) |
|
279 |
* Thu Sep 07 2006 - [email protected] |
|
280 |
- Remove upstream patch, ekiga-08-pwlib-audiodev.diff. |
|
281 |
* Mon Aug 28 2006 - [email protected] |
|
282 |
- add patch ekiga-08-pwlib-audiodev.diff to fix the bug CR#6462870 |
|
283 |
* Fri Jul 14 2006 - [email protected] |
|
284 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
285 |
part of 6448317 |
|
286 |
* Mon Jul 10 2006 - [email protected] |
|
287 |
- change to use Ekiga 2.0.2 release |
|
288 |
- add patch ekiga-08-pwlib-audiodev.diff to get Ekiga worked on SunRay |
|
289 |
* Thu Jun 29 2006 - [email protected] |
|
290 |
- update postrun scripts |
|
291 |
* Fri Jun 16 2006 - [email protected] |
|
292 |
- fix the libraries missed problem |
|
293 |
* Sun Jun 11 2006 - [email protected] |
|
294 |
- change group from other to bin/sys |
|
295 |
* Mon Jun 01 2006 - [email protected] |
|
296 |
- add BuildRequires SUNWlxml-python |
|
297 |
- comment out Build/Requires SUNWdbus,SUNWdbus-devel since dbus's removed from |
|
298 |
the build temporarily. |
|
299 |
* Sat Jun 3 2006 - [email protected] |
|
300 |
- use post/preun scripts to install schemas into the merged gconf files |
|
301 |
* Fri Jun 02 2006 - [email protected] |
|
302 |
- Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails. |
|
303 |
* Fri May 26 2006 - [email protected] |
|
304 |
- add "-features=tmplife" in CXXFLAGS to fix hang problem |
|
305 |
* Mon May 15 2006 - [email protected] |
|
306 |
- add patch ekiga-05-pwlib-jitter.diff, ekiga-06-opal-jitter.diff |
|
307 |
to fix CR#6416969, add patch ekiga-07-conststr.diff to |
|
308 |
fix bug CR#6401342 on i386, and to fix this bug on sparc, add options in |
|
309 |
CFLAGS, CXXFLAGS |
|
310 |
* Fri Apr 14 2006 - [email protected] |
|
311 |
- delete SUNW_Category tag to use the general one |
|
312 |
- change all reference of "gnomemeeting" to "ekiga" |
|
313 |
* Fri Mar 31 2006 - [email protected] |
|
314 |
- initial version created |