Update package to version 2.6
This commit is contained in:
parent
7ef47777f7
commit
0fb4109e68
Binary file not shown.
BIN
switcheroo-control-2.6.tar.gz
Normal file
BIN
switcheroo-control-2.6.tar.gz
Normal file
Binary file not shown.
@ -1,43 +1,63 @@
|
|||||||
Name: switcheroo-control
|
Name: switcheroo-control
|
||||||
Version: 1.1
|
Version: 2.6
|
||||||
Release: 8
|
Release: 1
|
||||||
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://gitlab.freedesktop.org/hadess/switcheroo-control/
|
||||||
Source0: https://github.com/hadess/switcheroo-control/releases/download/%{version}/switcheroo-control-%{version}.tar.xz
|
Source0: %{url}-/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig(gio-2.0)
|
||||||
|
BuildRequires: pkgconfig(gudev-1.0)
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: systemd
|
||||||
|
BuildRequires: gtk-doc
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: python3-dbusmock
|
||||||
|
BuildRequires: umockdev
|
||||||
|
|
||||||
BuildRequires: pkgconfig(gio-2.0) systemd gcc
|
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
D-Bus service to check the availability of dual-GPU.
|
D-Bus service to check the availability of dual-GPU.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n switcheroo-control-%{version} -p1
|
%autosetup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%meson -Dgtk_doc=true
|
||||||
%make_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%meson_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
|
||||||
%doc COPYING NEWS README.md
|
%doc COPYING NEWS README.md
|
||||||
%{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
|
%{_datadir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
|
||||||
%{_unitdir}/switcheroo-control.service
|
%{_unitdir}/switcheroo-control.service
|
||||||
%{_sbindir}/switcheroo-control
|
%{_bindir}/switcherooctl
|
||||||
|
%{_libexecdir}/switcheroo-control
|
||||||
|
%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
|
||||||
|
%{_mandir}/man1/switcherooctl.1*
|
||||||
|
%{_datadir}/gtk-doc/html/%{name}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 23 2023 luoxinyuan <xyluoct@isoftstone.com> - 2.6-1
|
||||||
|
- update to 2.6
|
||||||
|
|
||||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.1-8
|
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.1-8
|
||||||
- Completing build dependencies to fix gcc compiler missing error
|
- Completing build dependencies to fix gcc compiler missing error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user