Репозитории ALT
Группа :: Развлечения
Пакет: xdesktopwaves
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: xdesktopwaves
Version: 1.3
Release: alt5
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
%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
%post
%update_menus
%postun
%clean_menus
%files
%doc README
%_gamesbindir/%name
%_gamesbindir/xdwapidemo
%_menudir/%{name}*
%_man1dir/%name.1.*
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь
%define _unpackaged_files_terminate_build 1
Name: xdesktopwaves
Version: 1.3
Release: alt5
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
%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
%post
%update_menus
%postun
%clean_menus
%files
%doc README
%_gamesbindir/%name
%_gamesbindir/xdwapidemo
%_menudir/%{name}*
%_man1dir/%name.1.*
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь