Projects
Eulaceura:Factory
barrier
_service:obs_scm:barrier.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:barrier.spec of Package barrier
%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 License: GPLv2 URL: https://github.com/debauchee/barrier/wiki Source0: https://github.com/debauchee/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake desktop-file-utils gcc-c++ avahi-compat-libdns_sd-devel BuildRequires: gtest-devel libX11-devel libXtst-devel cmake-rpm-macros BuildRequires: libcurl-devel openssl-devel 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 %autosetup 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 %cmake %make_build %install %make_install 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 cd %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/metainfo ## Write AppStream cat <<END> %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2020 Ding-Yi Chen <dchen@redhat.com> --> <component type="desktop-application"> <id>%{name}</id> <metadata_license>FSFAP</metadata_license> <project_license>GPLv2</project_license> <name>%{name}</name> <summary>%{summary}</summary> <description> <p>%{description}</p> </description> <launchable type="desktop-id">%{name}.desktop</launchable> <url type="homepage">%{url}</url> <provides> <binary>barrier</binary> <binary>barrierc</binary> <binary>barriers</binary> </provides> <releases> <release version="%{version}" date="2020-10-30" /> </releases> </component> 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 %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 8 2021 konglidong <konglidong@uniontech.com> - 2.3.3-1 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2