Sisyphus repositório
Última atualização: 28 junho 2022 | SRPMs: 17498 | Visitas: 24457873
en ru br
ALT Linux repositórios
S:1.6-alt1
5.0: 1.3-alt1
4.1: 1.3-alt1
4.0: 1.2-alt3
3.0: 1.2-alt1

Group :: Jogos/Enigmas
RPM: qnetwalk

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define qtdir %_libdir/qt3

Name: qnetwalk
Version: 1.2
Release: alt1

Group: Games/Puzzles
Summary: Qt-version of the popular NetWalk game
License: GPL
URL: http://qt.osdn.org.ua/qnetwalk.html

Source: http://qt.osdn.org.ua/%name-%version.tar.gz
Patch1: qnetwalk-1.1-paths.patch


# Automatically added by buildreq on Wed Oct 27 2004 (-bi)

#BuildRequires: fontconfig freetype2 gcc-c++ libqt3-devel libstdc++-devel xorg-x11-devel xorg-x11-libs ImageMagick
BuildRequires: XFree86-devel XFree86-libs
BuildRequires: fontconfig freetype2 gcc-c++ ImageMagick
BuildRequires: libqt3-devel-cxx = %__gcc_version_base
## hack for apt in hasher
#BuildRequires: libqt3-devel > 3, libqt3-qsa-devel > 1

%description
Qt-version of the popular NetWalk game

%prep
%setup -q
%patch1 -p1

subst "s|\(target.path.*=\).*|\1 %_gamesbindir/|" qnetwalk.pro
subst "s|\(share.path.*=\).*|\1 %_gamesdatadir/%name/|" qnetwalk.pro
export QTDIR=%qtdir PATH=%qtdir/bin:$PATH
qmake -d -unix
%make clean

%build
export QTDIR=%qtdir PATH=%qtdir/bin:$PATH
%make_build

%install
#%make install INSTALL_ROOT="%buildroot/"
mkdir -p %buildroot/{%_gamesbindir,%_gamesdatadir/%name/translations/,%_gamesdatadir/%name/sounds/}
install -m0755 %name %buildroot/%_gamesbindir/
install -m0644 sounds/* %buildroot/%_gamesdatadir/%name/sounds/
install -m0644 translations/%{name}_*.qm %buildroot/%_gamesdatadir/%name/translations/

mkdir -p %buildroot/%_menudir
cat <<EOF >%buildroot/%_menudir/%name
?package(%name): \
   command="%name" \
   icon=%name.png \
   needs="x11" \
   section="Amusement/Puzzles" \
   title="QNetWalk"\
   longtitle="Qt-version of the popular NetWalk game"
EOF

mkdir -p %buildroot/%_iconsdir/hicolor/{16x16,32x32,48x48}/apps/
install -m 0644 pics/%name.png %buildroot/%_iconsdir/hicolor/16x16/apps/%name.png
install -m 0644 pics/computer2.png %buildroot/%_iconsdir/hicolor/32x32/apps/%name.png
convert -resize 48x48 pics/computer2.png %buildroot/%_iconsdir/hicolor/48x48/apps/%name.png

%post
%update_menus
%postun
%clean_menus

%files
%_gamesbindir/*
%_gamesdatadir/%name
%_menudir/*
%_iconsdir/*/*/*/%name.png
%doc ChangeLog README

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009