This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/installfiles/linux/RPM/README.md

25 lines
1.3 KiB
Markdown
Raw Normal View History

2016-02-28 00:02:48 +01:00
This folder contains two spec files which enable building of various RPM packages for ZeroTier.
#zerotier-one.spec.in
This file contains the information to build an RPM from the bash based binary installer of ZeroTier. The resulting RPM cannot be recompiled to different architecture.
#zerotier.spec
2016-02-28 00:02:48 +01:00
This spec file is a "standard" RPM spec file which enables building an SRPM package from the ZeroTier sources. This makes possible to compile the software on different architectures in a standard way. The spec file supports two packages: the standard zerotier and the zerotier-controller too. It supports some of the build options exposed in the original Linux makefile:
2016-02-28 00:00:55 +01:00
> `rpmbuild -ba zerotier.spec` #builds the standard zerotier package, this is what you need in most of the cases
2016-02-28 00:02:48 +01:00
2016-02-28 00:00:55 +01:00
> `rpmbuild -ba zerotier.spec --with controller` #builds the zerotier-controller package
2016-02-28 00:02:48 +01:00
2016-02-28 00:00:55 +01:00
> `rpmbuild -ba zerotier.spec --with debug` #builds the zerotier package with debug enable<>d
2016-02-28 00:02:48 +01:00
2016-02-28 00:00:55 +01:00
> `rpmbuild -ba zerotier.spec --with miniupnpc` #builds the zerotier package with miniupnpc enabled
2016-02-28 00:02:48 +01:00
2016-02-28 00:00:55 +01:00
> `rpmbuild -ba zerotier.spec --with cluster` #builds the zerotier package with cluster enabled
2016-02-28 00:00:55 +01:00
####Build environment preparation
As zerotier is not distributed in tar.gz format at the moment, the %prep section of the spec file takes care about this.