/[packages]/backports/4/synergy/pristine/SPECS/synergy.spec
ViewVC logotype

Contents of /backports/4/synergy/pristine/SPECS/synergy.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 604400 - (show annotations) (download)
Mon Mar 17 09:50:37 2014 UTC (9 years, 11 months ago) by wally
File size: 3406 byte(s)
- backport to mga4 (SILENT)
1 # comment out if not needed
2 %define pre r1969
3
4 Summary: Mouse and keyboard sharing utility
5 Name: synergy
6 Version: 1.4.16
7 Release: %mkrel 2
8 License: GPLv2
9 Url: http://synergy-foss.org/
10 Group: Networking/Remote access
11 #Source0: http://synergy.googlecode.com/files/synergy-%{version}-Source.tar.gz
12 Source0: http://fossfiles.com/synergy/synergy-%{version}%{?pre:-%pre}-Source.tar.gz
13 # Idea from Debian
14 Source1: README.urpmi
15 # From Debian:
16 Source20: synergyc.sgml
17 Source21: synergyd.sgml
18 Source22: synergy.sgml
19 Source23: synergys.sgml
20 # From Gentoo:
21 Patch10: synergy-1.4.15-crytopp.patch
22 Patch11: synergy-1.4.16-pthread.patch
23 #From Debian:
24 Patch21: synergy-1.4.16-disable-version-check.patch
25 BuildRequires: cryptopp-devel
26 BuildRequires: curl-devel
27 BuildRequires: docbook-to-man
28 BuildRequires: libx11-devel
29 BuildRequires: libxext-devel
30 BuildRequires: libxinerama-devel
31 BuildRequires: libxtst-devel
32 BuildRequires: cmake
33 BuildRequires: qt4-devel
34 BuildRequires: icoutils
35 Obsoletes: synergy-plus < 1.4.5
36
37 %description
38 Synergy lets you easily share a single mouse and keyboard between
39 multiple computers with different operating systems, each with its
40 own display, without special hardware. It's intended for users
41 with multiple computers on their desk since each system uses its
42 own display.
43
44 %package gui
45 Summary: Qt based GUI for %{name}
46 Group: Networking/Remote access
47 Requires: %{name} = %{version}-%{release}
48 Provides: qsynergy = %{version}-%{release}
49
50 %description gui
51 The Synergy GUI is based on QSynergy by Volker Lanz.
52
53 %prep
54 %setup -qn synergy-%{version}-Source
55 %apply_patches
56
57 #fix rigths
58 chmod 644 doc/* ChangeLog
59
60 rm -rf tools/cryptop*
61
62 %build
63 pushd src/gui
64 %qmake_qt4
65 %make
66 popd
67
68 %cmake
69 %make
70
71 %install
72 # binaries
73 install -Dpm755 bin/synergyc %{buildroot}%{_bindir}/synergyc
74 install -Dpm755 bin/synergyd %{buildroot}%{_bindir}/synergyd
75 install -Dpm755 bin/synergys %{buildroot}%{_bindir}/synergys
76 install -Dpm755 bin/synergy %{buildroot}%{_bindir}/synergy
77
78 # man pages
79 #install -Dpm644 doc/synergyc.man %{buildroot}%{_mandir}/man1/synergyc.1
80 #install -Dpm644 doc/synergys.man %{buildroot}%{_mandir}/man1/synergys.1
81 for i in %{_sourcedir}/*.sgml; do
82 docbook-to-man $i > $(basename $i .sgml).1
83 install -Dpm 644 $(basename $i .sgml).1 %{buildroot}%{_mandir}/man1/$(basename $i .sgml).1
84 done
85
86 # desktop file
87 mkdir -p %{buildroot}%{_datadir}/applications
88 cat >> %{buildroot}%{_datadir}/applications/%{_real_vendor}-synergy.desktop << EOF
89 [Desktop Entry]
90 Name=Synergy
91 GenericName=Synergy GUI Frontend
92 Comment=Share your keyboard and mouse over a network
93 Exec=synergy
94 Icon=synergy
95 Type=Application
96 Categories=Qt;Utility;
97 EOF
98
99 #conf
100 install -Dpm644 doc/synergy.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf
101
102 # icon
103 icotool -x --palette-size=0 -o . src/gui/res/icons/256x256/synergy.ico
104
105 for i in 16 24 32 48 256; do
106 install -Dm644 synergy_?_${i}x${i}x32.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/synergy.png
107 done
108
109 # README.urpmi
110 install -Dpm 644 %{_sourcedir}/README.urpmi .
111
112 %files
113 %doc README.urpmi
114 %doc ChangeLog
115 %doc doc/synergy.conf.*
116 %config(noreplace) %{_sysconfdir}/%{name}.conf
117 %{_bindir}/synergyc
118 %{_bindir}/synergyd
119 %{_bindir}/synergys
120 %{_mandir}/man1/synergyc.*
121 %{_mandir}/man1/synergyd.*
122 %{_mandir}/man1/synergys.*
123
124 %files gui
125 %{_datadir}/applications/%{_real_vendor}-synergy.desktop
126 %{_iconsdir}/hicolor/*/apps/synergy.png
127 %{_bindir}/synergy
128 %{_mandir}/man1/synergy.*
129

  ViewVC Help
Powered by ViewVC 1.1.30