Browse Source

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.

Adam Ierymenko 9 years ago
parent
commit
d58dcf29cc

+ 1 - 5
linux-build-farm/centos-6/x64/Dockerfile

@@ -3,11 +3,7 @@ MAINTAINER Adam Ierymenko <[email protected]>
 
 
 RUN yum update -y
 RUN yum update -y
 RUN yum install -y epel-release
 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
 RUN yum install -y nodejs npm
 
 
 ADD zt1-src.tar.gz /
 ADD zt1-src.tar.gz /

+ 1 - 4
linux-build-farm/centos-6/x86/Dockerfile

@@ -3,10 +3,7 @@ MAINTAINER Adam Ierymenko <[email protected]>
 
 
 RUN yum update -y
 RUN yum update -y
 RUN yum install -y epel-release
 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
 RUN yum install -y nodejs npm
 
 

+ 1 - 4
linux-build-farm/centos-7/x64/Dockerfile

@@ -3,11 +3,8 @@ MAINTAINER Adam Ierymenko <[email protected]>
 
 
 RUN yum update -y
 RUN yum update -y
 RUN yum install -y epel-release
 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
 RUN gem install ronn
 
 
 ADD zt1-src.tar.gz /
 ADD zt1-src.tar.gz /

+ 2 - 0
linux-build-farm/centos-7/x86/Dockerfile

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

+ 12 - 10
zerotier-one.spec

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