Add RPM spec conditionals to include json-parser or bundle it depending on whether we are fedora or rhel/centos/epel.

This commit is contained in:
Adam Ierymenko 2016-06-08 16:19:38 -07:00
parent 3a48e3781b
commit e6328dfe82

View File

@ -11,13 +11,22 @@ BuildRequires: http-parser-devel
BuildRequires: lz4-devel
BuildRequires: libnatpmp-devel
BuildRequires: systemd
%if 0%{?fedora} >= 21
BuildRequires: json-parser-devel
%endif
Requires: http-parser
Requires: lz4
Requires: libnatpmp
Requires: systemd
%if 0%{?fedora} >= 21
BuildRequires: json-parser
%endif
Provides: bundled(miniupnpc) = 2.0
%if 0%{?rhel}
Provides: bundled(json-parser) = 1.1.0
%endif
%description
ZeroTier is a software defined networking layer for Earth.