You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.3 KiB

Name: woodpecker
Version: 0.15.0
Release: 1%{?dist}
Summary: Woodpecker is a Container-Native, Continuous Delivery Platform
License: Apache
BuildRequires: golang
%package server
Summary: Documentation files for %{name}
Group: Documentation
%description server
WoodpeckerCI Server instance
%package cli
Summary: Documentation files for %{name}
Group: Documentation
%description cli
WoodpeckerCI CLI
%package agent
Summary: Agent for Drone Server
Group: Agent
%description agent
Agent for the Woodpecker CI Server
Woodpecker is a Continuous Delivery platform forked from Drone
built on Docker, written in Go.
%setup -q -T -c %{name}-%{version}
mkdir -p go/src/
cd go/src/
git clone
export GOPATH=`pwd`
export GO111MODULE=on
cd go/src/
#git checkout v%{version}
pushd web
yarnpkg install
yarnpkg run build
yarnpkg run test
export CGO_ENABLED=0
go build -v -trimpath -ldflags "-s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid %{version} -X '"%{version}"'" -o woodpecker-server
go build -v -trimpath -ldflags "-s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid %{version} -X '"%{version}"'" -o woodpecker-cli
go build -v -trimpath -ldflags "-s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid %{version} -X '"%{version}"'" -o woodpecker-agent
mkdir -p %{buildroot}%{_bindir}
cp -v go/src/ %{buildroot}%{_bindir}
cp -v go/src/ %{buildroot}%{_bindir}
cp -v go/src/ %{buildroot}%{_bindir}
%files server
%files cli
%files agent