-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9c8e42
commit 9d9b832
Showing
5 changed files
with
51 additions
and
57 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<services> | ||
<service name="obs_scm"> | ||
<param name="url">git://github.com/ViktorBarzin/goclip.git</param> | ||
<param name="scm">git</param> | ||
</service> | ||
<service name="tar" mode="buildtime" /> | ||
<service name="recompress" mode="buildtime"> | ||
<param name="file">*.tar</param> | ||
<param name="compression">xz</param> | ||
</service> | ||
<service name="set_version" mode="buildtime" /> | ||
</services> |
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,39 @@ | ||
Name: goclip | ||
Version: 0.1 | ||
Release: 0 | ||
License: MIT | ||
Summary: Share clipboard contents over a network | ||
Url: https://github.com/ViktorBarzin/goclip | ||
Group: Development/Languages/Other | ||
Source0: https://github.com/ViktorBarzin/goclip/archive/%{name}-v%{version}.tar.gz | ||
Requires: gtk3-devel | ||
Requires: cairo-devel | ||
Requires: golang | ||
|
||
%description | ||
Share clipboard contents over a network | ||
|
||
%prep | ||
%autosetup -n %{name}-%{name}-v%{version} | ||
|
||
%build | ||
# set up temporary build gopath, and put our directory there | ||
mkdir -p ./_build/src/github.com/%{name} | ||
ln -s $(pwd) ./_build/src/github.com/%{name}/app | ||
GO111MODULE=on go get -u github.com/viktorbarzin/%{name} | ||
export GOPATH=$(pwd)/_build:%{gopath} | ||
go build -o %{name} . | ||
|
||
%install | ||
install -d %{buildroot}%{_bindir} | ||
install -p -m 0755 ./%{name} %{buildroot}%{_bindir}/%{name} | ||
|
||
#%check | ||
#%gotest $IMPORTPATH_NAMESPACE | ||
|
||
%files | ||
%{_bindir}/%{name} | ||
%doc README.md LICENSE | ||
|
||
#%changelog | ||
|
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.