commit d40f254609aa1fc18d44358f2925a9146d2bf167 Author: ultra_planet Date: Sat Nov 30 15:29:43 2019 +0800 package init diff --git a/switcheroo-control-1.1.tar.xz b/switcheroo-control-1.1.tar.xz new file mode 100644 index 0000000..bea7ce1 Binary files /dev/null and b/switcheroo-control-1.1.tar.xz differ diff --git a/switcheroo-control.spec b/switcheroo-control.spec new file mode 100644 index 0000000..9b0f24e --- /dev/null +++ b/switcheroo-control.spec @@ -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 - 1.1-7 +- Package init