Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:games
falconseye
falconseye.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File falconseye.spec of Package falconseye
# # spec file for package falconseye # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: falconseye Version: 1.9.3 Release: 0 Summary: A Mouse-Driven interface for NetHack License: NGPL Group: Amusements/Games/RPG URL: http://falconseye.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 Source1: %{name}.desktop Source99: %{name}.changes Patch0: %{name}-%{version}.diff Patch1: %{name}-libs.patch Patch2: %{name}-tinfo.patch BuildRequires: ImageMagick BuildRequires: SDL-devel BuildRequires: alsa-devel BuildRequires: bison BuildRequires: cpp BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: flex BuildRequires: gdbm-devel BuildRequires: glib2-devel BuildRequires: glibc-devel BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: permissions BuildRequires: slang-devel BuildRequires: update-desktop-files BuildRequires: xorg-x11-devel BuildRequires: zlib-devel Requires(pre): group(games) Requires(pre): user(games) Requires: timidity PreReq: fileutils PreReq: permissions %description Falcon's Eye is a mouse-driven interface for NetHack that enhances the visuals, audio, and accessibility of the game, yet retains all the original gameplay and game features. Falcon's Eye needs to be installed together with nh_data and is run as nethack. %prep %setup -q %patch0 %patch1 %patch2 # fix build-compare modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")" EPOCH=$(date -d "${modified}" "+%%s") sed -i "s/(void) time((time_t \\*)&clocktim)/clocktim=$EPOCH/" util/makedefs.c %build sh sys/unix/setup.sh links export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-format-security" # parallel build fails %make_build -C src CC="gcc $RPM_OPT_FLAGS" -j1 %install %make_install mkdir -p %{buildroot}%{_bindir} mv %{buildroot}/usr/games/falconseye %{buildroot}%{_bindir} mv %{buildroot}%{_datadir}/games/falconseye/falconseye %{buildroot}%{_bindir}/falconseye.bin ln -snf %{_bindir}/falconseye.bin %{buildroot}%{_datadir}/games/falconseye/falconseye rmdir %{buildroot}%{_datadir}/games/falconseye/save mkdir -p %{buildroot}%{_localstatedir}/games/falconseye/save ln -s %{_localstatedir}/games/falconseye/save %{buildroot}%{_datadir}/games/falconseye/save touch %{buildroot}%{_localstatedir}/games/falconseye/jtp_log.txt ln -s %{_localstatedir}/games/falconseye/jtp_log.txt %{buildroot}%{_datadir}/games/falconseye/jtp_log.txt install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/falconseye.desktop mkdir -p %{buildroot}%{_datadir}/pixmaps convert %{buildroot}%{_datadir}/games/falconseye/nethack.ico %{buildroot}%{_datadir}/pixmaps/falconseye.png %fdupes %{buildroot}%{_datadir}/games/falconseye dos2unix %{buildroot}%{_datadir}/games/falconseye/*.nh dos2unix %{buildroot}%{_datadir}/games/falconseye/manual/*.* %pre # Move save files from old location. mkdir -p var/games/falconseye/save mv usr/share/games/falconseye/save/* var/games/falconseye/save >/dev/null 2>/dev/null || true rmdir usr/share/games/falconseye/save >/dev/null 2>/dev/null || true %post %set_permissions %{_bindir}/falconseye.bin %verifyscript %verify_permissions -e %{_bindir}/falconseye.bin %files %{_datadir}/games/falconseye %{_bindir}/falconseye %verify(not mode) %attr(0755,games,games) %{_bindir}/falconseye.bin %{_datadir}/applications/falconseye.desktop %attr(0775,games,games) %{_localstatedir}/games/falconseye %{_datadir}/pixmaps/falconseye.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor