-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
License and spec file for automated builds
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
!go.* | ||
!.github/** | ||
vendor/* | ||
!LICENSE | ||
!spc.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Generated by go2rpm 1 | ||
%bcond_without check | ||
|
||
# https://github.com/dvdmuckle/spc | ||
|
||
%global goipath github.com/dvdmuckle/spc | ||
%global tag v0.4.1 | ||
%gometa | ||
Version: %{tag} | ||
|
||
|
||
%global common_description %{expand: | ||
A lightweight multiplatform CLI for Spotify.} | ||
|
||
%global godocs README.md | ||
|
||
Name: spc | ||
Release: 1%{?dist} | ||
Summary: A lightweight multiplatform CLI for Spotify | ||
|
||
License: Apache 2.0 | ||
|
||
URL: %{gourl} | ||
Source0: %{gosource} | ||
|
||
# Using go mod vendor to get the build requirements, since | ||
# we would have to anyways for all the packages that don't | ||
# have Fedora packages | ||
# BuildRequires: golang(github.com/golang/glog) | ||
# Package does not exist: BuildRequires: golang(github.com/ktr0731/go-fuzzyfinder) | ||
# Package does not exist: BuildRequires: golang(github.com/markbates/goth/providers/spotify) | ||
# BuildRequires: golang(github.com/mitchellh/go-homedir) | ||
# BuildRequires: golang(github.com/spf13/cobra) | ||
# BuildRequires: golang(github.com/spf13/viper) | ||
# Package does not exist: BuildRequires: golang(github.com/zmb3/spotify) | ||
# BuildRequires: golang(golang.org/x/oauth2) | ||
BuildRequires: git | ||
|
||
%description | ||
%{common_description} | ||
|
||
%gopkg | ||
|
||
%prep | ||
%goprep | ||
|
||
%build | ||
go mod vendor | ||
%gobuild -o %{gobuilddir}/bin/spc %{goipath} | ||
|
||
%install | ||
%gopkginstall | ||
install -m 0755 -vd %{buildroot}%{_bindir} | ||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ | ||
|
||
%if %{with check} | ||
%check | ||
%gocheck | ||
%endif | ||
|
||
%files | ||
%doc README.md | ||
%license LICENSE | ||
%{_bindir}/* | ||
|
||
%gopkgfiles | ||
|
||
%changelog | ||
* Sat Aug 22 13:36:00 EDT 2020 David Muckle <[email protected]> - 0.4-1 | ||
- Initial package | ||
|