Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f39] package spotx-bash (#2629) #2630

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions anda/tools/spotx-bash/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "spotx-bash.spec"
}
labels {
nightly = 1
}
}
36 changes: 36 additions & 0 deletions anda/tools/spotx-bash/spotx-bash.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
%global commit 0143cd113cdec0f0516beba3afe46e42e69b8b1c
%global commit_date 20241119
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name: spotx-bash
Version: %commit_date.git~%shortcommit
Release: 1%?dist
Summary: Adblock for the Spotify desktop client on Linux.
License: MIT
URL: https://github.com/SpotX-Official/SpotX-Bash
Source0: %url/archive/%commit.tar.gz
Requires: bash
BuildArch: noarch
Provides: spotx spotx-linux spot-x spotx.sh

%description
%summary

%prep
%autosetup -n SpotX-Bash-%commit

%install
mkdir -p %{buildroot}%{_bindir}
install -Dm 755 spotx.sh %buildroot%{_bindir}/spotx

%post
%{__ln_s} -f %{_bindir}/spotx %{_bindir}/spotx.sh

%files
%doc README.md
%license LICENSE
%_bindir/spotx

%changelog
* Sat Dec 14 2024 Its-J
- Package SpotX-Bash
5 changes: 5 additions & 0 deletions anda/tools/spotx-bash/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("SpotX-Official/SpotX-Bash"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}
Loading