This commit is contained in:
Tru Huynh 2018-03-24 17:59:55 +00:00 committed by GitHub
commit 91dca34957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 0 deletions

View File

@ -9,6 +9,20 @@ Packager: Debauchee <todo@mail.com>
License: GPLv2 License: GPLv2
Release: @BARRIER_BUILD_NUMBER@@BARRIER_SNAPSHOT_INFO@%{?dist} Release: @BARRIER_BUILD_NUMBER@@BARRIER_SNAPSHOT_INFO@%{?dist}
# bonjour headers: dns_sd.h at least for CentOS-7 and CentOS-6
BuildRequires: avahi-compat-libdns_sd-devel
# possible issue here for cmake: on CentOS-7, cmake is cmake 2.x and barrier needs cmake 3.x
# which is available from EPEL as cmake3, that might not be the case for other RPMS based distro
%if 0%{?rhel} == 7
BuildRequires: cmake3
%endif
# EPEL also provide cmake3 for CentOS-6, but I have tried to build barrier on CentOS-6 yet
%if 0%{?rhel} == 6
BuildRequires: cmake3
%endif
%description %description
Barrier allows you to share one mouse and keyboard between multiple computers. Barrier allows you to share one mouse and keyboard between multiple computers.
Work seamlessly across Windows, macOS and Linux. Work seamlessly across Windows, macOS and Linux.

View File

@ -0,0 +1,16 @@
FROM centos:centos6
RUN yum -y update && yum -y upgrade
RUN yum -y install epel-release
RUN yum -y install git cmake3 make qt5-qtbase-devel gcc \
avahi-compat-libdns_sd-devel gcc-c++ curl-devel \
openssl-devel \
libXtst-devel libXinerama-devel libICE-devel libXrandr-devel
# c6 g++ is not CXX14
RUN yum -y install centos-release-scl-rh
# devtoolset-3 is enough but one can use devtoolset-N
RUN yum -y install devtoolset-3-gcc-c++.x86_64
RUN git clone https://github.com/debauchee/barrier/
RUN cd barrier && scl enable devtoolset-3 ./clean_build.sh | tee clean_build.log && tar czvf build.tgz build clean_build.log

View File

@ -0,0 +1,11 @@
FROM centos:centos7
RUN yum -y update && yum -y upgrade
RUN yum -y install epel-release
RUN yum -y install git cmake3 make qt5-qtbase-devel gcc \
avahi-compat-libdns_sd-devel gcc-c++ curl-devel \
openssl-devel \
libXtst-devel libXinerama-devel libICE-devel libXrandr-devel
RUN git clone https://github.com/debauchee/barrier/
RUN cd barrier && ./clean_build.sh | tee clean_build.log && tar czvf build.tgz build clean_build.log