mirror of
https://abf.rosa.ru/djam/nexsync.git
synced 2025-02-23 16:02:55 +00:00
Imported from SRPM
This commit is contained in:
commit
d37bac74fd
2 changed files with 46 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
nexsync-6aaffa393ddf0998b62846b1bf3d84331a90e9c1.tar.gz: 34afc7f0cd8030b9cef1035bb9022d80506d83d6
|
44
nexsync.spec
Normal file
44
nexsync.spec
Normal file
|
@ -0,0 +1,44 @@
|
|||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
%define gitcommit 6aaffa393ddf0998b62846b1bf3d84331a90e9c1
|
||||
|
||||
Name: nexsync
|
||||
Version: 0.0.1
|
||||
Release: 1
|
||||
Summary: A tool for artifacts synchronization between Nexus2 and Nexu3
|
||||
URL: https://github.com/marsskop/nexsync
|
||||
Source0: %{url}/archive/%{gitcommit}.tar.gz?/%{name}-%{gitcommit}.tar.gz
|
||||
License: opensource
|
||||
Group: Development/Other
|
||||
BuildRequires: go
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
|
||||
%description
|
||||
NexSync, a Go tool to synchronize repositories and artifacts
|
||||
to and from Nexus2/Nexus3 Artifact Servers. Able to
|
||||
synchronize Maven2 artifacts and artifact versions between
|
||||
repositories.
|
||||
|
||||
Currently capable of:
|
||||
|
||||
synchronizing artifacts between repos in Nexus3
|
||||
synchronizing artifact versions from repos in Nexus2/Nexus3 to repos in Nexus3
|
||||
Tool was originally created for automatic artifact mirroring.
|
||||
|
||||
%prep
|
||||
%setup -qn %{name}-%{gitcommit}
|
||||
|
||||
%build
|
||||
export GOPROXY=direct
|
||||
go build -ldflags '-s -w' -o bin/%{name} ./cmd/%{name}
|
||||
|
||||
upx bin/*
|
||||
|
||||
%install
|
||||
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_bindir}/%{name}
|
||||
|
Loading…
Add table
Reference in a new issue