RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/switcheroo-control#8cca8a08f6a481f32241a7f4cfa1ab4e4402b2c1
This commit is contained in:
parent
444540b585
commit
720d954124
7
.gitignore
vendored
7
.gitignore
vendored
@ -0,0 +1,7 @@
|
||||
/switcheroo-control-1.0.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
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (switcheroo-control-2.2.tar.xz) = 37ad3760c5d98a8fed2c8e172eed70864d426921da610b2921551e42e2c9a6d417ca5eefb867e3880742e10cffe0e61bffa6a95437e0a0deaec69a6b84e67d78
|
135
switcheroo-control.spec
Normal file
135
switcheroo-control.spec
Normal file
@ -0,0 +1,135 @@
|
||||
Name: switcheroo-control
|
||||
Version: 2.2
|
||||
Release: 2%{?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/88210ff234d8f6698bdfa17c87bc3480/switcheroo-control-2.2.tar.xz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(gudev-1.0)
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: meson
|
||||
BuildRequires: systemd
|
||||
|
||||
%{?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
|
||||
|
||||
# https://gitlab.freedesktop.org/hadess/switcheroo-control/-/merge_requests/32
|
||||
sed -i 's,/bin/python,/bin/python3,' %{buildroot}/%{_bindir}/switcherooctl
|
||||
|
||||
%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
|
||||
%{_sysconfdir}/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
|
||||
* 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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Nov 04 2016 Bastien Nocera <bnocera@redhat.com> - 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 <klember@redhat.com> - 1.0-1
|
||||
- Initial Fedora packaging
|
Loading…
Reference in New Issue
Block a user