Группа :: Игры/Прочее
Пакет: vodovod
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: vodovod
Version: 1.10r19
Release: alt1.qa3
Summary: A pipe connecting game
Group: Games/Arcade
License: GPLv2+
Url: http://home.gna.org/vodovod/
Packager: Ilya Mashkin <oddity at altlinux.ru>
#Source: http://download.gna.org/vodovod/%name-%version-src.tar.gz
Source: %name-%version-src.tar.gz
BuildRequires: desktop-file-utils libSDL-devel libSDL_image-devel libSDL_mixer-devel
BuildRequires: libSDL_ttf-devel gettext libImageMagick libImageMagick-devel ImageMagick gcc-c++
Requires: fonts-ttf-dejavu
Requires(post): coreutils
Requires(postun): coreutils
%description
A free cross-platform pipe connecting game. You get a limited number
of pipes on each level and need to combine them to lead the water from
the house at the top of the screen to the storage tank at the bottom.
%description -l cs_CZ.UTF-8
Svobodnц║, multiplatformnц╜ logickц║ hra zaloе╬enц║ na propojovц║nц╜ potrubц╜.
Kaе╬dц║ ц╨roveе┬ zaд█ц╜nц║ s omezenц╫m mnoе╬stvц╜m trubek, kterц╘ je potе≥eba umц╜stit
tak, aby svedly vodu z domku na vrchu obrazovky do nц║drе╬e dole.
%prep
#%setup -q -n %name-%version-src
%setup -q -n %name
# replace the bundled font usage with the one provided by font package
rm data/font1.ttf
sed -i -e "s|data/font1.ttf|../fonts/ttf/dejavu/DejaVuSansMono.ttf|" \
allmenus.cpp main.cpp game.cpp
%build
make PREFIX=%prefix HIGHSCOREDIR=%_localstatedir/games \
%{?_smp_mflags} CXX="%__cxx" CXXFLAGS="%optflags"
# .desktop file
cat <<EOF > %name.desktop
[Desktop Entry]
Name=Vodovod
GenericName=Logic Game
GenericName[cs]=Logickц║ hra
Comment=A pipe connecting game
Comment[cs]=Propojovц║nц╜ potrubц╜
Exec=vodovod
Icon=vodovod
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF
%install
make PREFIX=%prefix DESTDIR=%buildroot install
# since the game sources do not come with the hiscore file, we have to create it
# this will result in empty hiscore table, but it is not such a big deal
mkdir -p %buildroot%_localstatedir/games
touch %buildroot%_localstatedir/games/%name.sco
# add icon and .desktop file
mkdir -p -m 0755 %buildroot%_datadir/icons/hicolor/32x32/apps
convert data/abicon.bmp %buildroot%_datadir/icons/hicolor/32x32/apps/vodovod.xpm
desktop-file-install \
--dir=%buildroot%_datadir/applications %name.desktop
%find_lang %name
# The package contains a CVS/.svn/.git/.hg/.bzr/_MTN directory of revision control system.
# It was most likely included by accident since CVS/.svn/.hg/... etc. directories
# usually don't belong in releases.
# When packaging a CVS/SVN snapshot, export from CVS/SVN rather than use a checkout.
find $RPM_BUILD_ROOT -type d \( -name 'CVS' -o -name '.svn' -o -name '.git' -o -name '.hg' -o -name '.bzr' -o -name '_MTN' \) -print -exec rm -rf {} \; ||:
# the find below is useful in case those CVS/.svn/.git/.hg/.bzr/_MTN directory is added as %%doc
find . -type d \( -name 'CVS' -o -name '.svn' -o -name '.git' -o -name '.hg' -o -name '.bzr' -o -name '_MTN' \) -print -exec rm -rf {} \; ||:
%files -f %name.lang
%doc CHANGES COPYING html
%_bindir/%name
%_datadir/%name/
%_datadir/applications/%name.desktop
%_datadir/icons/hicolor/32x32/apps/%name.xpm
%config(noreplace) %_localstatedir/games/%name.sco
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.10r19
Release: alt1.qa3
Summary: A pipe connecting game
Group: Games/Arcade
License: GPLv2+
Url: http://home.gna.org/vodovod/
Packager: Ilya Mashkin <oddity at altlinux.ru>
#Source: http://download.gna.org/vodovod/%name-%version-src.tar.gz
Source: %name-%version-src.tar.gz
BuildRequires: desktop-file-utils libSDL-devel libSDL_image-devel libSDL_mixer-devel
BuildRequires: libSDL_ttf-devel gettext libImageMagick libImageMagick-devel ImageMagick gcc-c++
Requires: fonts-ttf-dejavu
Requires(post): coreutils
Requires(postun): coreutils
%description
A free cross-platform pipe connecting game. You get a limited number
of pipes on each level and need to combine them to lead the water from
the house at the top of the screen to the storage tank at the bottom.
%description -l cs_CZ.UTF-8
Svobodnц║, multiplatformnц╜ logickц║ hra zaloе╬enц║ na propojovц║nц╜ potrubц╜.
Kaе╬dц║ ц╨roveе┬ zaд█ц╜nц║ s omezenц╫m mnoе╬stvц╜m trubek, kterц╘ je potе≥eba umц╜stit
tak, aby svedly vodu z domku na vrchu obrazovky do nц║drе╬e dole.
%prep
#%setup -q -n %name-%version-src
%setup -q -n %name
# replace the bundled font usage with the one provided by font package
rm data/font1.ttf
sed -i -e "s|data/font1.ttf|../fonts/ttf/dejavu/DejaVuSansMono.ttf|" \
allmenus.cpp main.cpp game.cpp
%build
make PREFIX=%prefix HIGHSCOREDIR=%_localstatedir/games \
%{?_smp_mflags} CXX="%__cxx" CXXFLAGS="%optflags"
# .desktop file
cat <<EOF > %name.desktop
[Desktop Entry]
Name=Vodovod
GenericName=Logic Game
GenericName[cs]=Logickц║ hra
Comment=A pipe connecting game
Comment[cs]=Propojovц║nц╜ potrubц╜
Exec=vodovod
Icon=vodovod
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF
%install
make PREFIX=%prefix DESTDIR=%buildroot install
# since the game sources do not come with the hiscore file, we have to create it
# this will result in empty hiscore table, but it is not such a big deal
mkdir -p %buildroot%_localstatedir/games
touch %buildroot%_localstatedir/games/%name.sco
# add icon and .desktop file
mkdir -p -m 0755 %buildroot%_datadir/icons/hicolor/32x32/apps
convert data/abicon.bmp %buildroot%_datadir/icons/hicolor/32x32/apps/vodovod.xpm
desktop-file-install \
--dir=%buildroot%_datadir/applications %name.desktop
%find_lang %name
# The package contains a CVS/.svn/.git/.hg/.bzr/_MTN directory of revision control system.
# It was most likely included by accident since CVS/.svn/.hg/... etc. directories
# usually don't belong in releases.
# When packaging a CVS/SVN snapshot, export from CVS/SVN rather than use a checkout.
find $RPM_BUILD_ROOT -type d \( -name 'CVS' -o -name '.svn' -o -name '.git' -o -name '.hg' -o -name '.bzr' -o -name '_MTN' \) -print -exec rm -rf {} \; ||:
# the find below is useful in case those CVS/.svn/.git/.hg/.bzr/_MTN directory is added as %%doc
find . -type d \( -name 'CVS' -o -name '.svn' -o -name '.git' -o -name '.hg' -o -name '.bzr' -o -name '_MTN' \) -print -exec rm -rf {} \; ||:
%files -f %name.lang
%doc CHANGES COPYING html
%_bindir/%name
%_datadir/%name/
%_datadir/applications/%name.desktop
%_datadir/icons/hicolor/32x32/apps/%name.xpm
%config(noreplace) %_localstatedir/games/%name.sco
%changelog
…
Полный changelog можно просмотреть здесь