Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE
xboxdrv
xboxdrv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xboxdrv.spec of Package xboxdrv
# # spec file for package xboxdrv # # Copyright (c) 2022 SUSE LLC # # 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: xboxdrv Version: 0.8.10 Release: 1 Summary: Userspace Xbox gamepad driver and input remapper License: GPL-3.0-or-later URL: https://github.com/xiota/xboxdrv Source0: %{name}-%{version}.tar.gz Source1: %{name}.default Source2: %{name}.service Patch0: Fix-controller-declarations-and-operators.patch BuildRequires: gcc-c++ BuildRequires: fdupes BuildRequires: scons BuildRequires: pkgconfig BuildRequires: libboost_system1_85_0-devel BuildRequires: libboost_headers1_85_0-devel BuildRequires: libboost_thread1_85_0-devel BuildRequires: libboost_locale1_85_0-devel BuildRequires: libboost_log1_85_0-devel BuildRequires: libboost_program_options1_85_0-devel BuildRequires: libdbus-glib-1-2 BuildRequires: libusb-1_0-devel BuildRequires: pkgconfig(systemd) BuildRequires: systemd-mini-devel BuildRequires: pkgconfig(x11) BuildRequires: python3-uinput BuildRequires: python311-dbus-python-devel Requires: python3-dbus-python Requires: python3-uinput Requires: python %description Userspace Xbox gamepad driver and input remapper %requires_eq %{__strip} %prep %setup -q -n %{name}-%{version} %patch -P 0 -p1 tee custom.py << EOF CCFLAGS = "%{optflags}" EOF %check %build scons %{?_smp_mflags} %install %make_install PREFIX=%{_prefix} chmod a-x %{buildroot}%{_mandir}/man1/%{name}.1 install -d %{buildroot}/etc/default/%{name} install -pm 644 %{SOURCE1} %{buildroot}/etc/default/%{name} install -d %{buildroot}%{_unitdir}/ install -pm 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service install -d %{buildroot}%{_docdir}/%{name}/examples/ install -Dpm 644 examples/* %{buildroot}%{_docdir}/%{name}/examples install -pm 644 README.md NEWS PROTOCOL %{buildroot}%{_docdir}/%{name}/ install -Dpm 644 data/org.seul.Xboxdrv.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.seul.Xboxdrv.conf %fdupes %{buildroot}/%{_prefix} sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|' %{buildroot}/usr/bin/xboxdrvctl sed -i '/<policy context="default">/a \ <allow send_destination="org.seul.Xboxdrv"/>' %{buildroot}/etc/dbus-1/system.d/org.seul.Xboxdrv.conf mkdir -p %{buildroot}%{_sbindir}/ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %{__strip} %{buildroot}%{_bindir}/xboxdrv %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root,-) %license COPYING %doc AUTHORS NEWS PROTOCOL README.md TODO %dir %attr(0755, root, root) %{_bindir}/ %dir %attr(0755, root, root) %{_sbindir}/ %attr(0755, root, root) %{_bindir}/%{name} %attr(0755, root, root) %{_bindir}/xboxdrvctl %{_sbindir}/rc%{name} %dir %attr(0755, root, root) %{_mandir}/ %dir %attr(0755, root, root) %{_mandir}/man1/ %{_mandir}/man1/%{name}.1%{?ext_man} %{_unitdir}/%{name}.service %config /etc/default/%{name} %config(noreplace) /etc/dbus-1/system.d/org.seul.Xboxdrv.conf %dir %{_datadir}/doc/packages/ %{_datadir}/doc/packages/xboxdrv/examples/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor