~darkxst/ubuntu/saucy/gdm/lp1212408

« back to all changes in this revision

Viewing changes to gdm.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2008-09-02 10:37:20 UTC
  • mfrom: (1.4.27 upstream)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: james.westby@ubuntu.com-20080902103720-p810vv530hqj45wg
Tags: 2.20.7-3
* Install the debian-moreblue-orbit theme, thanks Andre Luiz Rodrigues 
  Ferreira. Closes: #497440.
* 35_gdm.conf.patch: make it the default.
* copyright: fix encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define sysconfdir    /etc
2
 
 
3
 
Summary:        The GNOME Display Manager.
4
 
Name:           gdm
5
 
Version:        @VERSION@
6
 
Release:        1
7
 
Epoch:          1
8
 
License:        LGPL/GPL
9
 
Group:          User Interface/X
10
 
Source:         ftp://ftp.5z.com/pub/unix/gdm-%{version}.tar.gz
11
 
BuildRoot:      %{_tmppath}/gdm-%{version}-root
12
 
Prereq:         /usr/sbin/useradd
13
 
Requires:       pam >= 0.68
14
 
Requires:       gnome-libs >= 1.0.17
15
 
Requires:       gtk2 >= 2.6.0
16
 
BuildRequires:  usermode, libglade-devel
17
 
BuildRequires:  gnome-libs-devel >= 1.0.17
18
 
BuildRequires:  gdk-pixbuf-devel >= 0.7.0
19
 
 
20
 
%description
21
 
Gdm (the GNOME Display Manager) is a highly configurable
22
 
reimplementation of xdm, the X Display Manager. Gdm allows you to log
23
 
into your system with the X Window System running and supports running
24
 
several different X sessions on your local machine at the same time.
25
 
 
26
 
%prep
27
 
%setup -q
28
 
 
29
 
%build
30
 
CFLAGS="-g $RPM_OPT_FLAGS" ./configure --localstatedir=%{_localstatedir} \
31
 
    --prefix=%{_prefix} --sysconfdir=%{sysconfdir}/X11 \
32
 
    --bindir=%{_bindir} --datadir=%{_datadir} --sbindir=%{_sbindir} \
33
 
    --enable-console-helper --with-pam-prefix=%{sysconfdir}
34
 
 
35
 
make
36
 
 
37
 
%install
38
 
rm -rf $RPM_BUILD_ROOT
39
 
 
40
 
/usr/sbin/useradd -r gdm > /dev/null 2>&1 || /bin/true
41
 
 
42
 
make sysconfdir=$RPM_BUILD_ROOT%{sysconfdir}/X11 \
43
 
    prefix=$RPM_BUILD_ROOT%{_prefix} \
44
 
    bindir=$RPM_BUILD_ROOT%{_bindir} \
45
 
    datadir=$RPM_BUILD_ROOT%{_datadir} \
46
 
    localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
47
 
    sbindir=$RPM_BUILD_ROOT%{_sbindir} \
48
 
    PAM_PREFIX=$RPM_BUILD_ROOT%{sysconfdir} \
49
 
    install
50
 
 
51
 
 
52
 
# install RH specific session files
53
 
# rm -f $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/*
54
 
 
55
 
# install -m 755 config/Default.redhat $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/Default
56
 
# install -m 755 config/Gnome $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/Gnome
57
 
# ln -sf Default $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/default
58
 
 
59
 
# change default Init script to be Red Hat default
60
 
# Note that this just sets up background and we already do that ourselves
61
 
#ln -sf ../../xdm/Xsetup_0 $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Init/Default
62
 
 
63
 
# done right nowdays
64
 
# move pam.d stuff to right place
65
 
# mv $RPM_BUILD_ROOT%{sysconfdir}/X11/pam.d $RPM_BUILD_ROOT%{sysconfdir}
66
 
# move security stuff to right place
67
 
# mv $RPM_BUILD_ROOT%{sysconfdir}/X11/security $RPM_BUILD_ROOT%{sysconfdir}
68
 
%find_lang %{name}-2.4
69
 
 
70
 
%clean
71
 
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
72
 
 
73
 
%pre
74
 
/usr/sbin/useradd -u 42 -r gdm > /dev/null 2>&1
75
 
# ignore errors, as we can't disambiguate between gdm already existed
76
 
# and couldn't create account with the current adduser.
77
 
exit 0
78
 
 
79
 
%post
80
 
# Attempt to restart GDM softly by use of the fifo.  Wont work on older
81
 
# then 2.2.3.1 versions but should work nicely on later upgrades.
82
 
# FIXME: this is just way too complex
83
 
FIFOFILE=`grep '^ServAuthDir=' %{sysconfdir}/X11/gdm/gdm.conf | sed -e 's/^ServAuthDir=//'`
84
 
if test x$FIFOFILE = x ; then
85
 
        FIFOFILE=%{_localstatedir}/gdm/.gdmfifo
86
 
else
87
 
        FIFOFILE="$FIFOFILE"/.gdmfifo
88
 
fi
89
 
 
90
 
PIDFILE=`gdmflexiserver --command="GET_CONFIG daemon/PidFile"`
91
 
CHECKPIDFILE=`echo $PIDFILE | sed 's/^\([^ ]*\) .*$/\1/'`
92
 
if [ "x$CHECKPIDFILE" = "xOK" ]; then
93
 
        PIDFILE=`echo $PIDFILE | sed 's/^.* \(.*\)$/\1/'`
94
 
else
95
 
        PIDFILE=""
96
 
fi
97
 
 
98
 
if test x$PIDFILE = x ; then
99
 
        PIDFILE=/var/run/gdm.pid
100
 
fi
101
 
if test -w $FIFOFILE ; then
102
 
        if test -f $PIDFILE ; then
103
 
                if kill -0 `cat $PIDFILE` ; then
104
 
                        (echo;echo SOFT_RESTART) >> $FIFOFILE
105
 
                fi
106
 
        fi
107
 
fi
108
 
# ignore error in the above
109
 
exit 0
110
 
 
111
 
%files -f %name-2.4.lang
112
 
%defattr(-, root, root)
113
 
 
114
 
%doc AUTHORS COPYING ChangeLog NEWS README
115
 
%{_bindir}/*
116
 
%{_sbindir}/*
117
 
%{_libexecdir}/*
118
 
%{_libdir}/gtk-2.0/modules/*
119
 
%config %{sysconfdir}/pam.d/*
120
 
%config %{sysconfdir}/X11/gdm
121
 
%config %{sysconfdir}/security/console.apps/*
122
 
%{_datadir}/pixmaps/*
123
 
%{_datadir}/xsessions/*
124
 
%{_datadir}/gdm
125
 
%{_datadir}/applications/*
126
 
%{_datadir}/gnome/capplets/*
127
 
# DOCUMENTATION!
128
 
%{_datadir}/omf/gdm
129
 
%{_datadir}/gnome/help/gdm
130
 
%{_prefix}/man/man*/*
131
 
