SUNWxscreensaver.spec revision 18911
# spec file for xscreensaver packages # SVR4 names: pkg(5)/IPS names: # includes module(s): xscreensaver, rss-glx # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. # This file and all modifications and additions to the pristine # packages are under the same license as the packages themselves. # date:2008-12-15 owner:alanc type:bug bugster:6785377 # date:2006-05-10 owner:alanc type:branding bugster:6526791 # date:2006-05-10 owner:alanc type:branding # date:2006-05-10 owner:alanc type:branding bugster:6770336 # date:2006-05-10 owner:alanc type:branding # date:2006-05-10 owner:alanc type:feature # bugster:6735203,6673036,6484604,6673036,6670025,6611183,6478362,6417168 # bugster:6346056,6308859,6269444,6182506,6237901,5039878,6178584,5039876 # bugster:5077993,5077989,5079870,4931584,5039876,5059445,4782515,4783832 # bugster:6845751,5083155,6176524,6541240,6839026,6825374,6769901,6857559 # bugster:6475285,6670659,6461887,6395649,6520014,6736157,6573182 # date:2006-05-10 owner:ma54148 type:feature bugster:4849641 # date:2006-05-10 owner:alanc type:feature bugster:5077981,6176524 # date:2006-05-10 owner:alanc type:feature bugster:5077966,6836372 # date:2006-05-10 owner:alanc type:l10n bugster:6203951 # date:2006-05-10 owner:alanc type:feature # date:2006-05-10 owner:alanc type:bug bugster:4832530 # date:2006-05-10 owner:johnfisc type:feature # bugster:6673036,6451477,6698996,6845488,6845488 # date:2006-06-07 owner:ma54148 type:feature # bugster:5015296,6417168,6654320 # date:2006-08-09 owner:alanc type:branding # date:2006-08-09 owner:alanc type:branding # date:2006-08-09 owner:alanc type:branding # date:2008-01-03 owner:samlau type:bug bugster:6610282 # date:2008-02-11 owner:uejio type:bug bugster:6583181 # date:2008-02-27 owner:ma54148 type:bug bugster:6585644 # date:2008-06-03 owner:uejio type:bug bugster:6583247 # date:2009-02-05 owner:alanc type:bug bugster:4802301 # date:2009-07-31 owner:bp230705 type:bug bugster:6859039 # date:2010-06-10 owner:alanc type:bug # date:2008-03-07 owner:alanc type:branding # date:2008-03-07 owner:alanc type:branding # Need to have the 10.0 first so our version number is higher than # the 6.9.0 version number used when delivered from X gate # Need to have the 10.0 first so our version number is higher than # the 6.9.0 version number used when delivered from X gate # Adjust man pages to Solaris standards: # - add paths to synopsis # - add attributes section to end with package info & stability -a
'{Availability, %{pkg5_name_base}}' \
-a
'{Interface Stability, Volatile}' \
-a
'{Availability, %{pkg5_name_base}}' \
-a
'{Interface Stability, Private}' \
-a
'{Availability, %{pkg5_name_hacks}}' \
-a
'{Interface Stability, Private}' \
-a
'{Availability, %{pkg5_name_hacks_gl}}' \
-a
'{Interface Stability, Private}' \
-a
'{Availability, %{pkg5_name_hacks_rss}}' \
-a
'{Interface Stability, Private}' \
# Clear pictures we don't want in build if test "x${CPUS}" =
"x" -o ${
CPUS} =
0;
then # Mapfile flags copied from X - these are generically good for all libraries # and applications and should probably move to Solaris.inc in the future. # See the comments in each mapfile for a description of what it does. # Mark the stack and as much of heap/data as possible non-executable, # so that it's harder for attackers to exploit buffer overflows # SPARC architecture requires PLT section in .data be executable, so # we can only make .bss, not all of .data no-exec on SPARC # Alignment directives for more efficient memory/page mappings # Flags useful for libraries, shared objects, and programs # Force building with mesa headers & libraries to make sure we build the # same on all systems, whether or not proprietary GL from Sun or nVidia is # also installed and don't end up accidentally depending on those. # Unfortunately, xscreensaver is hardcoded to use <GL/gl.h> style paths, # so we create local install path to work around that. # Additional optimization flags, to make the hacks show off the hardware # better and because for just a screensaver display we can get away with # using optimizations that may change strict correctness of floating point ops. export CFLAGS=
"%c_warning_flags %optflags %extra_opt_flags %mesa_includes" export CXXFLAGS=
"%cxx_warning_flags %cxx_optflags %extra_opt_flags %mesa_includes" export LDFLAGS=
"%mesa_libpath %_ldflags %mapfiles_for_all %mapfiles_for_progs" # FIXME: hack, add "-o Makefile" to avoid looping. # FIXME: hack: stop the build from looping # Remove hacks we've chosen not to ship at all for various reasons REMOVED_HACKS=
"extrusion flyingtoasters ljlatest sonar webcollage" # Move rss-glx man pages to section 6 (games/amusements) to match xscreensaver # Don't need to ship static libraries in the package # Run script to add rss-glx hacks to XScreenSaver app-defaults, then delete it # Make compatibility links for SUNWxscreensaver # This function prints a list of things that get installed. # It does this by parsing the output of a dummy run of "make install". echo '%%defattr(-,root,bin)' echo '%%dir %%attr(0755, root, bin) %%{xss_libdir}' echo '%%dir %%attr(0755, root, bin) %%{xss_libdir}/hacks' echo '%%dir %%attr(0755, root, sys) %%{_datadir}' echo '%%dir %%attr(0755, root, bin) %%{_mandir}' echo '%%dir %%attr(0755, root, bin) %%{_mandir}/man6' | grep -v -w -e "${REMOVED_LIST}" \ | sed -n -e 's@.* \(/[^ ]*\)$@\1@p' \ | sed -e "s@^${RPM_BUILD_ROOT}@@" \ -e "s@/[a-z][a-z]*/\.\./@/@" \ -e 's@/man1/\(.*\)\.1$@/man6/\1.6@' \ -e 's@\(.*/man/.*\)@%%doc \1@' \ # Make sure that there were at least some files found grep -v -q '%%' "$@" || { # Make lists of which hacks go into which addon package # xscreensaver must be setuid root in order to do PAM authentication # compatibility links for old /usr/X11 paths possible if the other client destroys its window before we process the notify event and get through the call to XRestackWindows. - When destroying windows (such as when changing screensaver "hacks" to one with a different visual), purge any queued VisibilityNotify events so we * Mon Oct 19 2009 - alan.coopersmith@sun.com - Change default DPMS settings to match Xorg 1.7 defaults (10 minutes) - Fix patch 9 & 22 to apply cleanly to the new patch 3 results * Wed Sep 23 2009 - alan.coopersmith@sun.com - Move files from /usr/X11 to /usr (PSARC 2009/482) * Thu Sep 10 2009 - arvind.umrao@sun.com * Mon Aug 24 2009 - alan.coopersmith@sun.com - 6875124 Broken link in package SUNWxwsvr * Mon Aug 17 2009 - alan.coopersmith@sun.com * Thu Aug 13 2009 - alan.coopersmith@sun.com - Add Vendor & License tags * Fri Jul 31 2009 - alan.coopersmith@sun.com * Thu Jul 30 2009 - alan.coopersmith@sun.com * Fri Jul 24 2009 - alan.coopersmith@sun.com - rename patches from *.patch to *.diff * Fri Jul 17 2009 - alan.coopersmith@sun.com - initial version (moved from X gate)