File russian-doom.spec of Package russian-doom-6.2.1-ivybridge

Name:           russian-doom
Version:        6.2.1
Release:        0
Summary:        Limit-removing source port for DOOM/Hexen/Heretic
License:        GPL-2.0-or-later
Group:          Amusements/Games/3D/Shoot
URL:            https://github.com/Russian-Doom/russian-doom
Source:         russian-doom-6.2.1.tar.xz
BuildRequires:  SDL2-devel
BuildRequires:  SDL2_mixer-devel
BuildRequires:  SDL2_net-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  make
BuildRequires:  python3
BuildRequires:  gzip
BuildRequires:  cmake
Provides:       inter-heretic = %version
Provides:       inter-hexen = %version
Provides:       inter-doom = %version
Recommends:     freedoom

%description
Russian Doom is a limit-removing enhanced-resolution Doom source port based on Crispy Doom and DOOMRetro.

This version represents the last release under the Russian Doom branding before the project was renamed to International Doom and restructured.
Published for historical reasons. This version targets Ivy Bridge processors.

%prep
%autosetup

%build
export CFLAGS="%{optflags} -march=ivybridge -O3"
export CXXFLAGS="%{optflags} -march=ivybridge -O3"
%cmake
%cmake_build

%install
%cmake_install

%files
%license LICENSE.txt
%doc README.md
%doc %{_datadir}/doc/inter-doom/GPL.txt
%dir %{_datadir}/doc/inter-doom


# Binaries
%{_bindir}/inter-doom
%{_bindir}/inter-heretic
%{_bindir}/inter-hexen

# Bash completions
%{_datadir}/bash-completion/completions/inter-doom
%{_datadir}/bash-completion/completions/inter-heretic
%{_datadir}/bash-completion/completions/inter-hexen

# Shared data - Doom
%{_datadir}/inter-doom/

# Shared data - Heretic
%{_datadir}/inter-heretic/

# Shared data - Hexen
%{_datadir}/inter-hexen/

# Manpages
%{_mandir}/man6/inter-doom.6%{?ext_man}
%{_mandir}/man6/inter-heretic.6%{?ext_man}
%{_mandir}/man6/inter-hexen.6%{?ext_man}
%{_mandir}/man6/ru/inter-doom.6%{?ext_man}
%{_mandir}/man6/ru/inter-heretic.6%{?ext_man}
%{_mandir}/man6/ru/inter-hexen.6%{?ext_man}
%dir %{_mandir}/man6/ru
openSUSE Build Service is sponsored by