switcheroo-control/switcheroo-control.spec

66 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-11-30 15:29:43 +08:00
Name: switcheroo-control
2023-04-23 16:18:41 +08:00
Version: 2.6
Release: 1
2019-11-30 15:29:43 +08:00
Summary: D-Bus service to check the availability of dual-GPU
License: GPLv3
URL: https://gitlab.freedesktop.org/hadess/switcheroo-control/
2023-04-23 16:18:41 +08:00
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
2019-11-30 15:29:43 +08:00
%{?systemd_requires}
%description
D-Bus service to check the availability of dual-GPU.
%prep
2023-04-23 16:18:41 +08:00
%autosetup
2019-11-30 15:29:43 +08:00
%build
2023-04-23 16:18:41 +08:00
%meson -Dgtk_doc=true
%meson_build
2019-11-30 15:29:43 +08:00
%install
2023-04-23 16:18:41 +08:00
%meson_install
2019-11-30 15:29:43 +08:00
%post
2023-04-23 16:18:41 +08:00
if [ $1 -eq 2 ] && [ -x /usr/bin/systemctl ]; then
/usr/bin/systemctl daemon-reload
fi
2019-11-30 15:29:43 +08:00
%systemd_post switcheroo-control.service
2023-04-23 16:18:41 +08:00
%udev_hwdb_update
2019-11-30 15:29:43 +08:00
%preun
%systemd_preun switcheroo-control.service
%postun
%systemd_postun_with_restart switcheroo-control.service
2023-04-23 16:18:41 +08:00
%udev_hwdb_update
2019-11-30 15:29:43 +08:00
%files
%doc COPYING NEWS README.md
2023-04-23 16:18:41 +08:00
%{_datadir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
2019-11-30 15:29:43 +08:00
%{_unitdir}/switcheroo-control.service
2023-04-23 16:18:41 +08:00
%{_bindir}/switcherooctl
%{_libexecdir}/switcheroo-control
%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
%{_mandir}/man1/switcherooctl.1*
%{_datadir}/gtk-doc/html/%{name}/
2019-11-30 15:29:43 +08:00
%changelog
2023-04-23 16:18:41 +08:00
* 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
2019-11-30 15:29:43 +08:00
* Sat Nov 30 2019 lingsheng <lingsheng@huawei.com> - 1.1-7
- Package init