From f995065e0fdca5e9a27d287dfd6b2d1813117ec7 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 19:23:48 +0300 Subject: [PATCH] import switcheroo-control-2.6-6.el10 --- .gitignore | 1 + .switcheroo-control.metadata | 1 + SPECS/switcheroo-control.spec | 177 ++++++++++++++++++++++++++++++++++ 3 files changed, 179 insertions(+) create mode 100644 .gitignore create mode 100644 .switcheroo-control.metadata create mode 100644 SPECS/switcheroo-control.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bfc61e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/switcheroo-control-2.6.tar.xz diff --git a/.switcheroo-control.metadata b/.switcheroo-control.metadata new file mode 100644 index 0000000..d692bf9 --- /dev/null +++ b/.switcheroo-control.metadata @@ -0,0 +1 @@ +6d02f49e47478cd0ff75054ee5df628f58e818d0 SOURCES/switcheroo-control-2.6.tar.xz diff --git a/SPECS/switcheroo-control.spec b/SPECS/switcheroo-control.spec new file mode 100644 index 0000000..727f0ac --- /dev/null +++ b/SPECS/switcheroo-control.spec @@ -0,0 +1,177 @@ +Name: switcheroo-control +Version: 2.6 +Release: 6%{?dist} +Summary: D-Bus service to check the availability of dual-GPU + +License: GPLv3 +URL: https://gitlab.freedesktop.org/hadess/switcheroo-control/ +# URL from https://gitlab.freedesktop.org/hadess/switcheroo-control/-/releases +Source0: https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/86ea54ac7ddb901b6bf6e915209151f8/switcheroo-control-2.6.tar.xz + +BuildRequires: gcc +BuildRequires: pkgconfig(gudev-1.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: systemd +BuildRequires: python3-dbusmock +BuildRequires: umockdev + +%{?systemd_requires} + +%description +D-Bus service to check the availability of dual-GPU. + +%package docs +Summary: Documentation for %{name} +BuildArch: noarch + +%description docs + +This package contains the documentation for %{name}. + +%prep +%autosetup + + +%build +%meson -Dgtk_doc=true +%meson_build + + +%install +%meson_install + +%post +if [ $1 -eq 2 ] && [ -x /usr/bin/systemctl ] ; then + /usr/bin/systemctl daemon-reload +fi +%systemd_post switcheroo-control.service +%udev_hwdb_update + +%preun +%systemd_preun switcheroo-control.service + +%postun +%systemd_postun_with_restart switcheroo-control.service +%udev_hwdb_update + +%files +%license COPYING +%doc NEWS README.md +%{_bindir}/switcherooctl +%{_datadir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf +%{_unitdir}/switcheroo-control.service +%{_libexecdir}/switcheroo-control +%{_udevhwdbdir}/30-pci-intel-gpu.hwdb +%{_mandir}/man1/switcherooctl.1* + +%files docs +%dir %{_datadir}/gtk-doc/ +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/%{name}/ + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 2.6-6 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 2.6-6 +- Bump release for June 2024 mass rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 2.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 2.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jul 01 2022 Bastien Nocera - 2.6-1 ++ switcheroo-control-2.6-1 +- Update to 2.6 + +* Fri Apr 29 2022 Bastien Nocera - 2.5-1 ++ switcheroo-control-2.5-1 +- Update to 2.5 + +* Sat Jan 22 2022 Fedora Release Engineering - 2.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 2.4-3 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Wed Jan 27 2021 Fedora Release Engineering - 2.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 04 2021 Bastien Nocera - 2.4-1 ++ switcheroo-control-2.4-1 +- Update to 2.4 + +* Wed Jul 29 2020 Fedora Release Engineering - 2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Apr 27 2020 Bastien Nocera - 2.2-1 ++ switcheroo-control-2.2-1 +- Update to 2.2 + +* Fri Jan 31 2020 Fedora Release Engineering - 2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 02 2020 Bastien Nocera - 2.1-1 ++ switcheroo-control-2.1-1 +- Update to 2.1 +- Fix crasher on startup (#1786846) + +* Thu Nov 21 2019 Bastien Nocera - 2.0-2 ++ switcheroo-control-2.0-2 +- Fix post scripts not reloading service file + +* Tue Nov 05 2019 Bastien Nocera - 2.0-1 ++ switcheroo-control-2.0-1 +- Update to 2.0 + +* Sat Jul 27 2019 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 17 2019 Bastien Nocera - 1.3.1-1 ++ switcheroo-control-1.3.1-1 +- Fix Secure Boot work-around + +* Wed Jun 12 2019 Bastien Nocera - 1.3-1 ++ switcheroo-control-1.3-1 +- Update to 1.3 +- Fix operation with SecureBoot enabled + +* Sun Feb 03 2019 Fedora Release Engineering - 1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* 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