SUNWxscreensaver.spec revision 19027
# 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:2010-06-10 owner:alanc type:bug bugster:6199780,6232612 # date:2010-06-30 owner:arvind type:bug bugster:6964562 # 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 # The mapfiles that cause extra .bss sections to be generated have # been temporarily disabled due to linker bug 6988300 - see X bug 6988507. # 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 * Wed Jun 30 2010 - arvind.umrao@sun.com * Tue Jun 22 2010 - alan.coopersmith@oracle.com metadata to xscreensaver-demo (preferences app) to fix CR 6199780 & 6232612. * Tue Jun 22 2010 -arvind.umrao@sun.com * Thu Jun 17 2010 - arvind.umrao@sun.com * Tue Jun 15 2010 - alan.coopersmith@oracle.com - Make 'asterisks' setting in xscreensaver app-defaults file work, restore default to upstream value of true to preserve existing behavior. - Capture keystrokes that arrive before the unlock dialog opens and replay them into the dialog once it appears. - Remove some more unnecessary differences from upstream code. * Wed Jun 9 2010 - alan.coopersmith@oracle.com - Fix 16207 xscreensaver cores when a correct or incorrect password is entered by removing incorrect addition of free(msg) from patch 6, since msg * Thu Jun 10 2010 - arvind.umrao@sun.com * Fri Jun 4 2010 - alan.coopersmith@oracle.com - Fix issues handling LoginHelper settings for accessibility applications that need special handling. - Fix startup of unlock countdown timer animation to be more reliable. - Set correct warning flags for Sun cc vs. gcc don't get XErrors when we process them and try to restack a destroyed window. - Pass through some additional messages from the upstream code, like the "(Caps Lock?)" when authentication fails & Caps Lock was on and the counts of failed login attempts. * Wed Jun 2 2010 - alan.coopersmith@oracle.com - Use gnome-help to display man pages instead of running "man" in a terminal * Tue Jun 1 2010 - alan.coopersmith@oracle.com - Fix XErrors from XRestackWindow calls by major overhaul of accessibility - Merge patch 18 into patch 6, renumber patches 19-25 to fill the hole - Remove some unnecessary changes from patches * Thu May 27 2010 - brian.cameron@oracle.com - Fixed prompting for new password when a users password is expired. - Improve appearance of unlock dialog * Wed May 26 2010 - alan.coopersmith@oracle.com - Move %descriptions to SUNW_Desc in spec file making formatting & indentation consistent. - Fix some copyright dates based on history from X gate - Change a few more #ifdef sun to #ifdef __sun for consistency. * Tue May 25 2010 - brian.cameron@oracle.com - Bump to 5.11. Remove upstream patches. Merge several patches so that patches do not apply on top of other patches so much. Cleanup. * Fri Mar 12 2010 - alan.coopersmith@sun.com - Remove obsolete SUNWxwsvr (only had /usr/openwin->X11 symlinks that are not needed on IPS-installed machines) * Mon Mar 1 2010 - alan.coopersmith@sun.com - Use new IPS package names in man page attributes setting in .spec file * Mon Feb 15 2010 - arvind.umrao@sun.com * Thu Feb 04 2010 - harry.fu@sun.com - Add po-sun translations. * Tue Jan 26 2010 - dave.lin@sun.com - Mark SUNWxwsvr as Nevada only package. * Thu Dec 31 2009 - naveen.gundlagutta@sun.com * Wed Dec 23 2009 - alan.coopersmith@sun.com SUNWxorg-mesa is delivered on SPARC in snv_130 - Report error if none of the GL hacks were built instead of quietly building empty packages for them * Tue Dec 22 2009 - alan.coopersmith@sun.com