My long-term goal is an appimage of this game, but I’m stuck on the spec file. It does not have a ‘make install’ target. I think I have it so it will compile, but I’m not sure what to do next. An arch pkgbuild is available here, this is what I have so far
#
# spec file for package my-first-obs-package
#
# -- Copyright omitted --
Name: Bugdom
Version: 1.3.0
Release: 0
License: CC BY-NC-SA 4.0
Group: Amusements/Games/3D
Summary: Save Bugdom from Thorax's evil Fire Ants
Url: https://github.com/jorio/Bugdom/
Source: Bugdom-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: SDL2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
You are Rollie McFly, the only remaining bug capable of saving the Lady Bugs and restoring peace to the Bugdom. Rollie has been hiding in the Lawn area of the Bugdom and will need to travel far to get to the Ant Hill where the battle with King Thorax must take place. There will be water to cross, bugs to ride, and plenty of enemy forces to defeat, but once the Fire Ants and King Thorax have been defeated, you will become the new ruler of the Bugdom and peace will be restored.
%prep
%setup -q -n %{name}-%{version}
%build
cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release
cmake --build build-release
%install
install -Dm 755 build-release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm 755 Data %{buildroot}%{_bindir}/Data
%files
%changelog
spec files do not use make or have targets. If you mean that makefile that comes with your software does not have install target - just copy files from build directory into the correct location in %install section.
Yes, I meant the makefile from the project. Anyway, I got it, it compiles for tumbleweed, fedora, & mageia. However, it fails when setting Leap as the target
82s] /home/abuild/rpmbuild/BUILD/Bugdom-1.3.0/extern/Pomme/src/PommeDebug.cpp: In function ‘std::__cxx11::string Pomme::FourCCString(uint32_t, char)’:
82s] /home/abuild/rpmbuild/BUILD/Bugdom-1.3.0/extern/Pomme/src/PommeDebug.cpp:47:7: error: ‘reverse’ is not a member of ‘std’
82s] std::reverse(b, b + 4);
82s] ^~~~~~~
83s] gmake[2]: *** [extern/Pomme/CMakeFiles/Pomme.dir/build.make:93: extern/Pomme/CMakeFiles/Pomme.dir/src/PommeDebug.cpp.o] Error 1
83s] gmake[1]: *** [CMakeFiles/Makefile2:189: extern/Pomme/CMakeFiles/Pomme.dir/all] Error 2
83s] gmake: *** [Makefile:101: all] Error 2
83s] error: Bad exit status from /var/tmp/rpm-tmp.zQdgLQ (%build)
So, I added ‘#include <string_view>’ to HostVolume.cpp, but still get the same result. These are fairly new functions to c++, is gcc-c++ for Leap 15.3 just not new enough? Is there a way to use clang or a newer gcc with OBS? I had to guess and find similar games to get the requirement list, is there an easier way to do this?