After running spec-cleaner, I have
%build
# FIXME: you should use the %%cmake macros
cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release
# FIXME: you should use the %%cmake macros
cmake --build build-release
do I need to worry about this? This is what I’m building, works fine as is.
Hi
In %prep use %autosetup…
%prep
%autosetup
%build
%cmake
%cmake_build
%install
%cmake_install
%license is only for the license file(s), rest is %doc.
If you going to install manually the use install for directory creation, likewise not mv… eg
install -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 %{name}.sh %{buildroot}%{_bindir}/%{name}.sh
Desktop files, make sure update-desktop-files are installed and use the %suse_update_desktop_file macro to check/install
Perhaps a peruse around here might get you on the right track of the openSUSE packaging macros etc… Portal:Packaging - openSUSE
Macros help to maintain consistent parameters when package are built (such as compile options, location of various directories etc). For one off package that you do not intend to submit to openSUSE this is really up to you.