diff --git a/_service b/_service new file mode 100644 index 0000000..196845c --- /dev/null +++ b/_service @@ -0,0 +1,12 @@ + + + git://github.com/ViktorBarzin/goclip.git + git + + + + *.tar + xz + + + diff --git a/build.spec b/build.spec new file mode 100644 index 0000000..04d72ba --- /dev/null +++ b/build.spec @@ -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 + diff --git a/goclip b/goclip new file mode 100755 index 0000000..27d08db Binary files /dev/null and b/goclip differ diff --git a/goclip.spec b/goclip.spec deleted file mode 100644 index d4007a9..0000000 --- a/goclip.spec +++ /dev/null @@ -1,57 +0,0 @@ -# -# Copyright (c) 2019 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/ -# - -%{go_nostrip} - -Name: goclip -Version: 0.0.0+git20140916 -Release: 0 -License: MIT -Summary: Share clipboard contents over a network -Url: https://github.com/ViktorBarzin/goclip -Group: Development/Languages/Other -# Source: $EXACT_UPSTREAM_NAME-%{version}.tar.xz -BuildRequires: golang-packaging -BuildRequires: xxx-devel -BuildRequires: xz -Requires: xxx-devel -Requires: gtk3-devel -Requires: cairo-devel -Requires: glib-devel -%{go_provides} - -%description -Share clipboard contents over a network - -# %prep -# %setup -q -n $EXACT_UPSTREAM_NAME-%{version} - -%build -%goprep github.com/viktorbarzin/goclip -%gobuild github.com/viktorbarzin/goclip - -%install -%goinstall -%gosrc - -%gofilelist - -# %check -# %gotest $IMPORTPATH_NAMESPACE - -%files -f file.lst -%doc README LICENSE - -%changelog diff --git a/source.gif b/source.gif new file mode 100644 index 0000000..f68c77a Binary files /dev/null and b/source.gif differ