mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Add opensuse CI
This commit is contained in:
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [v6.1.8]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Testing CI for opensuse RPM build
|
||||||
|
|
||||||
## [v6.1.7]
|
## [v6.1.7]
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
28
Cargo.lock
generated
28
Cargo.lock
generated
@@ -250,7 +250,7 @@ checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "asusctl"
|
name = "asusctl"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dmi_id",
|
"dmi_id",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
@@ -269,7 +269,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "asusd"
|
name = "asusd"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cargo-husky",
|
"cargo-husky",
|
||||||
"concat-idents",
|
"concat-idents",
|
||||||
@@ -296,7 +296,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "asusd-user"
|
name = "asusd-user"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"config-traits",
|
"config-traits",
|
||||||
"dirs",
|
"dirs",
|
||||||
@@ -1084,7 +1084,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "config-traits"
|
name = "config-traits"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"ron",
|
"ron",
|
||||||
@@ -1476,7 +1476,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dmi_id"
|
name = "dmi_id"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"udev 0.8.0",
|
"udev 0.8.0",
|
||||||
@@ -4743,7 +4743,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog-control-center"
|
name = "rog-control-center"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"asusd",
|
"asusd",
|
||||||
"concat-idents",
|
"concat-idents",
|
||||||
@@ -4774,7 +4774,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_anime"
|
name = "rog_anime"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dmi_id",
|
"dmi_id",
|
||||||
"gif 0.12.0",
|
"gif 0.12.0",
|
||||||
@@ -4788,7 +4788,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_aura"
|
name = "rog_aura"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dmi_id",
|
"dmi_id",
|
||||||
"log",
|
"log",
|
||||||
@@ -4799,7 +4799,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_dbus"
|
name = "rog_dbus"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"asusd",
|
"asusd",
|
||||||
"rog_anime",
|
"rog_anime",
|
||||||
@@ -4813,7 +4813,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_platform"
|
name = "rog_platform"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"concat-idents",
|
"concat-idents",
|
||||||
"inotify",
|
"inotify",
|
||||||
@@ -4826,7 +4826,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_profiles"
|
name = "rog_profiles"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"rog_platform",
|
"rog_platform",
|
||||||
@@ -4837,7 +4837,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_scsi"
|
name = "rog_scsi"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ron",
|
"ron",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -4847,7 +4847,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_simulators"
|
name = "rog_simulators"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"rog_anime",
|
"rog_anime",
|
||||||
@@ -4857,7 +4857,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog_slash"
|
name = "rog_slash"
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dmi_id",
|
"dmi_id",
|
||||||
"serde",
|
"serde",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "6.1.7"
|
version = "6.1.8"
|
||||||
rust-version = "1.82"
|
rust-version = "1.82"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -45,21 +45,14 @@ BuildRequires: cargo
|
|||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: rust
|
BuildRequires: rust
|
||||||
BuildRequires: rust-std-static
|
BuildRequires: rust-std-static
|
||||||
# BuildRequires: pkgconfig(expat)
|
|
||||||
BuildRequires: pkgconfig(gbm)
|
BuildRequires: pkgconfig(gbm)
|
||||||
# BuildRequires: pkgconfig(dbus-1)
|
|
||||||
# BuildRequires: pkgconfig(libdrm)
|
|
||||||
BuildRequires: pkgconfig(libinput)
|
BuildRequires: pkgconfig(libinput)
|
||||||
BuildRequires: pkgconfig(libseat)
|
BuildRequires: pkgconfig(libseat)
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: pkgconfig(libudev)
|
||||||
BuildRequires: pkgconfig(xkbcommon)
|
BuildRequires: pkgconfig(xkbcommon)
|
||||||
BuildRequires: pkgconfig(libzstd)
|
BuildRequires: pkgconfig(libzstd)
|
||||||
# BuildRequires: pkgconfig(gtk+-3.0)
|
|
||||||
# BuildRequires: pkgconfig(gdk-3.0)
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
# expat-devel pcre2-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
asus-nb-ctrl is a utility for Linux to control many aspects of various
|
asus-nb-ctrl is a utility for Linux to control many aspects of various
|
||||||
ASUS laptops but can also be used with non-Asus laptops with reduced features.
|
ASUS laptops but can also be used with non-Asus laptops with reduced features.
|
||||||
@@ -76,22 +69,15 @@ A one-stop-shop GUI tool for asusd/asusctl. It aims to provide most controls,
|
|||||||
a notification service, and ability to run in the background.
|
a notification service, and ability to run in the background.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
#%setup -D -T -a 1 -c -n %{name}-%{version}-rc4/vendor
|
|
||||||
#%setup -D -T -a 0 -c -n %{name}-%{version}-rc4
|
|
||||||
%autosetup
|
%autosetup
|
||||||
#%setup -D -T -a 1
|
|
||||||
|
|
||||||
# mv Cargo.lock{,.bak}
|
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
# mv Cargo.lock{.bak,}
|
|
||||||
sed -i 's|offline = true|offline = false|' .cargo/config.toml
|
sed -i 's|offline = true|offline = false|' .cargo/config.toml
|
||||||
sed -i 's|source.crates-io|source.ignore_this|' .cargo/config.toml
|
sed -i 's|source.crates-io|source.ignore_this|' .cargo/config.toml
|
||||||
# cat %{SOURCE2} >> .cargo/config.toml
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%{rustflags}"
|
export RUSTFLAGS="%{rustflags}"
|
||||||
%cargo_build
|
%cargo_build
|
||||||
# cargo build --release --frozen --offline --config .cargo/config.toml
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export RUSTFLAGS="%{rustflags}"
|
export RUSTFLAGS="%{rustflags}"
|
||||||
|
|||||||
144
distro-packaging/opensuse/asusctl.spec
Normal file
144
distro-packaging/opensuse/asusctl.spec
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
#
|
||||||
|
# spec file for package asusctl
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020-2021 Luke Jones <luke@ljones.dev>
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if %{defined fedora}
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define version 6.1.7
|
||||||
|
%define specrelease %{?dist}
|
||||||
|
%define pkg_release 8%{specrelease}
|
||||||
|
|
||||||
|
# Use hardening ldflags.
|
||||||
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
||||||
|
Name: asusctl
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{pkg_release}
|
||||||
|
Summary: Control fan speeds, LEDs, graphics modes, and charge levels for ASUS notebooks
|
||||||
|
License: MPL-2.0
|
||||||
|
|
||||||
|
URL: https://gitlab.com/asus-linux/asusctl
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
%if %{defined fedora}
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%else
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
|
%endif
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: clang-devel
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: rust
|
||||||
|
BuildRequires: rust-std-static
|
||||||
|
BuildRequires: pkgconfig(gbm)
|
||||||
|
BuildRequires: pkgconfig(libinput)
|
||||||
|
BuildRequires: pkgconfig(libseat)
|
||||||
|
BuildRequires: pkgconfig(libudev)
|
||||||
|
BuildRequires: pkgconfig(xkbcommon)
|
||||||
|
BuildRequires: pkgconfig(libzstd)
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
|
Requires: libappindicator-gtk3
|
||||||
|
|
||||||
|
%description
|
||||||
|
asusctl is a utility for Linux to control many aspects of various ASUS laptops
|
||||||
|
but can also be used with non-Asus laptops with reduced features.
|
||||||
|
|
||||||
|
It provides an interface for rootless control of some system functions such as
|
||||||
|
fan speeds, keyboard LEDs, battery charge level, and graphics modes.
|
||||||
|
asusctl enables third-party apps to use the above with dbus methods.
|
||||||
|
|
||||||
|
%package rog-gui
|
||||||
|
Summary: An experimental GUI for %{name}
|
||||||
|
|
||||||
|
%description rog-gui
|
||||||
|
A one-stop-shop GUI tool for asusd/asusctl. It aims to provide most controls,
|
||||||
|
a notification service, and ability to run in the background.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
%if %{defined fedora}
|
||||||
|
%cargo_prep
|
||||||
|
%endif
|
||||||
|
sed -i 's|offline = true|offline = false|' .cargo/config.toml
|
||||||
|
sed -i 's|source.crates-io|source.ignore_this|' .cargo/config.toml
|
||||||
|
|
||||||
|
%build
|
||||||
|
export RUSTFLAGS="%{rustflags}"
|
||||||
|
%cargo_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
export RUSTFLAGS="%{rustflags}"
|
||||||
|
mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}%{_docdir}"
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
install -D -m 0644 README.md %{buildroot}/%{_docdir}/%{name}/README.md
|
||||||
|
install -D -m 0644 rog-anime/README.md %{buildroot}/%{_docdir}/%{name}/README-anime.md
|
||||||
|
install -D -m 0644 rog-anime/data/diagonal-template.png %{buildroot}/%{_docdir}/%{name}/diagonal-template.png
|
||||||
|
|
||||||
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/rog-control-center.desktop
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre asusd.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%service_add_post asusd.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun asusd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun asusd.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/asusd
|
||||||
|
%{_bindir}/asusd-user
|
||||||
|
%{_bindir}/asusctl
|
||||||
|
%{_unitdir}/asusd.service
|
||||||
|
%{_userunitdir}/asusd-user.service
|
||||||
|
%{_udevrulesdir}/99-asusd.rules
|
||||||
|
#%dir %{_sysconfdir}/asusd/
|
||||||
|
%{_datadir}/asusd/aura_support.ron
|
||||||
|
%{_datadir}/dbus-1/system.d/asusd.conf
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_yellow.png
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_green.png
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_red.png
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_blue.png
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_orange.png
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_white.png
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/gpu-compute.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/gpu-hybrid.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/gpu-integrated.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/gpu-nvidia.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/gpu-vfio.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/status/notification-reboot.svg
|
||||||
|
%{_docdir}/%{name}/
|
||||||
|
%{_datadir}/asusd/
|
||||||
|
|
||||||
|
%files rog-gui
|
||||||
|
%{_bindir}/rog-control-center
|
||||||
|
%{_datadir}/applications/rog-control-center.desktop
|
||||||
|
%{_datadir}/icons/hicolor/512x512/apps/rog-control-center.png
|
||||||
|
%{_datadir}/rog-gui
|
||||||
|
|
||||||
|
%changelog
|
||||||
10
distro-packaging/opensuse/workflow.yml
Normal file
10
distro-packaging/opensuse/workflow.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
workflow:
|
||||||
|
steps:
|
||||||
|
- trigger_services:
|
||||||
|
project: home:luke_nukem:asus
|
||||||
|
package: asusctl
|
||||||
|
- rebuild_package:
|
||||||
|
project: home:luke_nukem:asus
|
||||||
|
package: asusctl
|
||||||
|
filters:
|
||||||
|
event: tag_push
|
||||||
Reference in New Issue
Block a user