mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-01 03:21:41 +00:00
chore: Add spec files for ds-inhibit package from SteamOS.
This commit is contained in:
parent
bddc1647e2
commit
7c29d9047b
22
spec_files/ds-inhibit/LICENSE
Normal file
22
spec_files/ds-inhibit/LICENSE
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Copyright (c) 2022, Valve Software
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
57
spec_files/ds-inhibit/ds-inhibit.spec
Normal file
57
spec_files/ds-inhibit/ds-inhibit.spec
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
Name: ds-inhibit
|
||||||
|
Version: {{{ git_dir_version }}}
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: DualShock 4/DualSense mouse inhibitor
|
||||||
|
License: BSD-2-Clause
|
||||||
|
URL: https://github.com/ublue-os/bazzite
|
||||||
|
|
||||||
|
Source: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Patch0: fedora.patch
|
||||||
|
|
||||||
|
Requires: python3
|
||||||
|
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
|
%description
|
||||||
|
DualShock 4/DualSense mouse inhibitor
|
||||||
|
|
||||||
|
# Disable debug packages
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n %{name}-main
|
||||||
|
%patch 0
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}/
|
||||||
|
mkdir -p %{buildroot}%{_unitdir}/
|
||||||
|
cp -v ds-inhibit.py %{buildroot}%{_bindir}/ds-inhibit
|
||||||
|
cp -v systemd.service %{buildroot}%{_unitdir}/ds-inhibit.service
|
||||||
|
|
||||||
|
# Do post-installation
|
||||||
|
%post
|
||||||
|
%systemd_post ds-inhibit.service
|
||||||
|
|
||||||
|
# Do before uninstallation
|
||||||
|
%preun
|
||||||
|
%systemd_preun ds-inhibit.service
|
||||||
|
|
||||||
|
# Do after uninstallation
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart ds-inhibit.service
|
||||||
|
|
||||||
|
# This lists all the files that are included in the rpm package and that
|
||||||
|
# are going to be installed into target system where the rpm is installed.
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/ds-inhibit
|
||||||
|
%{_unitdir}/ds-inhibit.service
|
||||||
|
|
||||||
|
# Finally, changes from the latest release of your application are generated from
|
||||||
|
# your project's Git history. It will be empty until you make first annotated Git tag.
|
||||||
|
%changelog
|
||||||
|
{{{ git_dir_changelog }}}
|
8
spec_files/ds-inhibit/fedora.patch
Normal file
8
spec_files/ds-inhibit/fedora.patch
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
--- ds-inhibit.py
|
||||||
|
+++ ds-inhibit.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/bin/env python3 -u
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
# vim:ts=4:sw=4:et
|
||||||
|
#
|
Loading…
Reference in New Issue
Block a user