File _service:download_url:instead.spec of Package instead

%define version 3.5.0
# Common info
Name:          instead
Version:       %{version}
Release:       1%{?dist}
License:       MIT
Group:         Amusements/Games/Other
URL:           http://instead.syscall.ru/
Summary:       Simple Text Adventure Interpreter

# Build-time parameters
BuildRequires: cmake >= 2.6
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: lua51-devel
BuildRequires: zlib-devel
BuildRequires: SDL2-devel
BuildRequires: SDL2_mixer-devel
BuildRequires: SDL2_image-devel
BuildRequires: SDL2_ttf-devel
BuildRequires: gtk3-devel
BuildRoot:     %{_tmppath}/%{name}-root
Source:        %{version}.tar.gz

Recommends:    instead-launcher
Recommends:    instead-docs

%description
INSTEAD -- interpreter of simple text adventures.

INSTEAD was designed to interpret the games that are the mix of visual novels,
text quests and classical 90's quests.

# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n instead-%{version}%{?extraver}

%build
%{__mkdir} build
cd build
cmake .. \
 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
 -DCMAKE_BUILD_TYPE=Release \
 -DCMAKE_CXX_FLAGS_RELEASE="%{optflags}" \
 -DCMAKE_C_FLAGS_RELEASE="%{optflags}" \
 -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-Wl,--as-needed -Wl,--strip-all" \
 -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="-Wl,--as-needed -Wl,--strip-all" \
 -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-Wl,--as-needed -Wl,--strip-all -shared" \
 -DCMAKE_VERBOSE_MAKEFILE=YES \
 -DWITH_GTK3=1 \
 -DWITH_LUAJIT=0
%{__make} %{?_smp_mflags}

%install
%{__make} -C build install DESTDIR=%{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/sdl_instead*
%exclude %{_datadir}/doc/*
%exclude %{_mandir}/*

%changelog
* Mon Sep 26 2022 PHPoenX <phpoenx@tutanota.com> - 3.5.0
- Updated, rpmlint issues fixed
* Mon May 11 2020 PHPoenX <phpoenx@tutanota.com>
- Moved to gtk3 from gtk2
* Tue May 5 2020 PHPoenX <phpoenx@tutanota.com> - 3.3.2
- Init
openSUSE Build Service is sponsored by