File steamtricks.spec of Package steamtricks

# spec file for package steamtricks
# Copyright (c) 2017 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:           steamtricks
Version:        0.3.0
Release:        0
Summary:        Workarounds for problems with Steam on Linux
License:        GPL-2.0
Group:          Amusements/Games/Other
Source:         %{name}-%{version}.tar.xz
BuildArch:      noarch
BuildRequires:  systemd-rpm-macros
Recommends:     steamtricks-data
# see
Requires:       coreutils
Requires:       findutils
Requires:       grep
Requires:       patch
Requires:       rpm
Requires:       sed
# steamtricksd.service file utilizes `script`
Requires:       util-linux
Requires:       which

steamtricks provides workarounds for problems with Steam on Linux.

Steam primarily targets Ubuntu and not the wider base of Linux distributions.
This has led to a number of suboptimal experiences for users not on an
officially supported distribution. The goal of this project is to
provide workarounds and solutions to those problems in an easy to use package.
Currently, workarounds exist in some distribution packages and in various forums
and the like. This project aims to be the upstream source for packaging Steam

%setup -q


%make_install VERSION="%{version}"

# <= leap 42.1 does not provide _userunitdir
%if 0%{!?_userunitdir:1}
  %define _userunitdir /usr/lib/systemd/user
  %dir /usr/lib/systemd/user