From da1d2d69bc3a6524e228d26aa20daff1399b9a1f Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 14:37:59 -0400 Subject: [PATCH] Auto sync2gitlab import of switcheroo-control-1.1-5.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - sources | 1 + switcheroo-control.spec | 70 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 sources create mode 100644 switcheroo-control.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf42f3f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/switcheroo-control-1.1.tar.xz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..dfbbd51 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (switcheroo-control-1.1.tar.xz) = 467c03bfbe0596d42d4447bc6943a489430fc4eea873f306328de4e1230edf32f1828f3c0575ea9ea8d620664b4c2d7cf73dd8f2c718b4b001739eaac90af113 diff --git a/switcheroo-control.spec b/switcheroo-control.spec new file mode 100644 index 0000000..c5d7286 --- /dev/null +++ b/switcheroo-control.spec @@ -0,0 +1,70 @@ +Name: switcheroo-control +Version: 1.1 +Release: 5%{?dist} +Summary: D-Bus service to check the availability of dual-GPU + +License: GPLv3 +URL: https://github.com/hadess/switcheroo-control +Source0: https://github.com/hadess/switcheroo-control/releases/download/%{version}/switcheroo-control-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: systemd + +%{?systemd_requires} + +%description +D-Bus service to check the availability of dual-GPU. + + +%prep +%autosetup + + +%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 +%license COPYING +%doc NEWS README.md +%{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf +%{_unitdir}/switcheroo-control.service +%{_sbindir}/switcheroo-control + + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Nov 04 2016 Bastien Nocera - 1.1-1 ++ switcheroo-control-1.1-1 +- Update to 1.1 +- Don't throw errors when the machine doesn't have dual-GPU (#1391212) + +* Fri Oct 21 2016 Kalev Lember - 1.0-1 +- Initial Fedora packaging