From d121155dbad90dc1beb6393dc3bc3a7e84ab0d37 Mon Sep 17 00:00:00 2001 From: "Tru Huynh (pasteur.fr)" Date: Fri, 23 Mar 2018 20:01:52 +0100 Subject: [PATCH] barrier v2.0.0-RC2 spec file --- barrier.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/barrier.spec b/barrier.spec index b3c438f1..5a439ad9 100644 --- a/barrier.spec +++ b/barrier.spec @@ -24,13 +24,19 @@ BuildREquires: libXtst-devel libXinerama-devel libICE-devel libXrandr-devel # CXX14 %if 0%{?rhel} == 6 -BuildRequires: centos-release-scl-rh devtoolset-3-gcc-c++.x86_64 +BuildRequires: centos-release-scl-rh +BuildRequires: devtoolset-3-gcc-c++ %endif %description Barrier allows you to share one mouse and keyboard between multiple computers. Work seamlessly across Windows, macOS and Linux. +# fedora 27 not happy without this: +%if 0%{?fedora} == 27 +%global debug_package %{nil} +%endif + %prep %setup -n %{name}-2.0.0-Source #%setup -n %{name}-2.0.0-RC2 @@ -51,6 +57,12 @@ scl enable devtoolset-3 ./clean_build.sh %if 0%{?rhel} == 7 ./clean_build.sh %endif + +%if 0%{?fedora} +./clean_build.sh +%endif + + # maybe need a default if/else for non rhel target :P %install @@ -59,18 +71,16 @@ scl enable devtoolset-3 ./clean_build.sh %{__install} -t %{buildroot}%{_datarootdir}/applications res/barrier.desktop %{__install} -t %{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps res/barrier.svg %{__install} -t %{buildroot}%{_bindir} build/bin/{barrier,barrierc,barriers,syntool} -#%{__install} -t %{buildroot}%{_bindir} build/bin/{barrier,barrierc,barriers,barrierd,syntool} %files %defattr(755,root,root,-) %{_bindir}/barrier %{_bindir}/barrierc %{_bindir}/barriers -#%{_bindir}/barrierd %{_bindir}/syntool %attr(644,-,-) %{_datarootdir}/applications/barrier.desktop %attr(644,-,-) %{_datarootdir}/icons/hicolor/scalable/apps/barrier.svg %changelog -* Fri Mar 9 2018 Tru Huynh - barrier 2.0.0-1 +* Fri Mar 23 2018 Tru Huynh - - Initial rpm package for barrier