Sisyphus repository
Last update: 23 november 2020 | SRPMs: 17744 | Visits: 19674307
en ru br
ALT Linux repos
S:5.44-alt1
5.0: 5.08-alt2
4.1: 5.07-alt0.M41.1
4.0: 5.01-alt1
3.0: 4.22-alt2

Group :: Graphical desktop/Other
RPM: xscreensaver

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- spec -*-

%define _libexecdir /usr/libexec

# xscreensaver RPM macros

%define xss_hack_dir %_libexecdir/%name
%define xss_conf_dir %_datadir/%name/config
%define xss_ad_dir %_sysconfdir/X11/%name/hack.d
#

Name: xscreensaver
Version: 5.39
Release: alt2

Summary: A screen saver and locker for the X window system
License: BSD
Group: Graphical desktop/Other

Url: http://www.jwz.org/%name

# gear repos: http://packages.altlinux.org/en/Sisyphus/srpms/xscreensaver/gear

Source: %name-%version.tar
Patch: %name-%version-%release.patch

Source1: %name-%version-ad.tar

Source2: %name.pamd
Source3: %name-update.sh

Source4: xscreensaver-hacks
Source5: xscreensaver-hacks-gl

Source6: ru.po

Source7: xscreensaver-config.xsl  
Source8: xscreensaver-config.sh  

Requires: xli urlview appres
Requires: %name-hack
Provides: %name-contrib = %version-%release
Obsoletes: %name-contrib

Provides: screen-saver-engine

%if_with gnome2
# NB: gnome-screensaver-3.0.0 doesn't contain migration script
BuildPrereq: gnome-screensaver-utils
%endif
# Automatically added by buildreq on Mon Apr 18 2011
# optimized out: fontconfig fontconfig-devel glib2-devel libGL-devel libICE-devel libSM-devel libX11-devel libXext-devel libXrender-devel libXt-devel libatk-devel libcairo-devel libfreetype-devel libgdk-pixbuf libgdk-pixbuf-devel libgdk-pixbuf-xlib libgio-devel libgtk+2-devel libpango-devel perl-XML-Parser pkg-config xorg-inputproto-devel xorg-randrproto-devel xorg-renderproto-devel xorg-xextproto-devel xorg-xf86miscproto-devel xorg-xf86vidmodeproto-devel xorg-xproto-devel
BuildRequires: bc imake intltool libGLU-devel libXi-devel libXinerama-devel libXmu-devel libXpm-devel libXrandr-devel libXxf86misc-devel libXxf86vm-devel libglade-devel libgle-devel libjpeg-devel libpam-devel libxml2-devel xorg-cf-files gdk-pixbuf-devel xsltproc

%description
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

%package -n rpm-build-%name
Summary: A screen saver and locker for the X window system - RPM macros
Group: Development/Other
Conflicts: %name > %version-%release
Conflicts: %name < %version-%release
Provides: %name-devel = %version-%release
Obsoletes: %name-devel <= 5.05-alt1
BuildArch: noarch

%description -n rpm-build-%name
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains RPM macros needed to build packages
for additional xscreensaver hacks.

%package hacks
Summary: A screen saver and locker for the X window system - standard hacks
Group: Graphical desktop/Other
Requires: %name = %version-%release
Requires: %name-modules = %version-%release
Provides: %name-hack = %version-%release
# By webcollage...
Requires: netpbm libjpeg-utils
# By noseguy and phosphor
Requires: fortune-mod
BuildArch: noarch

%description hacks
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains standard xscreensaver hacks.

%package hacks-gl
Summary: A screen saver and locker for the X window system - GL hacks
Group: Graphical desktop/Other
Requires: %name = %version-%release
Requires: %name-modules-gl = %version-%release
Provides: %name-hack = %version-%release
Provides: %name-gl = %version-%release
Obsoletes: %name-gl

%description hacks-gl
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains OpenGL xscreensaver hacks.

%package -n mate-screensaver-modules-xscreensaver
Summary: A screen saver and locker for the X window system - MATE Screensaver modules
Group: Graphical desktop/Other
Requires: %name-modules = %version-%release
Requires: mate-screensaver
BuildArch: noarch

%description -n mate-screensaver-modules-xscreensaver
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains modules for MATE Screensaver.

%package -n mate-screensaver-modules-xscreensaver-gl
Summary: A screen saver and locker for the X window system - MATE Screensaver modules
Group: Graphical desktop/Other
Requires: %name-modules-gl = %version-%release
Requires: mate-screensaver
BuildArch: noarch

%description -n mate-screensaver-modules-xscreensaver-gl
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains OpenGL modules for MATE Screensaver.

%package modules
Summary: A screen saver and locker for the X window system - standard modules
Group: Graphical desktop/Other
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release
# By webcollage...
Requires: netpbm libjpeg-utils
# By noseguy and phosphor
Requires: fortune-mod

%description modules
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains standard standalone modules.

%package modules-gl
Summary: A screen saver and locker for the X window system - GL modules
Group: Graphical desktop/Other
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release
# By starwars
Requires: fortune-mod

%description modules-gl
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains OpenGL standalone modules.

%package frontend
Summary: A screen saver and locker for the X window system - configuration frontend
Group: Graphical desktop/Other
Requires: %name = %version-%release
Provides: %name-gnome = %version-%release
Provides: screen-saver-frontend
Obsoletes: %name-gnome

