Compare commits

..

No commits in common. "ac16ed8ff19f10d7de11329ebd929d062d6e67b2" and "c8s" have entirely different histories.

5 changed files with 12 additions and 96 deletions

7
.gitignore vendored
View File

@ -1,8 +1 @@
/switcheroo-control-1.0.tar.xz
/switcheroo-control-1.1.tar.xz /switcheroo-control-1.1.tar.xz
/switcheroo-control-1.3.tar.xz
/switcheroo-control-1.3.1.tar.xz
/switcheroo-control-2.0.tar.xz
/switcheroo-control-2.1.tar.xz
/switcheroo-control-2.2.tar.xz
/switcheroo-control-2.4.tar.xz

View File

@ -1 +0,0 @@
0c0fe7be3ab924ce72f5f35b4d2f954cea07be92 switcheroo-control-2.4.tar.xz

View File

@ -1,6 +1,6 @@
--- !Policy --- !Policy
product_versions: product_versions:
- rhel-9 - rhel-8
decision_context: osci_compose_gate decision_context: osci_compose_gate
rules: rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional} - !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

View File

@ -1 +1 @@
SHA512 (switcheroo-control-2.4.tar.xz) = 47f071b17cbb520d862800ef2d8389ada1130be96a8c1efed9be6793081b5826355ad30b0feeba1cc9eda792b4c943ffc852d12648b0c5e74f25c207d151c1c3 SHA512 (switcheroo-control-1.1.tar.xz) = 467c03bfbe0596d42d4447bc6943a489430fc4eea873f306328de4e1230edf32f1828f3c0575ea9ea8d620664b4c2d7cf73dd8f2c718b4b001739eaac90af113

View File

@ -1,18 +1,14 @@
Name: switcheroo-control Name: switcheroo-control
Version: 2.4 Version: 1.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: D-Bus service to check the availability of dual-GPU Summary: D-Bus service to check the availability of dual-GPU
License: GPLv3 License: GPLv3
URL: https://gitlab.freedesktop.org/hadess/switcheroo-control/ URL: https://github.com/hadess/switcheroo-control
# URL from https://gitlab.freedesktop.org/hadess/switcheroo-control/-/releases Source0: https://github.com/hadess/switcheroo-control/releases/download/%{version}/switcheroo-control-%{version}.tar.xz
Source0: https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/accd4a9492979bfd91b587ae7e18d3a2/switcheroo-control-2.4.tar.xz
BuildRequires: gcc BuildRequires: gcc
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-2.0)
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: systemd BuildRequires: systemd
%{?systemd_requires} %{?systemd_requires}
@ -20,111 +16,39 @@ BuildRequires: systemd
%description %description
D-Bus service to check the availability of dual-GPU. 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 %prep
%autosetup %autosetup
%build %build
%meson -Dgtk_doc=true %configure
%meson_build %make_build
%install %install
%meson_install %make_install
%post %post
if [ $1 -eq 2 ] && [ -x /usr/bin/systemctl ] ; then
/usr/bin/systemctl daemon-reload
fi
%systemd_post switcheroo-control.service %systemd_post switcheroo-control.service
%udev_hwdb_update
%preun %preun
%systemd_preun switcheroo-control.service %systemd_preun switcheroo-control.service
%postun %postun
%systemd_postun_with_restart switcheroo-control.service %systemd_postun_with_restart switcheroo-control.service
%udev_hwdb_update
%files %files
%license COPYING %license COPYING
%doc NEWS README.md %doc NEWS README.md
%{_bindir}/switcherooctl
%{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf %{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
%{_unitdir}/switcheroo-control.service %{_unitdir}/switcheroo-control.service
%{_libexecdir}/switcheroo-control %{_sbindir}/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 %changelog
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jan 04 2021 Bastien Nocera <bnocera@redhat.com> - 2.4-1
+ switcheroo-control-2.4-1
- Update to 2.4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Apr 27 2020 Bastien Nocera <bnocera@redhat.com> - 2.2-1
+ switcheroo-control-2.2-1
- Update to 2.2
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jan 02 2020 Bastien Nocera <bnocera@redhat.com> - 2.1-1
+ switcheroo-control-2.1-1
- Update to 2.1
- Fix crasher on startup (#1786846)
* Thu Nov 21 2019 Bastien Nocera <bnocera@redhat.com> - 2.0-2
+ switcheroo-control-2.0-2
- Fix post scripts not reloading service file
* Tue Nov 05 2019 Bastien Nocera <bnocera@redhat.com> - 2.0-1
+ switcheroo-control-2.0-1
- Update to 2.0
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jun 17 2019 Bastien Nocera <bnocera@redhat.com> - 1.3.1-1
+ switcheroo-control-1.3.1-1
- Fix Secure Boot work-around
* Wed Jun 12 2019 Bastien Nocera <bnocera@redhat.com> - 1.3-1
+ switcheroo-control-1.3-1
- Update to 1.3
- Fix operation with SecureBoot enabled
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild