1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
Summary: simple text adventures/visual novels engine and game
Name: instead
Version: 3.5.2
Release: 1%{?dist}
License: MIT
URL: http://instead.sourceforge.net
Source0: %{name}_%{version}.tar.gz
Group: Amusements/Games
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL2-devel, SDL2_mixer-devel, SDL2_image-devel, SDL2_ttf-devel, lua-devel, libaudioresource-devel, glib2-devel
%description
Simple text adventures/visual novels engine and game
Visual novell/text quest-like game in Russian with engine.
%prep
%setup -q
echo -e "2\n\/usr" | ./configure.sh
cat >>config.make <<EOF
CFLAGS+=\$(shell pkg-config --cflags glib-2.0) \$(shell pkg-config --cflags audioresource) -D_USE_SWROTATE=1 -DSAILFISHOS=1
LDFLAGS+=\$(shell pkg-config --libs glib-2.0) \$(shell pkg-config --libs audioresource)
EOF
%build
make
%pre
if test -f /home/nemo/.instead/insteadrc; then
rm -rf /home/nemo/.instead/insteadrc
fi
install -d -m 0755 -o nemo -g nemo /home/nemo/.instead
cat >/home/nemo/.instead/profile <<EOF
hires=1
fullscreen=1
EOF
chown nemo:nemo /home/nemo/.instead/profile
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT ICONPATH=/usr/share/icons/hicolor/128x128/apps/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
#%doc doc/*
%{_bindir}/*
%{_datadir}/%{name}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/128x128/apps/*
%{_datadir}/doc/*
%{_mandir}/*
|