%global barrier_revision 0bd448d5 Summary: Share mouse and keyboard between multiple computers over the network Name: barrier Version: 2.1.2 Release: 1%{?dist} License: GPLv2 Group: System Environment/Daemons URL: https://github.com/debauchee/barrier/wiki Source0: https://github.com/debauchee/%{name}/archive/v%{version}.tar.gz Provides: synergy-plus = %{version}-%{release} Provides: synergy Obsoletes: synergy-plus < 1.3.4-13 Obsoletes: synergy BuildRequires: cmake3 BuildRequires: avahi-compat-libdns_sd-devel BuildRequires: libX11-devel BuildRequires: libXtst-devel BuildRequires: qt-devel BuildRequires: libcurl-devel BuildRequires: desktop-file-utils BuildRequires: openssl-devel BuildRequires: qt5-qtbase-devel %description Barrier lets you easily share your mouse and keyboard between multiple computers, where each computer has its own display. No special hardware is required, all you need is a local area network. Barrier is supported on Windows, Mac OS X and Linux. Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. %prep %setup -q rm -fr ext/openssl ## v2.0 does not support option --no-tray sed -i.no-tray -e 's/<< "--no-tray"//g' src/gui/src/MainWindow.cpp #Disable tests for now (bundled gmock/gtest) #sed -i /.*\(test.*/d src/CMakeLists.txt %build PATH="$PATH:/usr/lib64/qt4/bin:/usr/lib/qt4/bin" %{cmake3} . make %{?_smp_mflags} %install install -D -p -m 0755 bin/barrier %{buildroot}%{_bindir}/barrier install -D -p -m 0644 res/barrier.desktop %{buildroot}%{_datadir}/applications/barrier.desktop install -D -p -m 0755 bin/barrierc %{buildroot}%{_bindir}/barrierc install -D -p -m 0755 bin/barriers %{buildroot}%{_bindir}/barriers install -D -p -m 0644 doc/barrierc.1 %{buildroot}%{_mandir}/man1/barrierc.1 install -D -p -m 0644 doc/barriers.1 %{buildroot}%{_mandir}/man1/barriers.1 install -D -p -m 0644 res/barrier.ico %{buildroot}%{_datadir}/pixmaps/barrier.ico # symlinks for synergy compatibility (i.e. quicksynergy and friends) ln -s barriers %{buildroot}%{_bindir}/synergys ln -s barrierc %{buildroot}%{_bindir}/synergyc cd %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/metainfo ## Write AppStream cat < %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml %{name} FSFAP GPLv2 barrier Share mouse and keyboard between multiple computers over the network

Barrier lets you easily share your mouse and keyboard between multiple computers, where each computer has its own display. No special hardware is required, all you need is a local area network. Barrier is supported on Windows, Mac OS X and Linux. Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen.

%{name}.desktop %{url} barrier barrierc barriers
END desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ --set-icon=%{_datadir}/pixmaps/barrier.ico \ %{buildroot}%{_datadir}/applications/barrier.desktop desktop-file-validate %{buildroot}/%{_datadir}/applications/barrier.desktop %files # None of the documentation files are actually useful here, they all point to # the online website, so include just one, the README %doc LICENSE ChangeLog res/Readme.txt doc/barrier.conf.example* %{_bindir}/barrierc %{_bindir}/barriers %{_bindir}/barrier %{_bindir}/synergyc %{_bindir}/synergys %{_datadir}/pixmaps/barrier.ico %{_datadir}/applications/barrier.desktop %{_datadir}/metainfo/%{name}.appdata.xml %{_mandir}/man1/barrierc.1* %{_mandir}/man1/barriers.1* %changelog * Wed Jan 23 2019 Brian J. Murrell - 2.1.2-1 - Initial RPM release, based on the spec from Fedora's synergy. - Create convenience symlinks to old synergy* names for the benefit of tools that will have those names hard-coded, such as quicksynergy