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.

64 lines
1.2 KiB

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