Skip to content

Commit

Permalink
chore: update spec file version to 6.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
flukejones committed Feb 21, 2025
1 parent efa379e commit 91af15d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion distro-packaging/fedora/asusctl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
%global debug_package %{nil}
%endif

%define version 6.1.7
%define version 6.1.8
%define specrelease %{?dist}
%define pkg_release 8%{specrelease}

Expand Down
39 changes: 18 additions & 21 deletions distro-packaging/opensuse/asusctl.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#


%if %{defined fedora}
%global debug_package %{nil}
%endif
Expand Down Expand Up @@ -75,36 +74,34 @@ 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
%setup -q -n my_package-%version
%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
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
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
%service_add_pre asusd.service

%post
%service_add_post asusd.service
%service_add_post asusd.service

%preun
%service_del_preun asusd.service
%service_del_preun asusd.service

%postun
%service_del_postun asusd.service
Expand Down

0 comments on commit 91af15d

Please sign in to comment.