Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lighthomo
musicfox
musicfox.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File musicfox.spec of Package musicfox
# # spec file for package musicfox # # Copyright (c) 2024 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: musicfox Version: 4.5.3.11 Release: 0 Summary: musicfox 是用 Go 写的又一款网易云音乐命令行客户端 # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses License: MIT URL: https://github.com/go-musicfox/go-musicfox Source: _service BuildRequires: golang-packaging Patch1: xdg.patch BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(alsa) BuildRequires: fdupes Requires: libnotify-tools %description go-musicfox 是用 Go 写的又一款网易云音乐命令行客户端,支持各种音质级别、UnblockNeteaseMusic、Last.fm、MPRIS 和 macOS 交互响应(睡眠暂停、蓝牙耳机连接断开响应和菜单栏控制等)等功能特性。 %prep %setup -q -n %_sourcedir/%name-%version -T -D %__ln -s %_sourcedir/%name-%version %_builddir/%_sourcedir %patch 1 %build export BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)" go build \ -mod=vendor \ -buildmode=pie \ -trimpath \ -ldflags \ " \ -X github.com/go-musicfox/go-musicfox/internal/types.AppVersion=%version \ -X github.com/go-musicfox/go-musicfox/internal/types.GitRevision=%version \ -X github.com/go-musicfox/go-musicfox/internal/types.User=lighthomo \ -X github.com/go-musicfox/go-musicfox/internal/types.Time=%{BUILD_DATE} \ -X github.com/go-musicfox/go-musicfox/internal/types.Host=%{_arch}\ -X github.com/go-musicfox/go-musicfox/internal/types.BuildTags=%version\ -X github.com/go-musicfox/go-musicfox/internal/types.LastfmKey=${LASTFM_KEY}\ -X github.com/go-musicfox/go-musicfox/internal/types.LastfmSecret=${LASTFM_SECRET}\ " \ -tags %version \ cmd/musicfox.go %install %__install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name} %__install -D -m0644 previews/logo.png %{buildroot}%{_datadir}/icons/hicolor/1024x1024/apps/%{name}.png %__install -D -m0644 previews/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %__install -D -m0644 deploy/musicfox.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %fdupes %{buildroot} %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/icons/hicolor/1024x1024/apps/%{name}.png %{_datadir}/icons/hicolor %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor