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

Annotation of /updates/3/x2goserver/current/SPECS/x2goserver.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 585431 - (hide annotations) (download)
Fri Feb 7 19:31:56 2014 UTC (10 years, 4 months ago) by dams
File size: 6905 byte(s)
new version 4.0.1.13
1 obgr_seneca 205910 # 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 obgr_seneca 216576
6 dams 552264 %define x2golibdir %{_libdir}/x2go
7 dams 563341 %define subrel 2
8 obgr_seneca 216576
9 obgr_seneca 205910 Name: x2goserver
10 dams 585431 Version: 4.0.1.13
11 dams 552264 Release: %mkrel 1
12 obgr_seneca 216576 Summary: The server-side core of X2go
13 obgr_seneca 205910 License: GPLv2+
14     Group: Networking/Remote access
15 dams 552264 Url: http://wiki.x2go.org/doku.php
16 obgr_seneca 260531 Source0: http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
17 obgr_seneca 216576 Source1: %{name}.service
18 dams 552264 BuildRequires: gcc
19     BuildRequires: perl
20     BuildRequires: man
21     Requires: openssh-server
22     Requires: openssh-clients
23     Requires: lsof
24     Requires: perl-Config-Simple
25     Requires: makepasswd
26     Requires: xauth
27     Requires: sshfs-fuse
28 obgr_seneca 205910 # x2go / nx dependencies
29 dams 552264 Requires: x2goagent
30     Requires: xcomp
31     Requires: xcompext
32     Requires: nxproxy
33     Requires: nxX11
34     Requires(post): rpm-helper >= 0.24.8-1
35 tmb 233908 Requires(preun): rpm-helper >= 0.24.8-1
36 dams 552264 Suggests: %{name}-database
37 obgr_seneca 216576
38 obgr_seneca 205910 %description
39 dams 552264 X2Go is a "server based computing environment" combining the advantages of
40 obgr_seneca 205910 different existing solutions.
41 dams 552264 The x2goserver package provides the server-side core of X2Go.
42 obgr_seneca 205910
43     %package sqlite
44     Summary: Virtual package for using %{name} with sqlite
45     Group: Networking/Remote access
46     Requires: sqlite3-tools
47     Requires: perl-DBD-SQLite
48 obgr_seneca 216576 Provides: %{name}-database = %{version}-%{release}
49 obgr_seneca 205910
50     %description sqlite
51     This is a virtual package that just provides the neccesary packages needed to
52 dams 552264 run X2Go with a default sqlite database setup.
53 obgr_seneca 205910
54     %package postgresql
55     Summary: Virtual package for using %{name} with a postgresql database
56     Group: Networking/Remote access
57     Requires: postgresql-server
58     Requires: perl-DBD-Pg
59 obgr_seneca 216576 Provides: %{name}-database = %{version}-%{release}
60 obgr_seneca 205910
61     %description postgresql
62     This is a virtual package that just provides the neccesary packages needed to
63 dams 552264 run X2Go with a postgresql setup. Note, you can also run X2Go with a remote
64 obgr_seneca 205910 postgresql setup.
65    
66     %prep
67 obgr_seneca 266951 %setup -q
68 dams 552264 # 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 obgr_seneca 205910
76     %build
77 obgr_seneca 216576 export LC_ALL=C
78 obgr_seneca 205910 %make PREFIX=%{_prefix}
79    
80     %install
81 obgr_seneca 216576 export LC_ALL=C
82     %makeinstall_std PREFIX=%{_prefix} \
83     INSTALL_DIR="install -d -m 755" \
84     INSTALL_FILE="install -m 644" \
85     INSTALL_PROGRAM="install -m 755"
86 obgr_seneca 222049 rm -f %{buildroot}%{_sysconfdir}/x2go/Xsession.d
87 obgr_seneca 205910
88 obgr_seneca 216576 mkdir -p %{buildroot}%{_unitdir}
89     install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
90 obgr_seneca 205910
91 obgr_seneca 216576 cat > README.install.urpmi << EOF
92 obgr_seneca 205910
93     DATABASE SETUP
94     -----------------
95    
96 dams 552264 You need either an sqlite or a postgresql database for running X2Go.
97     If you want to run X2Go just on a single server, sqlite is sufficient, for
98     running X2Go on a multi server setup, postgresql is required.
99 obgr_seneca 205910
100     $ x2godbadmin --createdb
101    
102    
103     DEFAULT: SQLite setup
104     ------------------------
105    
106 dams 552264 This variant is the default X2Go database setup. The X2Go database keeps track
107     of running/suspended/finished X2Go sessions, mounted devices, etc. If you use
108     SQLite as DB backend, X2Go will run on one single server.
109 obgr_seneca 205910
110 dams 552264 For multi-X2goServer support use the PostgreSQL setup variant of X2Go server.
111 obgr_seneca 205910 All files should be present for this setup. If not, please report it as a bug.
112    
113    
114     ALTERNATIVE: PostgreSQL setup
115     --------------------------------
116    
117     This variant is for a setup of x2goserver that uses a PostgreSQL database
118     backend...
119    
120     The exact installation of x2goserver with PostgreSQL support is described
121 dams 552264 here: http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql
122 obgr_seneca 205910
123     LOCAL FOLDER SHARING
124     -----------------------
125    
126 dams 552264 Users that shall be able to use X2Go's local folder sharing functionality
127 obgr_seneca 205910 (via sshfs) have to be members of your server system's ,,fuse'' group
128    
129     $ usermod -a -G fuse <username>
130    
131    
132     PRINTING
133     -----------
134    
135     Also users that shall be able to send print jobs to client-side printers have
136     to be members of the server-side ,,fuse'' group (see above).
137    
138 dams 552264 As X2Go printing setups can be rather versatile, details on X2go printing are
139     explained in the project wiki: http://wiki.x2go.org/doku.php/doc:installation:printing
140 obgr_seneca 205910
141    
142     INITSCRIPT
143     ------------
144    
145     Until now, there is none, has to be written from scratch and will follow soonest.
146     The server can be started by the command x2gocleansessions& as root in the meanwhile.
147     EOF
148    
149     find %{buildroot} -name .placeholder -delete
150     mkdir -p %{buildroot}%{_localstatedir}/lib/x2go
151     mkdir -p %{buildroot}%{_localstatedir}/spool/x2goprint
152    
153     %pre
154     %_pre_useradd x2gouser %{_localstatedir}/lib/x2go /bin/false
155     %_pre_useradd x2goprint %{_localstatedir}/spool/x2goprint /bin/false
156    
157     %post
158     chown x2gouser:x2gouser %{_localstatedir}/lib/x2go
159     chown x2goprint:x2goprint %{_localstatedir}/spool/x2goprint
160 dams 552264 # Initialize the session database
161     [ ! -f %{_localstatedir}/lib/x2go/x2go_sessions ] && %{_sbindir}/x2godbadmin --createdb || :
162 obgr_seneca 205910
163     %postun
164     %_postun_userdel x2gouser
165     %_postun_userdel x2goprint
166    
167     %files sqlite
168    
169     %files postgresql
170    
171     %files
172     %doc README.install.urpmi
173     %doc %{_mandir}/man*/x2go*
174     %dir %{_localstatedir}/lib/x2go
175     %dir %{_localstatedir}/spool/x2goprint
176     %{_datadir}/x2go
177 dams 585431 %{_datadir}/applications/x2gofm.desktop
178     %{_datadir}/mime/packages/sshfs-x2go.xml
179 obgr_seneca 216576 %{_bindir}/x2gobasepath
180     %{_bindir}/x2gocmdexitmessage
181     %{_bindir}/x2gofeature
182 obgr_seneca 247919 %{_bindir}/x2gofeaturelist
183     %{_bindir}/x2gogetapps
184 obgr_seneca 216576 %{_bindir}/x2gogetservers
185     %{_bindir}/x2golistdesktops
186     %{_bindir}/x2golistmounts
187     %{_bindir}/x2golistsessions
188     %{_bindir}/x2gomountdirs
189     %attr(2755,root,x2goprint) %{_bindir}/x2goprint
190     %{_bindir}/x2goresume-session
191     %{_bindir}/x2goruncommand
192     %{_bindir}/x2goserver-run-extensions
193     %{_bindir}/x2gosessionlimit
194     %{_bindir}/x2gosetkeyboard
195 dams 585431 %{_bindir}/x2gofm
196 obgr_seneca 216576 %{_bindir}/x2gostartagent
197     %{_bindir}/x2gosuspend
198     %{_bindir}/x2gosuspend-agent
199     %{_bindir}/x2gosuspend-session
200     %{_bindir}/x2goterminate
201     %{_bindir}/x2goterminate-session
202     %{_bindir}/x2goumount-session
203     %{_bindir}/x2goversion
204 obgr_seneca 344109 %{_bindir}/x2gopath
205 obgr_seneca 205910 %{_sbindir}/x2go*
206 obgr_seneca 222049 %dir %{_sysconfdir}/x2go
207     %{_sysconfdir}/x2go/Xresources
208     %{_sysconfdir}/x2go/Xsession
209     %config(noreplace) %{_sysconfdir}/x2go/x2goserver.conf
210     %{_sysconfdir}/x2go/x2gosql/sql
211 obgr_seneca 344109 %{_sysconfdir}/x2go/x2go_logout
212     %{_sysconfdir}/x2go/x2go_logout.d/010_userscripts.sh
213     %{_sysconfdir}/x2go/x2goagent.options
214 dams 585431 %{_sysconfdir}/sudoers.d/%{name}
215 obgr_seneca 216576 %{_unitdir}/%{name}.service
216     %dir %{x2golibdir}
217     %{x2golibdir}/x2gochangestatus
218     %{x2golibdir}/x2gocreatesession
219     %{x2golibdir}/x2godbwrapper.pm
220     %{x2golibdir}/x2gogetagent
221     %{x2golibdir}/x2gogetdisplays
222     %{x2golibdir}/x2gogetports
223 obgr_seneca 247919 %{x2golibdir}/x2gogetstatus
224 obgr_seneca 216576 %{x2golibdir}/x2goinsertport
225     %{x2golibdir}/x2goinsertsession
226     %{x2golibdir}/x2golistsessions_sql
227     %{x2golibdir}/x2gologlevel
228     %{x2golibdir}/x2gologlevel.pm
229     %{x2golibdir}/x2gormport
230     %{x2golibdir}/x2goresume
231 dams 552264 %{x2golibdir}/extensions
232 obgr_seneca 216576 %attr(2755,root,x2gouser) %{x2golibdir}/x2gosqlitewrapper
233     %{x2golibdir}/x2gosqlitewrapper.pl
234     %{x2golibdir}/x2gosuspend-agent
235     %{x2golibdir}/x2gosyslog
236 dams 585431 %{x2golibdir}/x2goutils.pm

  ViewVC Help
Powered by ViewVC 1.1.30