Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37731331
en ru br
ALT Linux repos
S:1.3-alt7.qa1
5.0: 1.3-alt7
4.1: 1.3-alt5
4.0: 1.3-alt3
3.0: 1.3-alt3

Group :: Toys
RPM: xdesktopwaves

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: xdesktopwaves
Version: 1.3
Release: alt7

Summary: Simulation of water waves on the X Windows desktop

License: GPL
Group: Toys
Url: http://xdesktopwaves.sourceforge.net
Packager: Slava Semushin <php-coder at altlinux.ru>

Source0: http://dl.sourceforge.net/%name/%name-%version.tar.gz
Source1: %name-16.xpm
Source2: %name-32.xpm
Patch: %name-1.3-alt-makefile-destdir_support.patch

BuildRequires: libXext-devel libX11-devel

%description
xdesktopwaves is a cellular automata setting the background of your X
Windows desktop under water. Windows and mouse are like ships on the
sea. Each movement of these ends up in moving water waves. You can
even have rain and/or storm stirring up the water.

To see what xdesktopwaves is able to do, start it by running
'xdesktopwaves' and then run 'xdwapidemo'. You should see the
supported effects on your desktop.

%prep
%setup
%patch -p1

%build
%make_build \
CC="%__cc" \
LINK="%__cc" \
CFLAGS="%optflags -Werror"

%make_build -C xdwapi \
CC="%__cc" \
LINK="%__cc" \
CFLAGS="%optflags -Werror"

%install
%make_install install \
DESTDIR=%buildroot \
BINDIR=%_gamesbindir \
MAN1DIR=%_man1dir

install -pD -m 644 %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -pD -m 644 %SOURCE2 %buildroot%_niconsdir/%name.xpm
install -pD -m 644 %name.xpm %buildroot%_liconsdir/%name.xpm
install -pD -m 755 xdwapi/xdwapidemo %buildroot%_gamesbindir/xdwapidemo

mkdir -p %buildroot%_menudir

cat > %buildroot%_menudir/%name <<EOF
?package(xdesktopwaves):\
needs=x11 \
section="Amusement/Toys" \
title="xdesktopwaves" \
icon=xdesktopwaves.xpm \
command="%_gamesbindir/xdesktopwaves"
EOF

cat > %buildroot%_menudir/%name-exit <<EOF
?package(xdesktopwaves):\
needs=x11 \
section="Amusement/Toys" \
title="xdesktopwaves exit" \
icon=xdesktopwaves.xpm \
command="%_gamesbindir/xdesktopwaves -end"
EOF

%files
%doc README
%_gamesbindir/%name
%_gamesbindir/xdwapidemo
%_menudir/%{name}*
%_man1dir/%name.1.*
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm

%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