Skip to content

Commit

Permalink
Add upstream name to few fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorBarzin committed Mar 27, 2020
1 parent d9c8e42 commit 9d9b832
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 57 deletions.
12 changes: 12 additions & 0 deletions _service
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>
39 changes: 39 additions & 0 deletions build.spec
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

Binary file added goclip
Binary file not shown.
57 changes: 0 additions & 57 deletions goclip.spec

This file was deleted.

Binary file added source.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d9b832

Please sign in to comment.