File steamcmd.spec of Package steamcmd

# spec file for package steamcmd
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           steamcmd
Version:        0.20160905
Release:        0
Summary:        Command-line version of the Steam client
License:        SUSE-Freeware
Group:          Amusements/Games/Other

The Steam Console Client or SteamCMD is a command-line version of the Steam client.
Its primary use is to install and update various dedicated servers available on
Steam using a command-line interface. It works with games that use the SteamPipe
content system.

%setup -q -c %{name}-%{version}


install -Dm0755 %{buildroot}%{_libexecdir}/steamcmd/
install -Dm0755 %{buildroot}%{_libexecdir}/steamcmd/
install -Dm0755 linux32/steamcmd %{buildroot}%{_libexecdir}/steamcmd/linux32/steamcmd

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/steamcmd << EOF
exec %{_libexecdir}/steamcmd/ "\$@"
chmod +x %{buildroot}%{_bindir}/steamcmd

install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man6/steamcmd.6
install -Dm0644 %{SOURCE2} %{buildroot}%{_docdir}/steamcmd/steamcmdcommands.txt
install -Dm0644 %{SOURCE2} %{buildroot}%{_docdir}/steamcmd/steam_install_agreement.txt


openSUSE Build Service is sponsored by