This commit is contained in:
committed by
Git OBS Bridge
parent
8568b29ccb
commit
569eda7db0
4
_service
4
_service
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/wash2/cosmic_bg_theme.git</param>
|
||||
<param name="url">https://github.com/wash2/cosmic_ext_bg_theme.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">main</param>
|
||||
<param name="versionformat">0.1.0+git%cd.%h</param>
|
||||
@@ -13,7 +13,7 @@
|
||||
<param name="compression">zstd</param>
|
||||
</service>
|
||||
<service name="cargo_vendor" mode="manual">
|
||||
<param name="src">cosmic_bg_theme</param>
|
||||
<param name="src">cosmic_ext_bg_theme</param>
|
||||
<param name="update">false</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual" />
|
||||
|
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:485cd5c0a618d305abedde173d138ab33a15d592d47952928d5258c35f29b057
|
||||
size 116886
|
||||
oid sha256:43a8b3e085fbcfa2b84f69b229b2f302ce9e051d164de731aabd0704c7ce17ae
|
||||
size 116601
|
||||
|
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 8 00:59:21 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
|
||||
|
||||
- standardize packaging with also fixes for miscellaneous hardcoding
|
||||
filenames, using @PARENT_TAG where applicable, and be more specific
|
||||
with files in the %files section (so no non-wanted files are getting
|
||||
added
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 22:25:06 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
|
||||
|
||||
- new upstream url
|
||||
- remove service macros as they are unneeded for user units
|
||||
- use upstream service file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 31 22:43:47 UTC 2024 - Richard Rahl <rrahl0@disroot.org>
|
||||
|
||||
|
@@ -21,10 +21,10 @@ Version: 0.1.0+git20240603.9945b3d
|
||||
Release: 0
|
||||
Summary: COSMIC daemon for adapting theme to the wallpaper
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/wash2/cosmic_bg_theme
|
||||
URL: https://github.com/wash2/cosmic_ext_bg_theme
|
||||
Source0: %{name}-%{version}.tar.zst
|
||||
Source1: vendor.tar.zst
|
||||
Source2: %{name}.service
|
||||
Patch0: rename-binary-in-unit-file.patch
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: make
|
||||
|
||||
@@ -39,15 +39,7 @@ Unofficial service for syncing COSMIC theme with the active wallpaper.
|
||||
|
||||
%install
|
||||
install -Dm0755 ./target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dm0644 %{SOURCE2} %{buildroot}%{_userunitdir}/%{name}.service
|
||||
|
||||
%preun %service_del_preun %{name}.service
|
||||
|
||||
%postun %service_del_postun %{name}.service
|
||||
|
||||
%pre %service_add_pre %{name}.service
|
||||
|
||||
%post %service_add_post %{name}.service
|
||||
install -Dm0644 %{name}.service %{buildroot}%{_userunitdir}/%{name}.service
|
||||
|
||||
%check
|
||||
%{cargo_test}
|
||||
|
12
rename-binary-in-unit-file.patch
Normal file
12
rename-binary-in-unit-file.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -rub cosmic_ext_bg_theme/cosmic-ext-bg-theme.service cosmic_ext_bg_theme-patched/cosmic-ext-bg-theme.service
|
||||
--- cosmic_ext_bg_theme/cosmic-ext-bg-theme.service 2024-08-08 00:26:59.747847385 +0200
|
||||
+++ cosmic_ext_bg_theme-patched/cosmic-ext-bg-theme.service 2024-08-08 00:47:03.282348085 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
-ExecStart=/path/to/your/executable
|
||||
+ExecStart=/usr/bin/cosmic-ext-bg-theme
|
||||
Restart=always
|
||||
RestartSec=300
|
||||
|
Reference in New Issue
Block a user