Browse Source

droneio package creation

Signed-off-by: pipelinebuilder_pel7ppc64bebuilder0 <pipelinebuilder@powerel.org>
master
pipelinebuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
e76a8e4b7d
  1. 64
      SPECS/drone.spec

64
SPECS/drone.spec

@ -0,0 +1,64 @@
Name: drone
Version: 1.2.3
Release: 1%{?dist}
Summary: Drone is a Container-Native, Continuous Delivery Platform
License: Apache
URL: https://drone.io/
BuildRequires: golang
#Requires:


%package server
Summary: Documentation files for %{name}
Group: Documentation
%description server
Drone CI Server instance


%package agent
Summary: Agent for Drone Server
Group: Agent
%description agent
Agent for the Drone CI Server


%description
Drone is a Continuous Delivery platform
built on Docker, written in Go.


%prep
%setup -q -T -c %{name}-%{version}
mkdir -p src/github.com/drone
cd src/github.com/drone
git clone https://github.com/drone/drone


%build
export GOPATH=`pwd`
export GO111MODULE=on
cd src/github.com/drone/drone
git checkout v%{version}
%ifarch ppc64
export CGO_ENABLED=1
%endif
go build -tags "oss" -ldflags "-extldflags -s -w"-o drone-server github.com/drone/drone/cmd/drone-server
export CGO_ENABLED=1
go build -tags "oss" -ldflags "-extldflags -s -w" -o drone-agent github.com/drone/drone/cmd/drone-agent
go build -tags "oss" -ldflags "-extldflags -s -w" -o drone-controller github.com/drone//drone/cmd/drone-controller


%install


%files


%files server


%files agent



%changelog
Loading…
Cancel
Save