Пакет synergy1: Specfile

%define oname synergy

Summary:	Mouse and keyboard sharing utility
Name:		synergy1
Version:	1.12.0
Release:	alt2
License:	GPLv2
Group:		Accessibility
URL:		http://synergy-project.org/
Source0:	%oname-%version.tar
Source1:	googletest.tar.gz
Patch0:		%oname-%version-alt.patch

Packager:	Evgeny Sinelnikov <sin@altlinux.org>

# Automatically added by buildreq on Fri Sep 28 2007
BuildRequires: gcc-c++ libXtst-devel
BuildRequires: libcurl-devel
BuildRequires: libcryptopp-devel
BuildRequires: libssl-devel
BuildRequires: qt5-base-devel
BuildRequires: qt5-tools-devel
BuildRequires: libavahi-devel
BuildRequires: cmake

Conflicts: synergy

%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.

%prep
%setup -q -n %oname-%version
%patch0 -p1
tar -xf %SOURCE1

%build
%cmake
%cmake_build

%install
%cmake_install
install -D -m0644 doc/synergy.conf.alt %buildroot%_sysconfdir/synergy.conf
install -D -m0644 doc/synergys.man %buildroot/%_man1dir/synergys.1
install -D -m0644 doc/synergyc.man %buildroot/%_man1dir/synergyc.1

%files
%doc ChangeLog LICENSE README.md
%doc doc/synergy.conf*
%_bindir/synergy
%_bindir/syntool
%_bindir/synergyc
%_bindir/synergys
%_desktopdir/synergy*
%_iconsdir/hicolor/scalable/apps/synergy.svg
%config(noreplace) %_sysconfdir/synergy.conf
%_man1dir/synergys*
%_man1dir/synergyc*

%changelog
* Mon May 31 2021 Arseny Maslennikov <arseny@altlinux.org> 1.12.0-alt2
- NMU: spec: adapt to new cmake macros.

* Sat Sep 05 2020 Evgeny Sinelnikov <sin@altlinux.org> 1.12.0-alt1
- Update to new release

* Sat Aug 01 2020 Evgeny Sinelnikov <sin@altlinux.org> 1.11.1-alt1
- Initial build of Synergy 1 as separate package

* Mon Mar 28 2016 Anton Farygin <rider@altlinux.ru> 1.7.6-alt1
- new version

* Mon Dec 07 2015 Anton Farygin <rider@altlinux.ru> 1.7.4-alt1
- new version

* Sat Jul 11 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.6.3-alt1.1
- Rebuilt with gcc5

* Sat Jan 17 2015 Evgeny Sinelnikov <sin@altlinux.ru> 1.6.3-alt1
- Update to new stable release for happy hacking

* Sun May 11 2014 Evgeny Sinelnikov <sin@altlinux.ru> 1.4.17-alt1
- Update to new stable release
- Build without tests

* Mon Jan 13 2014 Evgeny Sinelnikov <sin@altlinux.ru> 1.4.15-alt1
- Update to new stable release

* Wed Jul 17 2013 Evgeny Sinelnikov <sin@altlinux.ru> 1.4.12-alt1
- Update to last release with encryption support

* Wed Jan 02 2013 Evgeny Sinelnikov <sin@altlinux.ru> 1.4.10-alt1
- Update to last release

* Sun Sep 11 2011 Evgeny Sinelnikov <sin@altlinux.ru> 1.3.7-alt1
- Build new version with bew scheme

* Fri Sep 28 2007 Eugene V. Horohorin <genix@altlinux.ru> 1.3.1-alt1
- initial build