Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
synergy
synergy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File synergy.spec of Package synergy
# # spec file for package synergy # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: synergy Version: 1.8.8 Release: 0 Summary: Mouse, keyboard and clipboard sharing utility License: GPL-2.0+ Group: System/X11/Utilities Url: http://synergy-project.org/ Source0: https://github.com/symless/synergy/archive/v%{version}-stable.tar.gz Source1: synergy-firewall-services Source2: qsynergy.desktop Source3: qsynergy.png Source4: synergys.socket Source5: synergys.service Patch1: 0001-OpenSSL-1.1.0-build-fix.patch # PATCH-FIX-UPSTREAM add-support-for-latin-s-and-t-with-comma-below.patch Patch2: add-support-for-latin-s-and-t-with-comma-below.patch # patches from Gentoo (taken from Mageia) Patch11: synergy-1.5.0-pthread.patch Patch14: synergy-1.5.0-disable-version-check.patch BuildRequires: avahi-devel BuildRequires: cmake BuildRequires: curl-devel BuildRequires: gcc-c++ BuildRequires: mDNSResponder-devel BuildRequires: pkgconfig BuildRequires: systemd BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xtst) %{?systemd_requires} %if 0%{?suse_version} != 1315 BuildRequires: libcryptopp-devel Requires(pre): %fillup_prereq Provides: synergy-plus = %{version} Obsoletes: synergy-plus < %{version} %endif %description Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own display. Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. %package -n qsynergy Summary: Qt GUI for easily configuring Synergy2 Group: Productivity/Networking/Other Requires: synergy = %{version} %description -n qsynergy QSynergy is a comprehensive and easy to use graphical front end for Synergy. Synergy lets a user control more than one computer with a single mouse and keyboard. %prep %setup -q -n %{name}-%{version}-stable %patch1 -p1 %patch2 -p1 %patch11 -p1 %patch14 -p1 cp %{SOURCE2} . # extract bundled gtest and gmock to enable building tests # tests are not started at the moment since they segfault at the end (TODO) unzip -d ext/gtest-1.6.0 ext/gtest-1.6.0.zip unzip -d ext/gmock-1.6.0 ext/gmock-1.6.0.zip # disable werror sed -i \ -e '/set(CMAKE_CXX_FLAGS/ d' \ CMakeLists.txt %build %cmake make VERBOSE=1 %{?_smp_mflags} # leave the build subfolder cd .. # GUI build cd src/gui qmake-qt5 PREFIX=%{_prefix} CONFIG+=RELEASE QMAKE_CXXFLAGS="%{optflags} -fPIE" \ QMAKE_CFLAGS="%{optflags} -fPIE" QMAKE_LFLAGS+="-pie" make %{?_smp_mflags} %install chmod -x ChangeLog install -D bin/synergyc "%{buildroot}%{_bindir}/synergyc" install -D bin/synergys "%{buildroot}%{_bindir}/synergys" install -D bin/syntool "%{buildroot}%{_bindir}/syntool" install -D -m0644 doc/synergy.conf.example "%{buildroot}%{_sysconfdir}/synergy.conf" install -D -m0644 doc/synergyc.man "%{buildroot}%{_mandir}/man1/synergyc.1" install -D -m0644 doc/synergys.man "%{buildroot}%{_mandir}/man1/synergys.1" install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/synergy" # Unit file mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_sbindir} install -p -m 644 "%{SOURCE4}" %{buildroot}%{_unitdir} install -p -m 644 "%{SOURCE5}" %{buildroot}%{_unitdir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcsynergys # GUI package install -Dm 0755 bin/%{name} %{buildroot}%{_bindir}/q%{name} %suse_update_desktop_file -i q%{name} %post %fillup_only %desktop_database_post %service_add_post synergys.service synergys.socket %postun %desktop_database_postun %service_del_postun synergys.service synergys.socket %pre %service_add_pre synergys.service synergys.socket %preun %service_del_preun synergys.service synergys.socket %files %defattr(-, root, root) %doc README ChangeLog LICENSE doc/synergy.conf* %config(noreplace) %{_sysconfdir}/synergy.conf %{_bindir}/synergyc %{_bindir}/synergys %{_bindir}/syntool %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/synergy %{_mandir}/man1/synergys.1%{?ext_man} %{_mandir}/man1/synergyc.1%{?ext_man} %{_unitdir}/synergys.service %{_unitdir}/synergys.socket %{_sbindir}/rcsynergys %files -n qsynergy %defattr(-,root,root) %doc LICENSE %{_bindir}/q%{name} %{_datadir}/applications/q%{name}.desktop %{_datadir}/pixmaps/q%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor