diff --git a/SPECS/drone.spec b/SPECS/drone.spec new file mode 100644 index 0000000..2d4b5ae --- /dev/null +++ b/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