%description frontend
A modular screen saver and locker for the X Window System.
Highly customizable: allows the use of any program that
can draw on the root window as a display mode.

This package contains xscreensaver configuration frontend.

%prep
%setup
%patch -p1
cp %SOURCE6 po/ru.po

%build
%autoreconf
%configure \
 --without-motif \
 --with-pam \
 --without-shadow \
 --with-gl \
 --with-pixbuf \
 --with-proc-interrupts
# Hack to install locale files
subst 's, at install_sh at ,install,' po/Makefile

%make_build all

%install
mkdir -p %buildroot{%_bindir,%_sysconfdir/{X11/{app-defaults,%name},pam.d},%_datadir/pixmaps,%_rpmlibdir,%_rpmmacrosdir}
%makeinstall_std install_prefix=%buildroot \
 KDEDIR=%_prefix \
 GNOME_BINDIR=%_bindir \
 AD_DIR=%_sysconfdir/X11/app-defaults

install -m640 %_sourcedir/%name.pamd %buildroot%_sysconfdir/pam.d/%name
install -m755 %_sourcedir/%name-update.sh %buildroot%_bindir/update-%name

cat <<EOF >%buildroot%_rpmmacrosdir/%name
%%xss_hack_dir %xss_hack_dir
%%xss_conf_dir %xss_conf_dir
%%xss_ad_dir %xss_ad_dir

# post-install commands (obsoleted by filetrigger)

%%update_xscreensaver %%{warning %%%%update_xscreensaver is obsolete}
%%clean_xscreensaver %%{warning %%%%clean_xscreensaver is obsolete}
EOF

cat <<EOF >%buildroot%_rpmlibdir/%name.filetrigger
#!/bin/sh -e

grep -qs '^%xss_ad_dir/' && update-%name ||:
EOF
chmod 755 %buildroot%_rpmlibdir/%name.filetrigger

tar xf %_sourcedir/%name-%version-ad.tar -C %buildroot%_sysconfdir/X11/%name

%find_lang %name

MkModuleFilelists() {
 list="$1" && shift
 name="$1" && shift

 :> "%name-hacks-$name"
 :> "%name-modules-$name"
 :> "%name-gnome-$name"

 while read module; do
   [ "$module" = "providence" ] && continue
   echo "%%config %xss_ad_dir/$module.xss" >> "%name-hacks-$name"
   echo "%xss_conf_dir/$module.xml" >> "%name-hacks-$name"
   echo "%xss_hack_dir/$module" >> "%name-modules-$name"
   [ -f "%buildroot%_man6dir/$module.6" ] && echo "%_man6dir/$module.6*" >> "%name-modules-$name" ||:
   pushd %buildroot%_datadir/applications/screensavers
   %SOURCE8 %buildroot%xss_conf_dir/$module.xml
   popd
   echo "%_datadir/applications/screensavers/xscreensaver-$module.desktop" >> "%name-mate-$name"
 done < "$list"
}

mkdir -p %buildroot%_datadir/applications/screensavers
MkModuleFilelists %_sourcedir/xscreensaver-hacks std
MkModuleFilelists %_sourcedir/xscreensaver-hacks-gl gl

%files
%doc README README.hacking
%verify(not md5 size mtime) %ghost %config(missingok) %_sysconfdir/X11/app-defaults/XScreenSaver
%dir %_sysconfdir/X11/%name
%dir %xss_ad_dir
%config %_sysconfdir/X11/%name/%name.top
%config %_sysconfdir/X11/%name/%name.bottom
%attr(640,root,chkpwd) %config(noreplace) %_sysconfdir/pam.d/*
%attr(2711,root,chkpwd) %_bindir/%name
%_bindir/%name-command
%_bindir/%name-getimage
%_bindir/%name-getimage-file
%_bindir/%name-getimage-video
%_bindir/%name-text
%_bindir/update-%name
%_man1dir/%name.1*
%_man1dir/%name-command.1*
%_man1dir/%name-getimage.1*
%_man1dir/%name-getimage-file.1*
%_man1dir/%name-getimage-video.1*
%_man1dir/%name-text.1*

%dir %_datadir/%name
%_datadir/%name/glade
%dir %xss_conf_dir
%doc %xss_conf_dir/README
%dir %xss_hack_dir

%xss_hack_dir/ljlatest
%_man6dir/ljlatest.6*

%_rpmlibdir/%name.filetrigger

%files frontend -f %name.lang
%_bindir/%name-demo
%_man1dir/%name-demo.1*
%_desktopdir/xscreensaver-properties.desktop
%_datadir/pixmaps/%name.xpm

%files -n rpm-build-%name
%_rpmmacrosdir/%name

%files hacks -f xscreensaver-hacks-std

%files hacks-gl -f xscreensaver-hacks-gl
%_bindir/xscreensaver-gl-helper
%_man6dir/xscreensaver-gl-helper.6*

%files modules -f xscreensaver-modules-std
%dir %xss_hack_dir
%xss_hack_dir/webcollage-helper

%files modules-gl -f xscreensaver-modules-gl
%dir %xss_hack_dir

%files -n mate-screensaver-modules-xscreensaver -f xscreensaver-mate-std

%files -n mate-screensaver-modules-xscreensaver-gl -f xscreensaver-mate-gl

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin