package init
This commit is contained in:
commit
d40f254609
BIN
switcheroo-control-1.1.tar.xz
Normal file
BIN
switcheroo-control-1.1.tar.xz
Normal file
Binary file not shown.
42
switcheroo-control.spec
Normal file
42
switcheroo-control.spec
Normal file
@ -0,0 +1,42 @@
|
||||
Name: switcheroo-control
|
||||
Version: 1.1
|
||||
Release: 7
|
||||
Summary: D-Bus service to check the availability of dual-GPU
|
||||
License: GPLv3
|
||||
URL: https://gitlab.freedesktop.org/hadess/switcheroo-control/
|
||||
Source0: https://github.com/hadess/switcheroo-control/releases/download/%{version}/switcheroo-control-%{version}.tar.xz
|
||||
|
||||
BuildRequires: pkgconfig(gio-2.0) systemd
|
||||
%{?systemd_requires}
|
||||
|
||||
%description
|
||||
D-Bus service to check the availability of dual-GPU.
|
||||
|
||||
%prep
|
||||
%autosetup -n switcheroo-control-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%post
|
||||
%systemd_post switcheroo-control.service
|
||||
|
||||
%preun
|
||||
%systemd_preun switcheroo-control.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart switcheroo-control.service
|
||||
|
||||
%files
|
||||
%doc COPYING NEWS README.md
|
||||
%{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
|
||||
%{_unitdir}/switcheroo-control.service
|
||||
%{_sbindir}/switcheroo-control
|
||||
|
||||
%changelog
|
||||
* Sat Nov 30 2019 lingsheng <lingsheng@huawei.com> - 1.1-7
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user