For now go back to bundling http-parser etc. in our official RPM builds since this introduces an EPEL dependency for CentOS which would only make sense if we are actually in EPEL. Probably will eventually have two spec files: one for official and one for our own.

This commit is contained in:
Adam Ierymenko 2016-06-27 15:46:54 -07:00
parent 809457599a
commit d58dcf29cc
5 changed files with 17 additions and 23 deletions

View File

@ -3,11 +3,7 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
RUN yum install -y clang
RUN yum install -y gcc-c++
RUN yum install -y tar
RUN yum install -y make development-tools rpmdevtools clang gcc-c++ tar
RUN yum install -y nodejs npm
ADD zt1-src.tar.gz /

View File

@ -3,10 +3,7 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
RUN yum install -y clang
RUN yum install -y gcc-c++
RUN yum install -y tar
RUN yum install -y make development-tools rpmdevtools clang gcc-c++ tar
RUN yum install -y nodejs npm

View File

@ -3,11 +3,8 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
RUN yum install -y make development-tools rpmdevtools clang gcc-c++ ruby ruby-devel
RUN yum install -y clang gcc-c++
RUN yum install -y ruby ruby-devel
RUN gem install ronn
ADD zt1-src.tar.gz /

View File

@ -17,4 +17,6 @@ MAINTAINER Adam Ierymenko <adam.ierymenko@zerotier.com>
RUN yum install -y ruby ruby-devel
RUN gem install ronn
RUN rpm --erase http-parser-devel lz4-devel libnatpmp-devel
ADD zt1-src.tar.gz /

View File

@ -7,23 +7,18 @@ License: GPLv3
URL: https://www.zerotier.com
Source0: %{name}-%{version}.tar.gz
BuildRequires: http-parser-devel
BuildRequires: lz4-devel
BuildRequires: libnatpmp-devel
%if 0%{?rhel} > 7
BuildRequires: libnatpmp-devel
%if 0%{?rhel} >= 7
BuildRequires: systemd
%endif
%if 0%{?fedora} >= 21
BuildRequires: http-parser-devel
BuildRequires: lz4-devel
BuildRequires: libnatpmp-devel
BuildRequires: systemd
BuildRequires: json-parser-devel
%endif
Requires: http-parser
Requires: lz4
Requires: libnatpmp
Requires: iproute
%if 0%{?rhel} >= 7
@ -35,13 +30,20 @@ Requires: chkconfig
%endif
%if 0%{?fedora} >= 21
Requires: http-parser
Requires: lz4
Requires: libnatpmp
Requires: systemd
Requires: json-parser
%endif
Provides: bundled(miniupnpc) = 2.0
%if 0%{?rhel}
%if 0%{?rhel} >= 6
Provides: bundled(json-parser) = 1.1.0
Provides: bundled(lz4) = 1.7.1
Provides: bundled(http-parser) = 2.7.0
Provides: bundled(libnatpmp) = 20131126
%endif
%description