!3 Update package to version 2.6

From: @york038 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
This commit is contained in:
openeuler-ci-bot 2023-04-24 01:35:58 +00:00 committed by Gitee
commit f12edc6f82
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 30 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,43 +1,63 @@
Name: switcheroo-control
Version: 1.1
Release: 8
Version: 2.6
Release: 1
Summary: D-Bus service to check the availability of dual-GPU
License: GPLv3
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}
%description
D-Bus service to check the availability of dual-GPU.
%prep
%autosetup -n switcheroo-control-%{version} -p1
%autosetup
%build
%configure
%make_build
%meson -Dgtk_doc=true
%meson_build
%install
%make_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
%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
%{_sbindir}/switcheroo-control
%{_bindir}/switcherooctl
%{_libexecdir}/switcheroo-control
%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
%{_mandir}/man1/switcherooctl.1*
%{_datadir}/gtk-doc/html/%{name}/
%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
- Completing build dependencies to fix gcc compiler missing error