SUNWxscreensaver.spec revision 18688
16799N/A#
18372N/A# spec file for xscreensaver packages
18372N/A#
18372N/A# SVR4 names: pkg(5)/IPS names:
18372N/A# SUNWxscreensaver desktop/xscreensaver
18372N/A# SUNWxscreensaver-hacks desktop/xscreensaver/hacks
18372N/A# SUNWxscreensaver-hacks-gl desktop/xscreensaver/hacks/hacks-gl
18372N/A# SUNWrss-glx desktop/xscreensaver/hacks/rss-glx
16799N/A#
16799N/A# includes module(s): xscreensaver, rss-glx
16799N/A#
18372N/A# Copyright 2010 Sun Microsystems, Inc.
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
16799N/A%define src_version 5.01
16799N/A%define src_url http://dlc.sun.com/osol/x/downloads/mirrors
16799N/A%define src_dir %{src_name}-%{src_version}
16799N/A
18372N/A%define pkg5_name_base desktop/xscreensaver
18372N/A%define pkg5_name_hacks desktop/xscreensaver/hacks
18372N/A%define pkg5_name_hacks_gl desktop/xscreensaver/hacks/hacks-gl
18372N/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
18688N/AIPS_package_name: desktop/xscreensaver
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - Screen Saver/Locker for the X Window System
16799N/AVersion: %{src_version}
18615N/AVendor: Sourceforge
16799N/ASUNW_BaseDir: %{_basedir}
16799N/ASUNW_Copyright: %{name}.copyright
17023N/ALicense: MIT
16799N/ABuildRoot: %{_tmppath}/%{name}-%{src_version}-build
16799N/ASource: %{src_url}/%{src_dir}.tar.bz2
16799N/ASource1: %{rss_url}/%{rss_dir}.tar.bz2
16799N/ASource2: xscreensaver-opensolaris-logo.png
16799N/A%if %option_with_sun_branding
16937N/ASource3: solaris-lockscreen-logos-1.0.tar.bz2
16799N/A%endif
16937N/ASource4: suntouch-manpages.pl
18252N/ASource5: %{src_name}-po-sun-%{po_sun_version}.tar.bz2
16799N/A
16799N/A# date:2008-12-15 owner:alanc type:bug bugster:6785377 state:upstream
16864N/APatch1: xscreensaver-01-datarootdir.diff
16799N/A# date:2009-05-19 owner:alanc type:bug bugster:6842304 state:upstream
16864N/APatch2: xscreensaver-02-ldflags.diff
16799N/A# date:2006-05-10 owner:alanc type:branding bugster:6526791
16864N/APatch3: xscreensaver-03-Sun.app-defaults.diff
16799N/A# date:2006-05-10 owner:alanc type:branding,l10n
16864N/APatch4: xscreensaver-04-GNOME-desktop.diff
16799N/A# date:2006-05-10 owner:alanc type:branding bugster:6770336
16864N/APatch5: xscreensaver-05-solaris-paths.diff
16799N/A# date:2006-05-10 owner:alanc type:branding
16864N/APatch6: xscreensaver-06-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
16799N/A# bugster:6845751
16864N/APatch7: xscreensaver-07-gtk-lock.diff
16799N/A# date:2006-05-10 owner:ma54148 type:feature bugster:4849641
16864N/APatch8: xscreensaver-08-allow-root.diff
16799N/A# date:2006-05-10 owner:alanc type:feature bugster:5077981
16864N/APatch9: xscreensaver-09-passwdTimeout-pref.diff
16799N/A# date:2006-05-10 owner:alanc type:feature bugster:5077966,6836372
16864N/APatch10: xscreensaver-10-xinput.diff
16799N/A# date:2006-05-10 owner:alanc type:l10n bugster:6203951
16864N/APatch11: xscreensaver-11-i18n.diff
16799N/A# date:2006-05-10 owner:alanc type:feature
16864N/APatch12: xscreensaver-12-debug-msgs.diff
16799N/A# date:2006-05-10 owner:alanc type:feature
16864N/APatch13: xscreensaver-13-dpms.diff
16799N/A# date:2006-05-10 owner:alanc type:bug bugster:4832530
16864N/APatch14: xscreensaver-14-gl-error-capture.diff
16799N/A# date:2006-05-10 owner:samlau bugster:5077993,5083155,5059445,5039878,6176524
16864N/APatch15: xscreensaver-15-accessibility.diff
16799N/A# date:2006-05-10 owner:johnfisc type:feature
16799N/A# bugster:6673036,6451477,6698996
16864N/APatch16: xscreensaver-16-trusted.diff
16799N/A# date:2006-06-07 owner:ma54148 type:feature
16799N/A# bugster:5015296,6417168,6654320
16864N/APatch17: xscreensaver-17-pam_audit.diff
16799N/A# date:2006-07-21 owner:ma54148 type:bug
16799N/A# bugster:6450019,5015296,6417168
16864N/APatch18: xscreensaver-18-bug-6450019.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
16799N/A%if %option_with_sun_branding
16864N/APatch19: xscreensaver-19-Sun-colors.diff
16799N/A%else
16864N/APatch19: xscreensaver-19-OpenSolaris-colors.diff
16799N/A%endif
16799N/A# date:2006-08-09 owner:alanc type:branding
16864N/APatch20: xscreensaver-20-barcode-hack.diff
16799N/A# date:2006-08-09 owner:alanc type:branding
16864N/APatch21: xscreensaver-21-glsnake.diff
16799N/A# date:2006-09-13 owner:ma54148 type:feature bugster:6448236
16864N/APatch22: xscreensaver-22-allowRootByPassFlag.diff
16799N/A# date:2006-10-24 owner:samlau type:bug bugster:6478841
16864N/APatch23: xscreensaver-23-bug-6478841.diff
16799N/A# date:2006-11-20 owner:samlau type:feature bugster:6461887,6395649
16864N/APatch24: xscreensaver-24-bug-6461887.diff
16799N/A# date:2006-11-22 owner:samlau bugster:6573182,6461887
16864N/APatch25: xscreensaver-25-bug1-6461887.diff
16799N/A# date:2007-02-27 owner:samlau type:bug bugster:6520014
16864N/APatch26: xscreensaver-26-bug-6520014.diff
16799N/A# date:2007-06-18 owner:ma54148 type:bug bugster:6541240
16864N/APatch27: xscreensaver-27-NULLRootPasswd.diff
16799N/A# date:2007-09-25 owner:ma54148 type:bug bugster:6580862,6531358
16864N/APatch28: xscreensaver-28-RobustKBGrab.diff
16799N/A# date:2007-11-21 owner:hs208856 type:bug bugster:6573182
16864N/APatch29: xscreensaver-29-bug-6573182.diff
16799N/A# date:2008-01-03 owner:samlau type:bug bugster:6610282
16864N/APatch30: xscreensaver-30-bug-6610282.diff
16799N/A# date:2008-02-08 owner:uejio type:bug bugster:6475285
16864N/APatch31: xscreensaver-31-bug-6475285.diff
16799N/A# date:2008-02-11 owner:uejio type:bug bugster:6583181
16864N/APatch33: xscreensaver-33-bug-6583181.diff
16799N/A# date:2008-02-27 owner:ma54148 type:bug bugster:6585644
16864N/APatch34: xscreensaver-34-notice_events.diff
16799N/A# date:2008-03-05 owner:uejio type:bug bugster:6670659
16864N/APatch35: xscreensaver-35-bug-6670659.diff
16799N/A# date:2008-06-03 owner:uejio type:bug bugster:6583247
16864N/APatch36: xscreensaver-36-bug-6583247.diff
16799N/A# date:2008-07-17 owner:alanc type:bug bugster:6573061 state:upstream
16864N/APatch37: xscreensaver-37-hush-misc.diff
16799N/A# date:2008-07-30 owner:uejio type:bug bugster:6698996
16864N/APatch38: xscreensaver-38-bug-6698996.diff
16799N/A# date:2009-02-05 owner:alanc type:bug bugster:4802301
16864N/APatch39: xscreensaver-39-bug-4802301.diff
16799N/A# date:2009-02-05 owner:alanc type:bug bugster:6764033 state:upstream
16864N/APatch40: xscreensaver-40-interference-hack.diff
16799N/A# date:2008-12-15 owner:alanc type:bug bugster:6785377
16864N/APatch41: xscreensaver-41-intltool.diff
16799N/A# date:2009-02-09 owner:bp230705 type:bug bugster:6769901
16864N/APatch42: xscreensaver-42-bug-6769901.diff
16799N/A# date:2009-03-08 owner:samlau type:bug bugster:6736157
16864N/APatch43: xscreensaver-43-bug-6736157.diff
16799N/A# date:2009-03-03 owner:johnfisc type:bug bugster:6757448
16864N/APatch44: xscreensaver-44-bug-6757448.diff
16799N/A# date:2009-04-16 owner:bp230705 type:bug bugster:6825374
16864N/APatch45: xscreensaver-45-bug-6825374.diff
16799N/A# date:2009-07-14 owner:au230626 type:bug bugster:6857559
16864N/APatch46: xscreensaver-46-bug-6857559.diff
16943N/A# date:2009-07-31 owner:bp230705 type:bug bugster:6859039
16943N/APatch47: xscreensaver-47-bug-6859039.diff
17296N/A# date:2009-09-10 owner:au230626 type:bug bugster:6839026
17296N/APatch48: xscreensaver-48-bug-6839026.diff
17430N/A# date:2009-09-29 owner:au230626 type:bug bugster:6845488
17430N/APatch49: xscreensaver-49-bug-6845488.diff
17774N/A# date:2009-11-25 owner:ng228438 type:bug bugster:6845488
17774N/APatch50: xscreensaver-50-bug-6865652.diff
17982N/A# date:2009-12-22 owner:alanc type:bug
17982N/APatch51: xscreensaver-51-dpms-headers.diff
18009N/A# date:2009-12-31 owner:ng228438 type:bug bugster:6832923
18009N/APatch52: xscreensaver-52-bug-6832923.diff
18302N/A# date:2010-02-15 owner:au230626 type:bug bugster:6924996
18302N/APatch53: xscreensaver-53-bug-6924996.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
18688N/AIPS_package_name: desktop/xscreensaver/hacks
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - display mode modules
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%description hacks
16799N/AModules that provide different display modes (hacks) for XScreenSaver
16799N/A
16799N/A%package hacks-gl
18688N/AIPS_package_name: desktop/xscreensaver/hacks/hacks-gl
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - OpenGL display mode modules
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%description hacks-gl
16799N/AModules that provide different OpenGL-based display modes (hacks) for the screen saver
16799N/A
16799N/A%package -n SUNWrss-glx
18688N/AIPS_package_name: desktop/xscreensaver/hacks/rss-glx
18688N/AMeta(info.classification): %{classification_prefix}:System/X11
16799N/ASummary: XScreenSaver - Really Slick ScreenSaver OpenGL display modules
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%description -n SUNWrss-glx
16799N/AModules that provide additional OpenGL-based display modes (hacks) for
16799N/AXScreenSaver
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
16799N/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%patch26 -p1
16799N/A%patch27 -p1
16799N/A%patch28 -p1
16799N/A%patch29 -p1
16799N/A%patch30 -p1
16799N/A%patch31 -p1
16799N/A%patch33 -p1
16799N/A%patch34 -p1
16799N/A%patch35 -p1
16799N/A%patch36 -p1
16799N/A%patch37 -p1
16799N/A%patch38 -p1
16799N/A%patch39 -p1
16799N/A%patch40 -p1
16799N/A%patch41 -p1
16799N/A%patch42 -p1
16799N/A%patch43 -p1
16799N/A%patch44 -p1
16799N/A%patch45 -p1
16799N/A%patch46 -p1
16943N/A%patch47 -p1
17296N/A%patch48 -p1
17430N/A%patch49 -p1
17774N/A%patch50 -p1
17982N/A%patch51 -p1
18009N/A%patch52 -p1
18302N/A%patch53 -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
16799N/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
17981N/A%define mapfile_noexbss -Wl,-M,/usr/lib/ld/map.noexbss
16799N/A%ifarch sparc
16799N/A%define mapfile_noexdata %{mapfile_noexbss}
16799N/A%else
16799N/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
16799N/A%define mapfiles_for_all %{mapfile_pagealign} %{mapfile_noexdata}
16799N/A# Flags only useful for programs, not libraries/shared objects
16799N/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
16799N/Amake generate_potfiles_in POTFILES xscreensaver.pot
16799N/A
16799N/Acd %{_builddir}/%{src_dir}
16799N/Amake ${MAKEFLAGS}
16799N/A
16799N/A
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
17382N/Amv ${RPM_BUILD_ROOT}/usr/share/applications/gnome-screensaver-properties.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/screensaver-properties.desktop
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} \
17382N/A ${RPM_BUILD_ROOT}%{_mandir}/man6/${h}.6 \
16799N/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
17382N/A mv ${RPM_BUILD_ROOT}%{_mandir}/man1/$(basename $m) \
17382N/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 \
17382N/A ../../bin/xscreensaver-command \
17382N/A ../../bin/xscreensaver-demo \
17382N/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 \
17997N/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
17382N/A%{_datadir}/applications/screensaver-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
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)