%{!?_vpath_builddir:%define _vpath_builddir build} %global icon_path %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg Summary: Use a single keyboard and mouse to control multiple computers Name: barrier Version: 2.3.3 Release: 1%{?dist} License: GPLv2 URL: https://github.com/debauchee/barrier/wiki Source0: https://github.com/debauchee/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: avahi-compat-libdns_sd-devel BuildRequires: cmake3 BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: gtest-devel BuildRequires: libX11-devel BuildRequires: libXtst-devel BuildRequires: libcurl-devel BuildRequires: openssl-devel BuildRequires: qt5-qtbase-devel Requires: hicolor-icon-theme %description Barrier is software that mimics the functionality of a KVM switch, which historically would allow you to use a single keyboard and mouse to control multiple computers. Barrier does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a key press to switch focus to a different system. %prep %setup -q ## ext/gtest and ext/gmock does not seems to contain *.cc ## thus remove test rm -fr src/test sed -i.remove-test -e 's/\(add_subdirectory(test)\)/# \1/' src/CMakeLists.txt ## Category DesktopUtility is NOT registered sed -i.remove-invalid -e 's/DesktopUtility;//' res/%{name}.desktop %build %if 0%{?fedora} < 30 mkdir %{_vpath_builddir} cd %{_vpath_builddir} %{cmake3} .. %make_build %else %{cmake} %{cmake_build} %endif %if 0%{?fedora} < 30 cd - %endif %install cd %{_vpath_builddir} install -D -p -m 0755 bin/barrier %{buildroot}%{_bindir}/barrier install -D -p -m 0755 bin/barrierc %{buildroot}%{_bindir}/barrierc install -D -p -m 0755 bin/barriers %{buildroot}%{_bindir}/barriers cd - install -D -p -m 0644 res/barrier.desktop %{buildroot}%{_datadir}/applications/barrier.desktop 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 install -D -p -m 0644 res/barrier.svg %{buildroot}%{icon_path} cd %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/metainfo ## Write AppStream cat < %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml %{name} FSFAP GPLv2 %{name} %{summary}

%{description}

%{name}.desktop %{url} barrier barrierc barriers
END desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ --set-icon=%{icon_path} \ %{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 %license LICENSE %doc ChangeLog res/Readme.txt doc/barrier.conf.example* %{_bindir}/barrierc %{_bindir}/barriers %{_bindir}/barrier %{_datadir}/pixmaps/barrier.ico %{icon_path} %{_datadir}/applications/barrier.desktop %{_datadir}/metainfo/%{name}.appdata.xml %{_mandir}/man1/barrierc.1* %{_mandir}/man1/barriers.1* %changelog * Fri Oct 30 2020 Ding-Yi Chen - 2.3.3-1 - Upstream update to 2.3.3 - Add BuildRequires: gtest-devel * Sat Aug 01 2020 Fedora Release Engineering - 2.3.2-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 02 2020 Ding-Yi Chen - 2.3.2-2 - Address review comments: + Use better URL + BuildRequires added: gcc-c++ + Requires add: hicolor-icon-theme - BuildRequires remove: qt-devel * Tue Jun 30 2020 Ding-Yi Chen - 2.3.2-1 - Upstream update to 2.3.2 - Remove the link to synergy command to avoid package collision. * 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