16799N/A#
18372N/A# spec file for xscreensaver packages
18372N/A#
18778N/A# SVR4 names: pkg(5)/IPS names:
18778N/A# SUNWxscreensaver desktop/xscreensaver
18778N/A# SUNWxscreensaver-hacks desktop/xscreensaver/hacks
18778N/A# SUNWxscreensaver-hacks-gl desktop/xscreensaver/hacks/hacks-gl
18778N/A# SUNWrss-glx desktop/xscreensaver/hacks/rss-glx
16799N/A#
16799N/A# includes module(s): xscreensaver, rss-glx
16799N/A#
20331N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
16799N/A# This file and all modifications and additions to the pristine
16799N/A# packages are under the same license as the packages themselves.
16799N/A#
17185N/A%define owner alanc
16799N/A#
16799N/A%include Solaris.inc
18252N/A%include l10n.inc
16799N/A
17183N/A%define OSR 12732:5.0.1
17183N/A
16799N/A%define src_name xscreensaver
19033N/A%define src_version 5.12
18778N/A%define src_url http://www.jwz.org/xscreensaver
16799N/A%define src_dir %{src_name}-%{src_version}
16799N/A
18778N/A%define pkg5_name_base desktop/xscreensaver
18778N/A%define pkg5_name_hacks desktop/xscreensaver/hacks
18778N/A%define pkg5_name_hacks_gl desktop/xscreensaver/hacks/hacks-gl
18778N/A%define pkg5_name_hacks_rss desktop/xscreensaver/hacks/rss-glx
18372N/A
19033N/A# Publisher name used in .p5i files to install hack packages
19059N/A%{?pkg5_publisher:#}%define pkg5_publisher solaris
19033N/A
16799N/A%{?sf_download:#}%define sf_download http://downloads.sourceforge.net
16799N/A%define rss_name rss-glx
16799N/A%define rss_version 0.9.0
16799N/A%define rss_url %{sf_download}/rss-glx
16799N/A%define rss_dir %{rss_name}_%{rss_version}
16799N/A
18372N/A%define rss_OSR 4342:0.8.1
18372N/A
17997N/A%define app_defaults_dir %{_datadir}/X11/app-defaults
17382N/A%define xss_libdir %{_libdir}/xscreensaver
16799N/A
16799N/AName: SUNWxscreensaver
18778N/AIPS_package_name: %{pkg5_name_base}
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - Screen Saver/Locker for the X Window System
18949N/ASUNW_Desc: XScreenSaver is two things: it is both a large collection of screen savers (distributed in the 'hacks' packages) and it is also the framework for blanking and locking the screen (this package).
16799N/AVersion: %{src_version}
19059N/ASUNW_BaseDir: /
16799N/ASUNW_Copyright: %{name}.copyright
17023N/ALicense: MIT
16799N/ABuildRoot: %{_tmppath}/%{name}-%{src_version}-build
18778N/ASource: %{src_url}/%{src_dir}.tar.gz
16799N/ASource1: %{rss_url}/%{rss_dir}.tar.bz2
18778N/ASource2: xscreensaver-opensolaris-logo.png
16799N/A%if %option_with_sun_branding
18778N/ASource3: solaris-lockscreen-logos-1.0.tar.bz2
16799N/A%endif
18778N/ASource4: suntouch-manpages.pl
18252N/ASource5: %{src_name}-po-sun-%{po_sun_version}.tar.bz2
19033N/A# .p5i files are used to offer links to install the hack packages in
19033N/A# the xscreensaver-demo program when they're not installed (which they're
19033N/A# not after a LiveCD install, since they don't fit) - bugzilla:10681
19033N/ASource6: xscreensaver-hacks.p5i.in
19033N/ASource7: xscreensaver-hacks-gl.p5i.in
19033N/ASource8: rss-glx.p5i.in
19059N/ASource9: xscreensaver.desktop
16799N/A
18778N/A# date:2008-12-15 owner:alanc type:bug bugster:6785377
18778N/APatch1: xscreensaver-01-intltool.diff
16799N/A# date:2006-05-10 owner:alanc type:branding bugster:6526791
19033N/A# bugster:4871833,6368607,6652454
19033N/APatch2: xscreensaver-02-Solaris.app-defaults.diff
18812N/A# date:2006-05-10 owner:alanc type:branding
18778N/APatch3: xscreensaver-03-GNOME-desktop.diff
19033N/A# date:2006-05-10 owner:alanc type:branding bugster:6770336 bugzilla:10681
18778N/APatch4: xscreensaver-04-solaris-paths.diff
19117N/A# date:2010-11-12 owner:alanc type:feature
19117N/APatch5: xscreensaver-05-atoms.diff
16799N/A# date:2006-05-10 owner:alanc type:feature
16799N/A# bugster:6735203,6673036,6484604,6673036,6670025,6611183,6478362,6417168
16799N/A# bugster:6346056,6308859,6269444,6182506,6237901,5039878,6178584,5039876
16799N/A# bugster:5077993,5077989,5079870,4931584,5039876,5059445,4782515,4783832
18778N/A# bugster:6845751,5083155,6176524,6541240,6839026,6825374,6769901,6857559
19033N/A# bugster:6475285,6670659,6461887,6395649,6520014,6736157,6573182,6203951
19117N/APatch6: xscreensaver-06-gtk-lock.diff
16799N/A# date:2006-05-10 owner:ma54148 type:feature bugster:4849641
19117N/APatch7: xscreensaver-07-allow-root.diff
18778N/A# date:2006-05-10 owner:alanc type:feature bugster:5077981,6176524
19117N/APatch8: xscreensaver-08-passwdTimeout-pref.diff
16799N/A# date:2006-05-10 owner:alanc type:feature
19117N/APatch9: xscreensaver-09-dpms.diff
16799N/A# date:2006-05-10 owner:johnfisc type:feature
18778N/A# bugster:6673036,6451477,6698996,6845488,6845488
19117N/APatch10: xscreensaver-10-trusted.diff
16799N/A# date:2006-06-07 owner:ma54148 type:feature
19844N/A# bugster:5015296,6417168,6654320,7008058
19117N/APatch11: xscreensaver-11-pam_audit.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
19033N/APatch12: xscreensaver-12-barcode-hack.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
19033N/APatch13: xscreensaver-13-glsnake.diff
16799N/A# date:2008-01-03 owner:samlau type:bug bugster:6610282
19033N/APatch14: xscreensaver-14-bug-6610282.diff
16799N/A# date:2008-02-11 owner:uejio type:bug bugster:6583181
19033N/APatch15: xscreensaver-15-bug-6583181.diff
16799N/A# date:2008-02-27 owner:ma54148 type:bug bugster:6585644
19033N/APatch16: xscreensaver-16-notice_events.diff
16799N/A# date:2008-06-03 owner:uejio type:bug bugster:6583247
19033N/APatch17: xscreensaver-17-bug-6583247.diff
16799N/A# date:2009-02-05 owner:alanc type:bug bugster:4802301
19033N/APatch18: xscreensaver-18-bug-4802301.diff
16943N/A# date:2009-07-31 owner:bp230705 type:bug bugster:6859039
19033N/APatch19: xscreensaver-19-bug-6859039.diff
18940N/A# date:2010-06-30 owner:arvind type:bug bugster:6964562
19033N/APatch20: xscreensaver-20-bug-6964562.diff
19098N/A# date:2010-11-09 owner:alanc type:bug bugzilla:16559
19098N/APatch21: xscreensaver-21-verbose.diff
20272N/A# date:2011-05-10 owner:arvind type:bug bugster:7033508
20272N/APatch22: xscreensaver-22-bug-7033508.diff
16799N/A
16799N/A# date:2008-03-07 owner:alanc type:branding
16864N/APatch101: rss-glx-101-matrixview.diff
16799N/A# date:2008-03-07 owner:alanc type:branding
16864N/APatch102: rss-glx-102-install-util.diff
16799N/A
16799N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWglib2
16799N/ARequires: SUNWgnome-a11y-libs
16799N/ARequires: SUNWgnome-component
16799N/ARequires: SUNWgnome-config
16799N/ARequires: SUNWgtk2
16799N/ARequires: SUNWlibatk
16799N/ARequires: SUNWlibglade
16799N/ARequires: SUNWlibmsr
16799N/ARequires: SUNWlxmlr
16799N/ARequires: SUNWpango
20857N/ABuildRequires: runtime/perl-512
20239N/ABuildRequires: SUNWxwplt
17053N/ABuildRequires: SUNWarc
17053N/ABuildRequires: SUNWbtool
16799N/ABuildRequires: SUNWhea
17053N/ABuildRequires: SUNWggrp
16799N/ABuildRequires: SUNWglib2-devel
16799N/ABuildRequires: SUNWgnome-a11y-libs-devel
16799N/ABuildRequires: SUNWgnome-component-devel
17053N/ABuildRequires: SUNWgnome-common-devel
16799N/ABuildRequires: SUNWgnome-config-devel
16799N/ABuildRequires: SUNWgtk2-devel
16799N/ABuildRequires: SUNWlibatk-devel
16799N/ABuildRequires: SUNWlibglade-devel
16799N/ABuildRequires: SUNWlxml-devel
16799N/ABuildRequires: SUNWpango-devel
17053N/ABuildRequires: SUNWtoo
16799N/ABuildRequires: SUNWxwinc
20857N/ABuildRequires: system/library/libdbus
20857N/ABuildRequires: consolidation/desktop/gnome-incorporation
16799N/A
16799N/A%package hacks
18796N/AIPS_package_name: %{pkg5_name_hacks}
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - display mode modules
18793N/ASUNW_Desc: Modules that provide different display modes (hacks) for XScreenSaver
16799N/ASUNW_BaseDir: %{_basedir}
16799N/ASUNW_Copyright: %{name}-hacks.copyright
19013N/AVersion: %{src_version}
16799N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
16799N/ARequires: %{name}
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWglib2
16799N/ARequires: SUNWgtk2
16799N/ARequires: SUNWlibmsr
20239N/ABuildRequires: SUNWxwplt
16799N/A
16799N/A%package hacks-gl
18796N/AIPS_package_name: %{pkg5_name_hacks_gl}
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - OpenGL display mode modules
18793N/ASUNW_Desc: Modules that provide different OpenGL-based display modes (hacks) for the screen saver
16799N/ASUNW_BaseDir: %{_basedir}
16799N/ASUNW_Copyright: %{name}-hacks-gl.copyright
17023N/ALicense: MIT, GPL v2
19013N/AVersion: %{src_version}
16799N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
16799N/ARequires: %{name}
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWglib2
16799N/ARequires: SUNWgtk2
16799N/ARequires: SUNWlibmsr
16799N/ARequires: SUNWxorg-mesa
20239N/ABuildRequires: SUNWxwplr
20239N/ABuildRequires: SUNWxwplt
17996N/A%define opengl_dir /usr
16799N/A
16799N/A%package -n SUNWrss-glx
18796N/AIPS_package_name: %{pkg5_name_hacks_rss}
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - Really Slick ScreenSaver OpenGL display modules
18793N/ASUNW_Desc: Modules that provide additional OpenGL-based display modes (hacks) for XScreenSaver
16799N/ASUNW_BaseDir: %{_basedir}
16799N/ASUNW_Copyright: SUNWrss-glx.copyright
17023N/ALicense: GPL v2
16799N/AVersion: %{rss_version}
16799N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
16799N/ARequires: %{name}
16799N/ARequires: SUNWbzip
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWimagick
16799N/ARequires: SUNWlibC
16799N/ARequires: SUNWlibmsr
16799N/ARequires: SUNWxorg-mesa
20239N/ABuildRequires: SUNWxwplr
20239N/ABuildRequires: SUNWxwplt
16799N/A
16799N/A%package l10n
16799N/ASummary: XScreenSaver - l10n content
16799N/ARequires: %{name}
16799N/A
16799N/A%prep
16799N/A%setup -q -n %{src_dir}
18252N/Abzcat %SOURCE5 | tar xf -
18252N/Acd po-sun; make; cd ..
16799N/A%patch1 -p1
16799N/A%patch2 -p1
16799N/A%patch3 -p1
16799N/A%patch4 -p1
16799N/A%patch5 -p1
16799N/A%patch6 -p1
16799N/A%patch7 -p1
16799N/A%patch8 -p1
16799N/A%patch9 -p1
16799N/A%patch10 -p1
16799N/A%patch11 -p1
16799N/A%patch12 -p1
16799N/A%patch13 -p1
16799N/A%patch14 -p1
16799N/A%patch15 -p1
16799N/A%patch16 -p1
16799N/A%patch17 -p1
16799N/A%patch18 -p1
18801N/A%patch19 -p1
16799N/A%patch20 -p1
19098N/A%patch21 -p1
20272N/A%patch22 -p1
16799N/A
16799N/Achmod a+x install-sh configure
16799N/A
16799N/Acp %SOURCE2 driver/opensolaris-logo.png
16799N/A%if %option_with_sun_branding
16937N/Abzcat %SOURCE3 | tar xf -
16937N/Amv solaris-lockscreen-logos/unlock-logo.png driver/unlock-logo.png
16937N/Amv solaris-lockscreen-logos/trusted-logo.png driver/trusted-logo.png
16799N/A%else
16799N/Aln -s opensolaris-logo.png driver/unlock-logo.png
16799N/Aln -s opensolaris-logo.png driver/trusted-logo.png
16799N/A%endif
16799N/A
16799N/A# Adjust man pages to Solaris standards:
16799N/A# - add paths to synopsis
16799N/A# - add attributes section to end with package info & stability
16937N/A%define suntouch_manpages_cmd /usr/perl5/bin/perl %SOURCE4
16799N/A%{suntouch_manpages_cmd} \
18372N/A -a '{Availability, %{pkg5_name_base}}' \
16799N/A -a '{Interface Stability, Volatile}' \
16799N/A -p %{_prefix}/bin/ \
16799N/A driver/xscreensaver.man \
16799N/A driver/xscreensaver-command.man \
16799N/A driver/xscreensaver-demo.man
16799N/A%{suntouch_manpages_cmd} \
18372N/A -a '{Availability, %{pkg5_name_base}}' \
16799N/A -a '{Interface Stability, Private}' \
16799N/A -p %{xss_libdir}/bin/ \
16799N/A driver/xscreensaver-get*.man \
16799N/A driver/xscreensaver-text.man
16799N/A%{suntouch_manpages_cmd} \
18372N/A -a '{Availability, %{pkg5_name_hacks}}' \
16799N/A -a '{Interface Stability, Private}' \
16799N/A -p %{xss_libdir}/hacks/ \
16799N/A hacks/*.man
16799N/A%{suntouch_manpages_cmd} \
18372N/A -a '{Availability, %{pkg5_name_hacks_gl}}' \
16799N/A -a '{Interface Stability, Private}' \
16799N/A -p %{xss_libdir}/hacks/ \
16799N/A hacks/glx/*.man
16799N/A
19033N/Acp %{SOURCE6} driver/
19033N/Acp %{SOURCE7} driver/
19033N/Acp %{SOURCE8} driver/
19033N/A
16799N/A%setup1 -q -n %{rss_name}_%{rss_version}
16799N/A
16799N/A%patch101 -p1
16799N/A%patch102 -p1
16799N/A
16799N/A%{suntouch_manpages_cmd} \
18372N/A -a '{Availability, %{pkg5_name_hacks_rss}}' \
16799N/A -a '{Interface Stability, Private}' \
16799N/A -p %{xss_libdir}/hacks/ \
16799N/A src/*.1
16799N/A
16799N/A
16799N/A# Clear pictures we don't want in build
16799N/Arm -f src/matrixview_textures/cpics
16799N/Atouch src/matrixview_textures/cpics
16799N/A
16799N/A%build
16799N/A
16799N/ACPUS=$(/usr/sbin/psrinfo | grep -c on-line)
16799N/Aif test "x${CPUS}" = "x" -o ${CPUS} = 0; then
16799N/A CPUS=1
16799N/Afi
18793N/AMAKEFLAGS=-j${CPUS}
16799N/A
16799N/A# Mapfile flags copied from X - these are generically good for all libraries
16799N/A# and applications and should probably move to Solaris.inc in the future.
16799N/A# See the comments in each mapfile for a description of what it does.
16799N/A
16799N/A# Mark the stack and as much of heap/data as possible non-executable,
16799N/A# so that it's harder for attackers to exploit buffer overflows
16799N/A# SPARC architecture requires PLT section in .data be executable, so
16799N/A# we can only make .bss, not all of .data no-exec on SPARC
19027N/A
20331N/A%define mapfile_noexbss -Wl,-M,/usr/lib/ld/map.noexbss
16799N/A%ifarch sparc
18778N/A%define mapfile_noexdata %{mapfile_noexbss}
16799N/A%else
18778N/A%define mapfile_noexdata -Wl,-M,/usr/lib/ld/map.noexdata
16799N/A%endif
16799N/A%define mapfile_noexstack -Wl,-M,/usr/lib/ld/map.noexstk
16799N/A# Alignment directives for more efficient memory/page mappings
16799N/A%define mapfile_pagealign -Wl,-M,/usr/lib/ld/map.pagealign
20331N/A%define mapfile_heapalign -Wl,-M,/usr/lib/ld/map.bssalign
16799N/A
16799N/A# Flags useful for libraries, shared objects, and programs
18778N/A%define mapfiles_for_all %{mapfile_pagealign} %{mapfile_noexdata}
16799N/A# Flags only useful for programs, not libraries/shared objects
18778N/A%define mapfiles_for_progs %{mapfile_heapalign} %{mapfile_noexstack} %{mapfile_noexbss}
16799N/A
16799N/A# XScreenSaver
16799N/A
16799N/APKG_CONFIG_DISABLE_UNINSTALLED=
16799N/Aunset PKG_CONFIG_DISABLE_UNINSTALLED
16799N/A
16799N/Aexport PATH=/usr/perl5/bin:${PATH}
16799N/Aexport PERL=/usr/perl5/bin/perl
16799N/Aexport XGETTEXT=/usr/gnu/bin/xgettext
16799N/Aexport GNOME_DATADIR='%{xss_libdir}/config'
16799N/Aexport GLADE_DATADIR='%{xss_libdir}/config'
16799N/A
17996N/Acd %{_builddir}/%{src_dir}
17996N/A
17996N/A# Force building with mesa headers & libraries to make sure we build the
17996N/A# same on all systems, whether or not proprietary GL from Sun or nVidia is
17996N/A# also installed and don't end up accidentally depending on those.
17996N/A# Unfortunately, xscreensaver is hardcoded to use <GL/gl.h> style paths,
17996N/A# so we create local install path to work around that.
17996N/Amkdir -p mesa/GL
17996N/Aln -s /usr/include/mesa/*.h mesa/GL
17996N/A%define mesa_includes -I%{_builddir}/%{src_dir}/mesa
17996N/A%define mesa_libpath -L/usr/lib/mesa
17996N/A
16799N/A# Additional optimization flags, to make the hacks show off the hardware
16799N/A# better and because for just a screensaver display we can get away with
16799N/A# using optimizations that may change strict correctness of floating point ops.
16799N/A%if %cc_is_gcc
16799N/A%define extra_opt_flags -funsafe-math-optimizations
18837N/A%define c_warning_flags -Wall
18837N/A%define cxx_warning_flags -Wall
16799N/A%else
16799N/A%define extra_opt_flags -fsimple=2 -nofstore -xlibmil -xprefetch
18837N/A%define c_warning_flags -v
18837N/A%define cxx_warning_flags +w2
16799N/A%endif
16799N/A
18837N/Aexport CFLAGS="%c_warning_flags %optflags %extra_opt_flags %mesa_includes"
18837N/Aexport CXXFLAGS="%cxx_warning_flags %cxx_optflags %extra_opt_flags %mesa_includes"
17996N/Aexport LDFLAGS="%mesa_libpath %_ldflags %mapfiles_for_all %mapfiles_for_progs"
16799N/A
16799N/A# Several patches change configure.in & Makefile.in files, so autoreconf
16799N/Aautoreconf -v --install --force
16799N/A
16799N/A./configure --enable-maintainer-mode \
16799N/A --with-gnome --enable-gtk-doc --with-gtk2=/usr --with-pixbuf=/usr \
16799N/A --enable-locking --with-pam=/usr --without-shadow --without-kerberos \
19033N/A --with-dpms --with-xinput-ext --with-randr-ext --enable-root-passwd \
16799N/A --with-gl=%{opengl_dir} --without-motif --with-jpeg=/usr \
17382N/A --prefix=%{_prefix} \
16799N/A --datadir=%{_datadir} \
16799N/A --mandir=%{_mandir} \
16799N/A --localstatedir=%{_localstatedir} \
16799N/A --libexecdir=%{xss_libdir}/bin \
16799N/A --with-hackdir=%{xss_libdir}/hacks \
16799N/A --with-configdir=%{xss_libdir}/config/control-center-2.0 \
17382N/A --with-image-directory=%{_datadir}/pixmaps/backgrounds \
16799N/A --with-text-file=/etc/motd \
17997N/A --with-x-app-defaults=%{app_defaults_dir}
16799N/A
16799N/A# Update potfiles.in to pick up our added sources like lock-Gtk.c
16799N/Acd po
18778N/Amake generate_potfiles_in -o Makefile
18778N/Amake POTFILES -o Makefile
18778N/A# FIXME: hack, add "-o Makefile" to avoid looping.
18778N/Amake generate_potfiles_in POTFILES xscreensaver.pot -o Makefile
16799N/A
16799N/Acd %{_builddir}/%{src_dir}
16799N/A
18778N/A# FIXME: hack: stop the build from looping
18778N/Atouch po/stamp-it
16799N/A
18778N/Amake ${MAKEFLAGS}
16799N/A
19033N/Acd %{_builddir}/%{src_dir}/driver
19033N/Afor f in *.p5i.in ; do
19033N/A sed 's/@PUBLISHER@/%{pkg5_publisher}/' $f > $(basename $f .in)
19033N/Adone
19033N/A
16799N/A# RSS-GLX hacks
16799N/Acd %{_builddir}/%{rss_dir}
16799N/A./configure \
16799N/A --disable-sound \
16799N/A --prefix=%{xss_libdir} \
16799N/A --bindir='$(prefix)/hacks' \
16799N/A --localstatedir=%{_localstatedir} \
16799N/A --mandir=%{_mandir} \
16799N/A --with-configdir=%{xss_libdir}/config/control-center-2.0 \
16799N/A CPPFLAGS="-D_FILE_OFFSET_BITS=64"
16799N/A
16799N/Amake ${MAKEFLAGS}
16799N/A
16799N/A%install
16799N/A
16799N/Arm -rf ${RPM_BUILD_ROOT}
16799N/A
19059N/Amkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart
19059N/Acp -p %{SOURCE9} ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart
19059N/Achmod 444 ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
19059N/A
16799N/Acd %{_builddir}/%{src_dir}
16799N/Achmod a+x install-sh intltool-*
16799N/Amake -e install_prefix=${RPM_BUILD_ROOT} SHELL=/bin/bash install
16799N/Acp -pf driver/*-logo.png ${RPM_BUILD_ROOT}%{xss_libdir}/config/
16799N/Acp -pf utils/images/logo-180.gif ${RPM_BUILD_ROOT}%{xss_libdir}/config/
19033N/Acp -pf driver/*.p5i ${RPM_BUILD_ROOT}%{xss_libdir}/config/
16799N/A
16799N/Amv ${RPM_BUILD_ROOT}%{_bindir}/xscreensaver-get* \
16799N/A ${RPM_BUILD_ROOT}%{_bindir}/xscreensaver-text \
16799N/A ${RPM_BUILD_ROOT}%{xss_libdir}/bin
16799N/A
16799N/A# Remove hacks we've chosen not to ship at all for various reasons
16799N/AREMOVED_HACKS="extrusion flyingtoasters ljlatest sonar webcollage"
16799N/Afor h in ${REMOVED_HACKS} ; do
16799N/A rm -f ${RPM_BUILD_ROOT}%{xss_libdir}/hacks/${h} \
18778N/A ${RPM_BUILD_ROOT}%{_mandir}/man6/${h}.6 \
18778N/A ${RPM_BUILD_ROOT}%{xss_libdir}/config/control-center-2.0/${h}.xml
16799N/Adone
16799N/Arm -f ${RPM_BUILD_ROOT}%{xss_libdir}/hacks/webcollage-helper
16799N/A
16799N/Acd %{_builddir}/%{rss_dir}
16799N/Amake install DESTDIR=${RPM_BUILD_ROOT}
16799N/A# Move rss-glx man pages to section 6 (games/amusements) to match xscreensaver
16799N/Afor m in */*.1 ; do
18778N/A mv ${RPM_BUILD_ROOT}%{_mandir}/man1/$(basename $m) \
18778N/A ${RPM_BUILD_ROOT}%{_mandir}/man6/$(basename $m .1).6 ; \
16799N/Adone
16799N/A# Don't need to ship static libraries in the package
16799N/Arm ${RPM_BUILD_ROOT}%{xss_libdir}/lib/lib*.a \
16799N/A ${RPM_BUILD_ROOT}%{xss_libdir}/lib/lib*.la
16799N/Armdir ${RPM_BUILD_ROOT}%{xss_libdir}/lib
16799N/A
16799N/A# Run script to add rss-glx hacks to XScreenSaver app-defaults, then delete it
16799N/A${RPM_BUILD_ROOT}%{xss_libdir}/hacks/rss-glx_install.pl \
17997N/A ${RPM_BUILD_ROOT}%{app_defaults_dir}/XScreenSaver
17997N/Achmod 0444 ${RPM_BUILD_ROOT}%{app_defaults_dir}/XScreenSaver
16799N/Arm ${RPM_BUILD_ROOT}%{xss_libdir}/hacks/rss-glx_install.pl
16799N/A
18214N/Acd ${RPM_BUILD_ROOT}
16799N/A
17382N/A# Make compatibility links for SUNWxscreensaver
17382N/Ainstall -m 755 -d usr/X11
17382N/A
17382N/Ainstall -m 755 -d usr/X11/bin
17382N/Aln -s ../../bin/xscreensaver \
18778N/A ../../bin/xscreensaver-command \
18778N/A ../../bin/xscreensaver-demo \
18778N/A usr/X11/bin
17382N/A
17382N/Ainstall -m 755 -d usr/X11/lib
17382N/Aln -s ../../lib/xscreensaver usr/X11/lib
17382N/A
17997N/Ainstall -m 755 -d usr/X11/lib/X11/app-defaults
17997N/Aln -s ../../../../share/X11/app-defaults/XScreenSaver \
18778N/A usr/X11/lib/X11/app-defaults
17997N/A
16799N/A# This function prints a list of things that get installed.
16799N/A# It does this by parsing the output of a dummy run of "make install".
16799N/A# Borrowed/modified from Fedora Project RPM for xscreensaver at
16799N/A# http://cvs.fedoraproject.org/viewvc/rpms/xscreensaver/devel/xscreensaver.spec
16799N/Alist_files() {
16799N/A echo '%%defattr(-,root,bin)'
17382N/A echo '%%dir %%attr(0755, root, bin) %%{xss_libdir}'
16799N/A echo '%%dir %%attr(0755, root, bin) %%{xss_libdir}/hacks'
16799N/A echo '%%dir %%attr(0755, root, bin) %%{xss_libdir}/config/control-center-2.0'
17382N/A echo '%%dir %%attr(0755, root, sys) %%{_datadir}'
17382N/A echo '%%dir %%attr(0755, root, bin) %%{_mandir}'
16799N/A echo '%%dir %%attr(0755, root, bin) %%{_mandir}/man6'
16799N/A REMOVED_LIST=$(echo ${REMOVED_HACKS} | tr ' ' '\n')
16799N/A make -s INSTALL=true SHELL=/bin/bash DESTDIR=${RPM_BUILD_ROOT} "$@" \
16799N/A | tr -d "'" \
16799N/A | grep -v -w -e "${REMOVED_LIST}" \
16799N/A | sed -n -e 's@.* \(/[^ ]*\)$@\1@p' \
16799N/A | sed -e "s@^${RPM_BUILD_ROOT}@@" \
16799N/A -e "s@/[a-z][a-z]*/\.\./@/@" \
16799N/A -e 's@/man1/\(.*\)\.1$@/man6/\1.6@' \
16799N/A -e 's@\(.*/man/.*\)@%%doc \1@' \
16799N/A | sort -u
16799N/A}
16799N/A
17996N/A# Make sure that there were at least some files found
17996N/Acheck_list() {
17996N/A grep -v -q '%%' "$@" || {
17996N/A echo ERROR: no hacks found in $@
17996N/A exit 1
17996N/A }
17996N/A}
17996N/A
16799N/A# Make lists of which hacks go into which addon package
16799N/A
16799N/Acd %{_builddir}/%{src_dir}
16799N/A(cd hacks ; list_files install ) > hacks.files
17996N/Acheck_list hacks.files
17996N/A
16799N/A(cd hacks/glx ; list_files install ) > hacks-gl.files
17996N/Acheck_list hacks-gl.files
16799N/A
16799N/Acd %{_builddir}/%{rss_dir}
16799N/A(cd src ; list_files install-data-am install-exec-am ) > rss-glx.files
17996N/Acheck_list rss-glx.files
16799N/A
16799N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -s -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
16799N/A
16799N/A%clean
16799N/Arm -rf ${RPM_BUILD_ROOT}
16799N/A
16799N/A%files
16799N/A%defattr (-, root, bin)
16799N/A
19059N/A%dir %attr(0755, root, sys) %{_prefix}
19059N/A
16799N/A%dir %attr(0755, root, bin) %{_bindir}
16799N/A# xscreensaver must be setuid root in order to do PAM authentication
16799N/A%attr (4555, root, bin) %{_bindir}/xscreensaver
16799N/A%{_bindir}/xscreensaver-command
16799N/A%{_bindir}/xscreensaver-demo
16799N/A
16799N/A%dir %attr(0755, root, bin) %{_libdir}
16799N/A%dir %attr(0755, root, bin) %{xss_libdir}
16799N/A%dir %attr(0755, root, bin) %{xss_libdir}/bin
16799N/A%{xss_libdir}/bin/xscreensaver-lock
16799N/A%{xss_libdir}/bin/xscreensaver-getimage*
16799N/A%{xss_libdir}/bin/xscreensaver-text
16799N/A
16799N/A%dir %attr(0755, root, bin) %{xss_libdir}/config
16799N/A%{xss_libdir}/config/xscreensaver-demo.glade2
16799N/A%{xss_libdir}/config/*.png
16799N/A%{xss_libdir}/config/*.gif
19033N/A%{xss_libdir}/config/*.p5i
16799N/A
16799N/A%dir %attr(0755, root, bin) %{xss_libdir}/config/control-center-2.0
16799N/A%doc %{xss_libdir}/config/control-center-2.0/README
16799N/A
16799N/A%dir %attr(0755, root, bin) %{_mandir}
16799N/A%dir %attr(0755, root, bin) %{_mandir}/man1
16799N/A%{_mandir}/man1/xscreensaver*.1
16799N/A
17997N/A%dir %attr(0755, root, sys) %{_datadir}
16799N/A
17997N/A%dir %attr(0755, root, bin) %{_datadir}/X11
17997N/A%dir %attr(0755, root, bin) %{app_defaults_dir}
17997N/A%{app_defaults_dir}/XScreenSaver
17997N/A
17382N/A%dir %attr(0755, root, other) %{_datadir}/applications
18778N/A%{_datadir}/applications/xscreensaver-properties.desktop
17382N/A
17382N/A%dir %attr(0755, root, other) %{_datadir}/pixmaps
17382N/A%{_datadir}/pixmaps/xscreensaver.xpm
16799N/A
19059N/A%attr (0755, root, sys) %dir %{_sysconfdir}
19059N/A%attr (0755, root, sys) %dir %{_sysconfdir}/xdg
19059N/A%attr (0755, root, sys) %dir %{_sysconfdir}/xdg/autostart
19059N/A%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
19059N/A
17382N/A# compatibility links for old /usr/X11 paths
17997N/A%define x11_dir /usr/X11
17382N/A%dir %attr(0755, root, bin) %{x11_dir}
17382N/A%dir %attr(0755, root, bin) %{x11_dir}/bin
17382N/A%{x11_dir}/bin/*
17382N/A%dir %attr(0755, root, bin) %{x11_dir}/lib
17382N/A%{x11_dir}/lib/xscreensaver
17997N/A%dir %attr(0755, root, bin) %{x11_dir}/lib/X11
17997N/A%dir %attr(0755, root, bin) %{x11_dir}/lib/X11/app-defaults
17997N/A%{x11_dir}/lib/X11/app-defaults/XScreenSaver
16799N/A
16799N/A%files -f hacks.files hacks
16799N/A
16799N/A%files -f hacks-gl.files hacks-gl
16799N/A
16799N/A%files -f ../%{rss_dir}/rss-glx.files -n SUNWrss-glx
16799N/A
16799N/A%files l10n
16799N/A%defattr (-, root, bin)
16799N/A%dir %attr (0755, root, sys) /usr/share
16799N/A%attr (-, root, other) /usr/share/locale
16799N/A
16799N/A%changelog
20829N/A* Wed Aug 15 2011 -arvind.umrao@oracle.com
20829N/A Updated xscreensaver-06-gtk-lock.diff for bug 7072588
20353N/A* Fri Jun 10 2011 - jeff.cai@oracle.com
20353N/A- Merge patch -23 with patch6
20344N/A* Thu Jun 9 2011 - jeff.cai@oracle.com
20345N/A- Add patch -23-bug-7007267, this bug fixes the a11y does not work with orca.
20331N/A* Thu Jun 2 2011 - alan.coopersmith@oracle.com
20331N/A Remove temporary workaround for linker bug 6988300 since it was fixed
20331N/A in snv_151.
20272N/A* Mon May 10 2011 -arvind.umrao@oracle.com
20272N/A Added xscreensaver-22-bug-7033508.diff
19844N/A* Tue Dec 21 2010 - alan.coopersmith@oracle.com
19844N/A Update xscreensaver-11-pam_audit.diff to completely disable fallback to
19844N/A non-audited non-PAM direct getpwent authentication backend.
19117N/A* Fri Nov 12 2010 - alan.coopersmith@oracle.com
19117N/A Add xscreensaver-05-atoms.diff, drop xscreensaver-11-OpenSolaris-colors.diff
19117N/A Renumber patches in between.
19098N/A* Wed Nov 10 2010 - alan.coopersmith@oracle.com
19098N/A- d.o.o Bug 16559 - xscreensaver shows extra messages
19098N/A Makes various messages only show up in verbose mode.
19098N/A- Stop calling deprecated GDK_DISPLAY in xscreensaver-lock.
19098N/A Avoid segfault when manually running xscreensaver-lock.
19059N/A* Mon Oct 25 2010 - alan.coopersmith@oracle.com
19059N/A Move xscreensaver.desktop here from SUNWgnome-screensaver.spec (it fixes
19059N/A d.o.o Bug 10771 - [gnome2.28] xscreensaver fails to start on login )
19027N/A* Wed Oct 20 2010 alan.coopersmith@oracle.com
19033N/A Backport to gnome-2-30 branch:
19033N/A - Add *.p5i files & update xscreensaver-04-solaris-paths.diff for doo #10681:
19033N/A xscreensaver-demo should offer .p5i links to install hacks packages
19033N/A - Bump to upstream 5.12, renumber remaining patches
19033N/A - Updated xscreensaver-13-trusted.diff to fix CR 6955133
19033N/A* Wed Oct 20 2010 alan.coopersmith@oracle.com
19027N/A- Temporarily disable mapfiles that trigger linker bug 6988300 until build
19027N/A machines are all upgraded to WOS build snv_151 or later.
18949N/A* Thu Jul 22 2010 - alan.coopersmith@oracle.com
18949N/A- Change SUNW_Desc to use ' instead of " to avoid bugs like 16602.
18940N/A* Wed Jun 30 2010 - arvind.umrao@sun.com
18940N/A- Added xscreensaver-27-bug-6964562.diff
18914N/A* Tue Jun 22 2010 - alan.coopersmith@oracle.com
18914N/A- Added xscreensaver-26-demo-accessibility.diff - adds ATK relationship
18914N/A metadata to xscreensaver-demo (preferences app) to fix CR 6199780 & 6232612.
18911N/A* Tue Jun 22 2010 -arvind.umrao@sun.com
18911N/A- Updated xscreensaver-13-trusted.diff to fix CR 6955133
18911N/A- Updated xscreensaver-07-allow-root.diff to fix root login of screensaver
18889N/A* Thu Jun 17 2010 - arvind.umrao@sun.com
18883N/A- Updated xscreensaver-13-trusted.diff to fix CR 6955133
18875N/A* Tue Jun 15 2010 - alan.coopersmith@oracle.com
18875N/A- Make 'asterisks' setting in xscreensaver app-defaults file work, restore
18875N/A default to upstream value of true to preserve existing behavior.
18875N/A- Capture keystrokes that arrive before the unlock dialog opens and replay
18875N/A them into the dialog once it appears.
18875N/A- Remove some more unnecessary differences from upstream code.
18859N/A* Wed Jun 9 2010 - alan.coopersmith@oracle.com
18859N/A- Fix 16207 xscreensaver cores when a correct or incorrect password is entered
18859N/A http://defect.opensolaris.org/bz/show_bug.cgi?id=16207
18859N/A by removing incorrect addition of free(msg) from patch 6, since msg
18859N/A is now a static/constant string that isn't malloc'ed
18858N/A* Thu Jun 10 2010 - arvind.umrao@sun.com
18858N/A- Updated xscreensaver-06-gtk-lock.diff to fix 6957754
18828N/A* Fri Jun 4 2010 - alan.coopersmith@oracle.com
18859N/A- Fix issues handling LoginHelper settings for accessibility
18859N/A applications that need special handling.
18838N/A- Fix startup of unlock countdown timer animation to be more reliable.
18837N/A- Set correct warning flags for Sun cc vs. gcc
18837N/A- Ignore errors from XRestackWindows, since there's always a race condition
18837N/A possible if the other client destroys its window before we process the
18837N/A notify event and get through the call to XRestackWindows.
18828N/A- When destroying windows (such as when changing screensaver "hacks" to one
18828N/A with a different visual), purge any queued VisibilityNotify events so we
18828N/A don't get XErrors when we process them and try to restack a destroyed window.
18828N/A- Pass through some additional messages from the upstream code, like the
18828N/A "(Caps Lock?)" when authentication fails & Caps Lock was on and the counts
18828N/A of failed login attempts.
18815N/A* Wed Jun 2 2010 - alan.coopersmith@oracle.com
18815N/A- Use gnome-help to display man pages instead of running "man" in a terminal
18812N/A* Tue Jun 1 2010 - alan.coopersmith@oracle.com
18812N/A- Fix XErrors from XRestackWindow calls by major overhaul of accessibility
18812N/A and parent/child communication code.
18812N/A- Merge patch 18 into patch 6, renumber patches 19-25 to fill the hole
18812N/A- Remove some unnecessary changes from patches
18796N/A* Thu May 27 2010 - brian.cameron@oracle.com
18796N/A- Fixed prompting for new password when a users password is expired.
18796N/A- Improve appearance of unlock dialog
18793N/A* Wed May 26 2010 - alan.coopersmith@oracle.com
18793N/A- Merge patches 18 & 19
18793N/A- Move %descriptions to SUNW_Desc in spec file
18793N/A- Make code more readable/maintainable by cleaning up comments,
18793N/A making formatting & indentation consistent.
18793N/A- Fix some copyright dates based on history from X gate
18793N/A- Change a few more #ifdef sun to #ifdef __sun for consistency.
18789N/A* Wed May 26 2010 - arvind.umrao
18789N/A- Added patch xscreensaver-26-bug-xrandr.diff for bug bugster:6757448,6924996
18778N/A* Tue May 25 2010 - brian.cameron@oracle.com
18778N/A- Bump to 5.11. Remove upstream patches. Merge several patches so that
18778N/A patches do not apply on top of other patches so much. Cleanup.
18446N/A* Fri Mar 12 2010 - alan.coopersmith@sun.com
18446N/A- Remove obsolete SUNWxwsvr (only had /usr/openwin->X11 symlinks that
18446N/A are not needed on IPS-installed machines)
18372N/A* Mon Mar 1 2010 - alan.coopersmith@sun.com
18372N/A- Use new IPS package names in man page attributes setting in .spec file
18372N/A and in hacks packages message in xscreensaver-05-solaris-paths.diff
18372N/A- Fix http://defect.opensolaris.org/bz/show_bug.cgi?id=14955 in
18372N/A xscreensaver-05-solaris-paths.diff
18302N/A* Mon Feb 15 2010 - arvind.umrao@sun.com
18302N/A- Add xscreensaver-53-bug-6924996.diff to fix CR#6924996
18252N/A* Thu Feb 04 2010 - harry.fu@sun.com
18252N/A- Add po-sun translations.
18183N/A* Tue Jan 26 2010 - dave.lin@sun.com
18183N/A- Mark SUNWxwsvr as Nevada only package.
18009N/A* Thu Dec 31 2009 - naveen.gundlagutta@sun.com
18009N/A- 6865652: Add xscreensaver-50-bug-6865652.diff to disable restart, kill options in xscreensaver-demo in trusted solaris
18009N/A- 6832923: Add xscreensaver-52-bug-6832923.diff to prevent xscreensaver from crashing in sunray.
17996N/A* Wed Dec 23 2009 - alan.coopersmith@sun.com
17997N/A- Move app-defaults file to /usr/share/X11/app-defaults
17996N/A- Build against mesa headers/libraries on both SPARC & x86 now that
17996N/A SUNWxorg-mesa is delivered on SPARC in snv_130
17996N/A- Report error if none of the GL hacks were built instead of quietly
17996N/A building empty packages for them
17981N/A* Tue Dec 22 2009 - alan.coopersmith@sun.com
17982N/A- Add xscreensaver-51-dpms-headers.diff to build with snv_130 X headers
17981N/A- Use /usr/lib/ld/map.noexbss now that it's shipped in snv_125 & later
17981N/A builds (CR 6843010)
17566N/A* Mon Oct 19 2009 - alan.coopersmith@sun.com
17566N/A- Change default DPMS settings to match Xorg 1.7 defaults (10 minutes)
17566N/A- Merge xscreensaver-32-XScr.ad.lockTimeout.diff
17566N/A into xscreensaver-03-Sun.app-defaults.diff
17566N/A- Fix patch 9 & 22 to apply cleanly to the new patch 3 results
17382N/A* Wed Sep 23 2009 - alan.coopersmith@sun.com
17382N/A- Move files from /usr/X11 to /usr (PSARC 2009/482)
18302N/A* Thu Sep 10 2009 - arvind.umrao@sun.com
18302N/A- Add xscreensaver-47-bug-6859039.diff to fix 6839026
17087N/A* Mon Aug 24 2009 - alan.coopersmith@sun.com
17087N/A- 6875124 Broken link in package SUNWxwsvr
17053N/A* Mon Aug 17 2009 - alan.coopersmith@sun.com
17053N/A- Add more BuildRequires
17023N/A* Thu Aug 13 2009 - alan.coopersmith@sun.com
17023N/A- Add Vendor & License tags
16943N/A* Fri Jul 31 2009 - alan.coopersmith@sun.com
16943N/A- forward port xscreensaver-47-bug-6859039.diff from new X gate putback
16937N/A* Thu Jul 30 2009 - alan.coopersmith@sun.com
16937N/A- move Solaris branding logos to solaris-lockscreen-logos-1.0.tar.bz2
16864N/A* Fri Jul 24 2009 - alan.coopersmith@sun.com
16864N/A- rename patches from *.patch to *.diff
16799N/A* Fri Jul 17 2009 - alan.coopersmith@sun.com
16799N/A- initial version (moved from X gate)