%{_localstatedir}/scrollkeeper/*/*
132
 
%{_localstatedir}/scrollkeeper/scrollkeeper_docs
133
 
 
134
 
%attr(1770, root, gdm) %dir %{_localstatedir}/gdm
135
 
%attr(755, root, root) %dir %{_localstatedir}/log/gdm
136
 
 
137
 
 
138
 
%changelog
139
 
* Mon Aug 26 2003 George Lebl <jirka@5z.com>
140
 
- whack localstatedir
141
 
- update file list
142
 
 
143
 
* Mon Aug 25 2003 George Lebl <jirka@5z.com>
144
 
- Updated file list
145
 
 
146
 
* Mon Jun  9 2003 George Lebl <jirka@5z.com>
147
 
- Updated for the new session setup
148
 
 
149
 
* Mon May  5 2003 George Lebl <jirka@5z.com>
150
 
- Updated the lang stuff, and the file lists
151
 
 
152
 
* Tue Nov  6 2001 Gregory Leblanc <gleblanc@linuxweasel.com>
153
 
- removed some unnecessary %defines
154
 
- fixed find_lang stuff
155
 
- added some BuildRequires lines
156
 
 
157
 
* Sun Jul 01 2001 George Lebl <jirka@5z.com>
158
 
- Fixed file listing
159
 
 
160
 
* Sun May 24 2001 George Lebl <jirka@5z.com>
161
 
- Hmmm, simplified the file listing, dunno why normally people list
162
 
  things file by file/dir by dir, but the old file list was out of date
163
 
 
164
 
* Sun May 06 2001 George Lebl <jirka@5z.com>
165
 
- Kill the Failsafe script. GDM will now do failsafe itself, in an actual
166
 
  failsafe way (meaning it will work with greater degree of hosage)
167
 
 
168
 
* Wed Mar 07 2001 George Lebl <jirka@5z.com>
169
 
- Fixups, move the security dir as well and build with console helper and
170
 
  hardwire the sysconfdir to /etc as that seems broke on my 6.2 box otherwise
171
 
 
172
 
* Wed Mar 07 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
173
 
- finalize patches that have been pending.  Merge changes forward, and
174
 
  commit to CVS.
175
 
 
176
 
* Mon Mar 05 2001 Lee Mallabone <lee0@callnetuk.com>
177
 
- Change glade file paths and add gdmchooser glade file.
178
 
 
179
 
* Wed Feb 28 2001 Lee Mallabone <lee0@callnetuk.com>
180
 
- Add necessary paths/flags to use console-helper for gdmconfig.
181
 
 
182
 
* Thu Feb 22 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
183
 
- %define localstatedir /var/lib and related changes
184
 
 
185
 
* Tue Feb 20 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
186
 
- macro cleanups
187
 
 
188
 
* Fri Feb 03 2001 George Lebl <jirka@5z.com>
189
 
- Add gdmconfig files
190
 
 
191
 
* Fri Feb 02 2001 George Lebl <jirka@5z.com>
192
 
- Remove all the patches and do the voodoo that I don't do so well
193
 
  to make this thingie work with 2.0.97.1
194
 
 
195
 
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
196
 
- Modify Default.session and Failsafe.session not to add -login option to bash
197
 
- exec the session scripts with the user's shell with a hyphen prepended
198
 
- doesn't seem to actually work yet with tcsh, but it doesn't seem to 
199
 
  break anything. needs a look to see why it doesn't work
200
 
 
201
 
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
202
 
- Link PreSession/Default to xdm/GiveConsole
203
 
- Link PostSession/Default to xdm/TakeConsole
204
 
 
205
 
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
206
 
- Fix the fix to the fix (8877)
207
 
- remove docs/gdm-manual.txt which doesn't seem to exist from %doc
208
 
 
209
 
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
210
 
- Enhance 8877 fix by not deleting the "Please login" 
211
 
  message
212
 
 
213
 
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
214
 
- Try to fix bug 8877 by clearing the message below 
215
 
  the entry box when the prompt changes. may turn 
216
 
  out to be a bad idea.
217
 
 
218
 
* Mon Jan 17 2000 Elliot Lee <sopwith@redhat.com>
219
 
- Fix bug #7666: exec Xsession instead of just running it
220
 
 
221
 
* Mon Oct 25 1999 Jakub Jelinek <jakub@redhat.com>
222
 
- Work around so that russian works (uses koi8-r instead
223
 
  of the default iso8859-5)
224
 
 
225
 
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
226
 
- Try again
227
 
 
228
 
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
229
 
- More fixes for i18n
230
 
 
231
 
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
232
 
- Fixes for i18n
233
 
 
234
 
* Fri Sep 26 1999 Elliot Lee <sopwith@redhat.com>
235
 
- Fixed pipewrite bug (found by mkj & ewt).
236
 
 
237
 
* Fri Sep 17 1999 Michael Fulbright <drmike@redhat.com>
238
 
- added requires for pam >= 0.68
239
 
 
240
 
* Fri Sep 10 1999 Elliot Lee <sopwith@redhat.com>
241
 
- I just update this package every five minutes, so any recent changes are my fault.
242
 
 
243
 
* Thu Sep 02 1999 Michael K. Johnson <johnsonm@redhat.com>
244
 
- built gdm-2.0beta2
245
 
 
246
 
* Mon Aug 30 1999 Michael K. Johnson <johnsonm@redhat.com>
247
 
- built gdm-2.0beta1
248
 
 
249
 
* Tue Aug 17 1999 Michael Fulbright <drmike@redhat.com>
250
 
- included rmeier@liberate.com patch for tcp socket X connections
251
 
 
252
 
* Mon Apr 19 1999 Michael Fulbright <drmike@redhat.com>
253
 
- fix to handling ancient gdm config files with non-standard language specs
254
 
- dont close display connection for xdmcp connections, else we die if remote
255
 
  end dies. 
256
 
 
257
 
* Fri Apr 16 1999 Michael Fulbright <drmike@redhat.com>
258
 
- fix language handling to set GDM_LANG variable so gnome-session 
259
 
  can pick it up
260
 
 
261
 
* Wed Apr 14 1999 Michael Fulbright <drmike@redhat.com>
262
 
- fix so certain dialog boxes dont overwrite background images
263
 
 
264
 
* Wed Apr 14 1999 Michael K. Johnson <johnsonm@redhat.com>
265
 
- do not specify -r 42 to useradd -- it doesn't know how to fall back
266
 
  if id 42 is already taken
267
 
 
268
 
* Fri Apr 9 1999 Michael Fulbright <drmike@redhat.com>
269
 
- removed suspend feature
270
 
 
271
 
* Mon Apr 5 1999 Jonathan Blandford <jrb@redhat.com>
272
 
- added patch from otaylor to not call gtk funcs from a signal.
273
 
- added patch to tab when username not added.
274
 
- added patch to center About box (and bring up only one) and ignore "~"
275
 
  and ".rpm" files.
276
 
 
277
 
* Fri Mar 26 1999 Michael Fulbright <drmike@redhat.com>
278
 
- fixed handling of default session, merged all gdmgreeter patches into one
279
 
 
280
 
* Tue Mar 23 1999 Michael Fulbright <drmike@redhat.com>
281
 
- remove GNOME/KDE/AnotherLevel session scripts, these have been moved to
282
 
  the appropriate packages instead.
283
 
- added patch to make option menus always active (security problem otherwise)
284
 
- added jrb's patch to disable stars in passwd entry field
285
 
 
286
 
* Fri Mar 19 1999 Michael Fulbright <drmike@redhat.com>
287
 
- made sure /usr/bin isnt in default path twice
288
 
- strip binaries
289
 
 
290
 
* Wed Mar 17 1999 Michael Fulbright <drmike@redhat.com>
291
 
- fixed to use proper system path when root logs in
292
 
 
293
 
* Tue Mar 16 1999 Michael Fulbright <drmike@redhat.com>
294
 
- linked Init/Default to Red Hat default init script for xdm
295
 
- removed logo from login dialog box
296
 
 
297
 
* Mon Mar 15 1999 Michael Johnson <johnsonm@redhat.com>
298
 
- pam_console integration
299
 
 
300
 
* Tue Mar 09 1999 Michael Fulbright <drmike@redhat.com>
301
 
- added session files for GNOME/KDE/AnotherLevel/Default/Failsafe
302
 
- patched gdmgreeter to not complete usernames
303
 
- patched gdmgreeter to not safe selected session permanently
304
 
- patched gdmgreeter to center dialog boxes
305
 
 
306
 
* Mon Mar 08 1999 Michael Fulbright <drmike@redhat.com>
307
 
- removed comments from gdm.conf file, these are not parsed correctly
308
 
 
309
 
* Sun Mar 07 1999 Michael Fulbright <drmike@redhat.com>
310
 
- updated source line for accuracy
311
 
 
312
 
* Fri Feb 26 1999 Owen Taylor <otaylor@redhat.com>
313
 
- Updated patches for 1.0.0
314
 
- Fixed some problems in 1.0.0 with installation directories
315
 
- moved /usr/var/gdm /var/gdm
316
 
 
317
 
* Thu Feb 25 1999 Michael Fulbright <drmike@redhat.com>
318
 
- moved files from /usr/etc to /etc
319
 
 
320
 
* Tue Feb 16 1999 Michael Johnson <johnsonm@redhat.com>
321
 
- removed commented-out #1 definition -- put back after testing gnome-libs
322
 
  comment patch
323
 
 
324
 
* Sat Feb 06 1999 Michael Johnson <johnsonm@redhat.com>
325
 
- initial packaging