SUNWxscreensaver.spec revision 18801
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#
18793N/A# Copyright (c) 2009, 2010, 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
18778N/A%define src_version 5.11
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
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
18793N/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}
18778N/AVendor: XScreenSaver Community
16799N/ASUNW_BaseDir: %{_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
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
18778N/APatch2: xscreensaver-02-Sun.app-defaults.diff
16799N/A# date:2006-05-10 owner:alanc type:branding,l10n
18778N/APatch3: xscreensaver-03-GNOME-desktop.diff
16799N/A# date:2006-05-10 owner:alanc type:branding bugster:6770336
18778N/APatch4: xscreensaver-04-solaris-paths.diff
16799N/A# date:2006-05-10 owner:alanc type:branding
18778N/APatch5: xscreensaver-05-dont-bug-jwz.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
18779N/A# bugster:6475285,6670659
18778N/APatch6: xscreensaver-06-gtk-lock.diff
16799N/A# date:2006-05-10 owner:ma54148 type:feature bugster:4849641
18778N/APatch7: xscreensaver-07-allow-root.diff
18778N/A# date:2006-05-10 owner:alanc type:feature bugster:5077981,6176524
18778N/APatch8: xscreensaver-08-passwdTimeout-pref.diff
16799N/A# date:2006-05-10 owner:alanc type:feature bugster:5077966,6836372
18778N/APatch9: xscreensaver-09-xinput.diff
16799N/A# date:2006-05-10 owner:alanc type:l10n bugster:6203951
18778N/APatch10: xscreensaver-10-i18n.diff
16799N/A# date:2006-05-10 owner:alanc type:feature
18778N/APatch11: xscreensaver-11-dpms.diff
16799N/A# date:2006-05-10 owner:alanc type:bug bugster:4832530
18778N/APatch12: xscreensaver-12-gl-error-capture.diff
16799N/A# date:2006-05-10 owner:johnfisc type:feature
18778N/A# bugster:6673036,6451477,6698996,6845488,6845488
18778N/APatch13: xscreensaver-13-trusted.diff
16799N/A# date:2006-06-07 owner:ma54148 type:feature
16799N/A# bugster:5015296,6417168,6654320
18778N/APatch14: xscreensaver-14-pam_audit.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
16799N/A%if %option_with_sun_branding
18778N/APatch15: xscreensaver-15-Sun-colors.diff
16799N/A%else
18778N/APatch15: xscreensaver-15-OpenSolaris-colors.diff
16799N/A%endif
16799N/A# date:2006-08-09 owner:alanc type:branding
18778N/APatch16: xscreensaver-16-barcode-hack.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
18778N/APatch17: xscreensaver-17-glsnake.diff
18793N/A# date:2006-11-20 owner:samlau type:feature bugster:6461887,6395649,6520014,6736157,6573182
18778N/APatch18: xscreensaver-18-bug-6461887.diff
16799N/A# date:2008-01-03 owner:samlau type:bug bugster:6610282
18801N/APatch19: xscreensaver-19-bug-6610282.diff
16799N/A# date:2008-02-11 owner:uejio type:bug bugster:6583181
18801N/APatch20: xscreensaver-20-bug-6583181.diff
16799N/A# date:2008-02-27 owner:ma54148 type:bug bugster:6585644
18801N/APatch21: xscreensaver-21-notice_events.diff
16799N/A# date:2008-06-03 owner:uejio type:bug bugster:6583247
18801N/APatch22: xscreensaver-22-bug-6583247.diff
16799N/A# date:2009-02-05 owner:alanc type:bug bugster:4802301
18801N/APatch23: xscreensaver-23-bug-4802301.diff
16943N/A# date:2009-07-31 owner:bp230705 type:bug bugster:6859039
18801N/APatch24: xscreensaver-24-bug-6859039.diff
18789N/A# date:2010-05-26 owner:john.fischer & arvind.umrao type:bug bugster:6757448,6924996
18801N/APatch25: xscreensaver-25-bug-xrandr.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
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
16799N/ARequires: SUNWperl584core
16799N/ARequires: SUNWxwplt
16799N/ARequires: SUNWxorg-clientlibs
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
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
16799N/A# Need to have the 10.0 first so our version number is higher than
16799N/A# the 6.9.0 version number used when delivered from X gate
16799N/AVersion: 10.0%{src_version}
16799N/A%include default-depend.inc
16799N/ARequires: %{name}
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWglib2
16799N/ARequires: SUNWgtk2
16799N/ARequires: SUNWlibmsr
16799N/ARequires: 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
16799N/A# Need to have the 10.0 first so our version number is higher than
16799N/A# the 6.9.0 version number used when delivered from X gate
16799N/AVersion: 10.0%{src_version}
16799N/A%include default-depend.inc
16799N/ARequires: %{name}
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWglib2
16799N/ARequires: SUNWgtk2
16799N/ARequires: SUNWlibmsr
17996N/ARequires: SUNWxwplr
16799N/ARequires: SUNWxwplt
16799N/ARequires: SUNWxorg-mesa
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
16799N/ARequires: %{name}
16799N/ARequires: SUNWbzip
16799N/ARequires: SUNWcslr
16799N/ARequires: SUNWimagick
16799N/ARequires: SUNWlibC
16799N/ARequires: SUNWlibmsr
17996N/ARequires: SUNWxwplr
16799N/ARequires: SUNWxwplt
16799N/ARequires: SUNWxorg-mesa
16799N/A
16799N/A%if %build_l10n
16799N/A%package l10n
16799N/ASummary: XScreenSaver - l10n content
16799N/ASUNW_BaseDir: %{_basedir}
16799N/A%include default-depend.inc
16799N/ARequires: %{name}
16799N/A%endif
16799N/A
16799N/A%prep
16799N/A%setup -q -n %{src_dir}
18252N/A%if %build_l10n
18252N/Abzcat %SOURCE5 | tar xf -
18252N/Acd po-sun; make; cd ..
18252N/A%endif
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
16799N/A%patch21 -p1
16799N/A%patch22 -p1
16799N/A%patch23 -p1
16799N/A%patch24 -p1
16799N/A%patch25 -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
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
18778N/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
16799N/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
16799N/A%else
16799N/A%define extra_opt_flags -fsimple=2 -nofstore -xlibmil -xprefetch
16799N/A%endif
16799N/A
17996N/Aexport CFLAGS="-v %optflags %extra_opt_flags %mesa_includes"
17996N/Aexport CXXFLAGS="+w2 %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 \
16799N/A --with-dpms --enable-dpms --disable-screengrab --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
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
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/
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%if %build_l10n
16799N/A%else
16799N/A# REMOVE l10n FILES
17382N/Arm -rf ${RPM_BUILD_ROOT}%{_datadir}/locale
16799N/A%endif
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
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
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
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%if %build_l10n
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%endif
16799N/A
16799N/A%changelog
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)