/[packages]/updates/8/x2goserver/current/SPECS/x2goserver.spec
ViewVC logotype

Contents of /updates/8/x2goserver/current/SPECS/x2goserver.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1929310 - (show annotations) (download)
Mon Jan 2 14:59:07 2023 UTC (15 months, 2 weeks ago) by papoteur
File size: 7381 byte(s)
new 4.1.0.3 (mga#27880)
1 # This is work in progress
2 # not finished yet, so please don't complain about strange things
3 # I just wanted to have it in svn, so it's revisioned
4 # obgr_seneca
5
6 %define x2golibdir %{_libdir}/x2go
7
8 Name: x2goserver
9 Version: 4.1.0.3
10 Release: %mkrel 1
11 Summary: The server-side core of X2go
12 License: GPLv2+
13 Group: Networking/Remote access
14 Url: https://wiki.x2go.org/doku.php
15 Source0: https://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
16 BuildRequires: gcc
17 BuildRequires: perl
18 BuildRequires: man
19 BuildRequires: man2html
20 Requires: openssh-server
21 Requires: openssh-clients
22 Requires: lsof
23 Requires: perl-Config-Simple
24 Requires: makepasswd
25 Requires: xauth
26 Requires: sshfs-fuse
27 # x2go / nx dependencies
28 Requires: x2goagent
29 Requires: xcomp
30 Requires: xcompext
31 Requires: nxproxy
32 Requires: nxX11
33 Requires(post): rpm-helper >= 0.24.8-1
34 Requires(preun): rpm-helper >= 0.24.8-1
35 Recommends: %{name}-database
36
37 %description
38 x2go is a "server based computing environment" combining the advantages of
39 different existing solutions.
40 The x2goserver package provides the server-side core of X2go.
41
42 %package sqlite
43 Summary: Virtual package for using %{name} with sqlite
44 Group: Networking/Remote access
45 Requires: sqlite3-tools
46 Requires: perl-DBD-SQLite
47 Provides: %{name}-database = %{version}-%{release}
48
49 %description sqlite
50 This is a virtual package that just provides the necessary packages needed to
51 run x2go with a default sqlite database setup.
52
53 %package postgresql
54 Summary: Virtual package for using %{name} with a PostgreSQL database
55 Group: Networking/Remote access
56 Requires: postgresql-server
57 Requires: perl-DBD-Pg
58 Provides: %{name}-database = %{version}-%{release}
59
60 %description postgresql
61 This is a virtual package that just provides the necessary packages needed to
62 run x2go with a PostgreSQL setup. Note, you can also run x2go with a remote
63 postgresql setup.
64
65 %prep
66 %setup -q
67
68 # Set path
69 find -type f | xargs sed -i -r -e '/^LIBDIR=/s,/lib/,/%{_lib}/,'
70 sed -i -e 's,/lib/,/%{_lib}/,' x2goserver/bin/x2gopath
71 # Don't try to be root
72 sed -i -e 's/-o root -g root//' */Makefile
73 # Perl pure_install
74 sed -i -e 's/perl install/perl pure_install/' Makefile
75
76 %build
77 %set_build_flags
78 export LC_ALL=C
79 %make_build PREFIX=%{_prefix}
80
81 %install
82 export LC_ALL=C
83 %make_install PREFIX=%{_prefix} \
84 INSTALL_DIR="install -d -m 755" \
85 INSTALL_FILE="install -m 644" \
86 NXLIBDIR=%{_libdir}/nx \
87 INSTALL_PROGRAM="install -m 755"
88 rm -f %{buildroot}%{_sysconfdir}/x2go/Xsession.d
89
90 mkdir -p %{buildroot}%{_unitdir}
91 install -m0644 x2goserver.service %{buildroot}%{_unitdir}/%{name}.service
92
93 cat > README.install.urpmi << EOF
94
95 DATABASE SETUP
96 -----------------
97
98 You need either an sqlite or a PostgreSQL database for running x2go.
99 If you want to run x2go just on a single server, sqlite is sufficient, for
100 running x2go on a multi server setup, PostgreSQL is required.
101
102 $ x2godbadmin --createdb
103
104
105 DEFAULT: SQLite setup
106 ------------------------
107
108 This variant is the default X2go database setup. The X2go database keeps track
109 of running/suspended/finished X2go sessions, mounted devices, etc. If you use
110 SQLite as DB back-end, X2go will run on one single server.
111
112 For multi-X2goServer support use the PostgreSQL setup variant of X2go server.
113 All files should be present for this setup. If not, please report it as a bug.
114
115
116 ALTERNATIVE: PostgreSQL setup
117 --------------------------------
118
119 This variant is for a setup of x2goserver that uses a PostgreSQL database
120 back-end...
121
122 The exact installation of x2goserver with PostgreSQL support is described
123 here: https://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql
124
125 LOCAL FOLDER SHARING
126 -----------------------
127
128 Users that shall be able to use X2go's local folder sharing functionality
129 (via sshfs) have to be members of your server system's ,,fuse'' group
130
131 $ usermod -a -G fuse <username>
132
133
134 PRINTING
135 -----------
136
137 Also users that shall be able to send print jobs to client-side printers have
138 to be members of the server-side ,,fuse'' group (see above).
139
140 As X2go printing setups can be rather versatile, details on X2go printing are
141 explained in the project wiki:
142 https://wiki.x2go.org/doku.php/doc:installation:printing
143
144 EOF
145
146 find %{buildroot} -name .placeholder -delete
147 mkdir -p %{buildroot}%{_localstatedir}/lib/x2go
148 mkdir -p %{buildroot}%{_localstatedir}/spool/x2goprint
149
150 %pre
151 %_pre_useradd x2gouser %{_localstatedir}/lib/x2go /bin/false
152 %_pre_useradd x2goprint %{_localstatedir}/spool/x2goprint /bin/false
153
154 %post
155 %_tmpfilescreate %{name}
156 chown x2gouser:x2gouser %{_localstatedir}/lib/x2go
157 chown x2goprint:x2goprint %{_localstatedir}/spool/x2goprint
158 # Initialize the session database
159 [ ! -f %{_localstatedir}/lib/x2go/x2go_sessions ] && %{_sbindir}/x2godbadmin --createdb || :
160
161 %postun
162 %_postun_userdel x2gouser
163 %_postun_userdel x2goprint
164
165 %files sqlite
166
167 %files postgresql
168
169 %files
170 %doc README.install.urpmi
171 %doc %{_mandir}/man*/*
172 %dir %{_localstatedir}/lib/x2go
173 %dir %{_localstatedir}/spool/x2goprint
174 %{_datadir}/x2go
175 %{_datadir}/pixmaps/x2goagent.xpm
176 %{_bindir}/x2gobasepath
177 %{_bindir}/x2gocmdexitmessage
178 %{_bindir}/x2gofeature
179 %{_bindir}/x2gofeaturelist
180 %{_bindir}/x2gofm
181 %{_bindir}/x2gogetapps
182 %{_bindir}/x2gogetservers
183 %{_bindir}/x2golistdesktops
184 %{_bindir}/x2golistmounts
185 %{_bindir}/x2golistsessions
186 %{_bindir}/x2gomountdirs
187 %attr(2755,root,x2goprint) %{_bindir}/x2goprint
188 %{_bindir}/x2goresume-session
189 %{_bindir}/x2goruncommand
190 %{_bindir}/x2goserver-run-extensions
191 %{_bindir}/x2gosessionlimit
192 %{_bindir}/x2gosetkeyboard
193 %{_bindir}/x2gostartagent
194 %{_bindir}/x2gosuspend-session
195 %{_bindir}/x2goterminate-session
196 %{_bindir}/x2goumount-session
197 %{_bindir}/x2goversion
198 %{_bindir}/x2gopath
199 %{_sbindir}/x2go*
200 %{_bindir}/x2goagent
201 %{_bindir}/x2golistshadowsessions
202 %{_bindir}/x2goresume-desktopsharing
203 %{_bindir}/x2gosuspend-desktopsharing
204 %{_bindir}/x2goterminate-desktopsharing
205 %{_sysconfdir}/sudoers.d/x2goserver
206 %dir %{_sysconfdir}/x2go
207 %{_sysconfdir}/x2go/Xresources
208 %{_sysconfdir}/x2go/Xsession
209 %{_sysconfdir}/x2go/xinitrc.d
210 %{_sysconfdir}/x2go/desktopsharing/settings
211 %{_sysconfdir}/x2go/keystrokes.cfg
212 %{_sysconfdir}/x2go/x2goagent.keyboard
213 %config(noreplace) %{_sysconfdir}/logcheck
214 %config(noreplace) %{_sysconfdir}/x2go/x2goserver.conf
215 %{_sysconfdir}/x2go/x2gosql/sql
216 %{_sysconfdir}/x2go/x2go_logout
217 %{_sysconfdir}/x2go/x2go_logout.d/010_userscripts.sh
218 %{_sysconfdir}/x2go/x2goagent.options
219 %{_datadir}/applications/x2gofm.desktop
220 %{_datadir}/mime/packages/sshfs-x2go.xml
221 %{_unitdir}/%{name}.service
222 %dir %{x2golibdir}
223 %{x2golibdir}/x2gochangestatus
224 %{x2golibdir}/x2gocreatesession
225 %{x2golibdir}/x2gogetagent
226 %{x2golibdir}/x2gogetagentstate
227 %{x2golibdir}/x2gogetdisplays
228 %{x2golibdir}/x2gogetports
229 %{x2golibdir}/x2gogetstatus
230 %{x2golibdir}/x2goinsertport
231 %{x2golibdir}/x2goinsertsession
232 %{x2golibdir}/x2golistsessions_sql
233 %{x2golibdir}/x2gologlevel
234 %{x2golibdir}/x2gormforward
235 %{x2golibdir}/x2gormport
236 %{x2golibdir}/x2goresume
237 %{x2golibdir}/extensions
238 %{x2golibdir}/x2gosuspend-agent
239 %{x2golibdir}/x2gosyslog
240 %{_libdir}/nx/bin/x2goagent
241 %{x2golibdir}/libx2go-server-db-sqlite3-wrapper
242 %{x2golibdir}/libx2go-server-db-sqlite3-wrapper.pl
243 %{x2golibdir}/x2gocheckport
244 %{x2golibdir}/x2gocreateshadowsession
245 %{x2golibdir}/x2gogetfreeport
246 %{x2golibdir}/x2gogetrandomport
247 %{x2golibdir}/x2goinsertshadowsession
248 %{x2golibdir}/x2goistrue
249 %{x2golibdir}/x2goqueryconfig
250 %perl_vendorlib/X2Go/
251 %{_tmpfilesdir}/x2goserver.conf

  ViewVC Help
Powered by ViewVC 1.1.30