File tyrutils.spec of Package tyrutils
#
# spec file for package tyrutils
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: tyrutils
Version: 0.17
Release: 0
Summary: Tyrann's Quake Utilities
License: GPL-3.0-or-later
Group: Development/Tools/Building
URL: https://disenchant.net/utils/
#Git-Clone: git://disenchant.net/tyrutils
Source: https://disenchant.net/files/utils/%{name}-%{version}.tar.gz
BuildRequires: groff
%description
A collection of command line utilities for building Quake levels
and working with various Quake file formats.
Included utilities:
qbsp - Used for turning a .map file into a playable .bsp file.
light - Used for lighting a level after the bsp stage.
This util was previously known as TyrLite
vis - Creates the potentially visible set (PVS) for a bsp.
bspinfo - Print stats about the data contained in a bsp file.
bsputil - Simple tool for manipulation of bsp file data
%prep
%setup -q
sed -i 's/\r$//' README.txt
%build
export CFLAGS="%{optflags}"
%make_build \
OPTIMIZED_CFLAGS=N \
V=1 \
%{?_smp_mflags}
%install
for b in bspinfo bsputil light qbsp vis; do
install -Dm 0755 bin/$b %{buildroot}%{_bindir}/$b
install -Dm 0644 man/$b.1 %{buildroot}/%{_mandir}/man1/$b.1
done
%files
%license COPYING
%doc changelog.txt README.txt
%{_bindir}/bspinfo
%{_bindir}/bsputil
%{_bindir}/light
%{_bindir}/qbsp
%{_bindir}/vis
%{_mandir}/man1/bspinfo.1%{?ext_man}
%{_mandir}/man1/bsputil.1%{?ext_man}
%{_mandir}/man1/light.1%{?ext_man}
%{_mandir}/man1/qbsp.1%{?ext_man}
%{_mandir}/man1/vis.1%{?ext_man}
%changelog