]> git.pld-linux.org Git - packages/gdm2.20.git/blob - gdm2.20.spec
- %desc
[packages/gdm2.20.git] / gdm2.20.spec
1 Summary:        GNOME Display Manager
2 Summary(es):    Administrador de Entrada del GNOME
3 Summary(pl):    gdm
4 Summary(pt_BR): Gerenciador de Entrada do GNOME
5 Name:           gdm
6 Version:        2.2.5.4
7 Release:        2
8 Epoch:          1
9 License:        LGPL/GPL
10 Group:          X11/Applications
11 Group(de):      X11/Applikationen
12 Group(es):      X11/Aplicaciones
13 Group(fr):      X11/Applications
14 Group(pl):      X11/Aplikacje
15 Group(pt_BR):   X11/Aplicações
16 Group(pt):      X11/Aplicações
17 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.bz2
18 Source1:        %{name}.pamd
19 Source2:        %{name}.init
20 Source3:        %{name}.conf
21 Patch0:         %{name}-xdmcp.patch
22 Patch1:         %{name}-am_fixes.patch
23 Patch2:         %{name}-permissions.patch
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  esound-devel
27 BuildRequires:  gdk-pixbuf-devel
28 BuildRequires:  gettext-devel
29 BuildRequires:  gnome-libs-devel
30 BuildRequires:  gtk+-devel
31 BuildRequires:  libglade-devel
32 BuildRequires:  libtool
33 BuildRequires:  libxml-devel
34 BuildRequires:  perl-modules
35 BuildRequires:  scrollkeeper
36 BuildRequires:  intltool >= 0.14
37 Requires:       gnome-libs >= 1.0.0
38 Requires:       which
39 Requires:       /usr/X11R6/bin/sessreg
40 PreReq:         scrollkeeper
41 PreReq:         shadow
42 PreReq:         /sbin/chkconfig
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Obsoletes:      xdm kdm wdm
45
46 %define         _prefix         /usr/X11R6
47 %define         _bindir         %{_prefix}/bin
48 %define         _datadir        %{_prefix}/share
49 %define         _sbindir        %{_prefix}/sbin
50 %define         _mandir         %{_prefix}/man
51 %define         _localstatedir  /var/lib
52 %define         _sysconfdir     /etc/X11
53 %define         _omf_dest_dir   %(scrollkeeper-config --omfdir)
54
55 %description
56 Gdm (the GNOME Display Manager) is a highly configurable
57 reimplementation of xdm, the X Display Manager. Gdm allows you to log
58 into your system with the X Window System running and supports running
59 several different X sessions on your local machine at the same time.
60
61 %description -l es
62 Administrador de Entrada del GNOME.
63
64 %description -l pl
65 Gdm jest wysokokonfigurowaln± reimplementacj± xdma. Gdm pozwala
66 logowaæ siê do systemu z poziomu X11 i wspiera jednoczesn± pracê kilku
67 ró¿nych Xsesji na lokalnej maszynie.
68
69 %description -l pt_BR
70 Gerenciador de Entrada do GNOME.
71
72 %package Xnest
73 Summary:        Xnest (ie embedded X) server for GDM
74 Summary(pl):    Serwer Xnest dla GDM
75 Group:          X11/Applications
76 Group(de):      X11/Applikationen
77 Group(es):      X11/Aplicaciones
78 Group(fr):      X11/Applications
79 Group(pl):      X11/Aplikacje
80 Group(pt_BR):   X11/Aplicações
81 Group(pt):      X11/Aplicações
82 Requires:       %{name} = %{version}
83 Requires:       XFree86-Xnest
84
85 %description Xnest
86 This package add support for Xnest server in gdm.
87
88 %description Xnest -l pl
89 Ten pakiet dodaje do gdm wsparcie dla Xnest.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 %patch1 -p1
95 %patch2 -p1
96
97 %build
98 rm -f missing
99 libtoolize --copy --force
100 gettextize --copy --force
101 aclocal -I %{_aclocaldir}/gnome
102 autoconf
103 automake -a -c
104 %configure \
105         --with-xinerama=yes \
106         --with-xdmcp=yes \
107         --with-tcp-wrappers=yes \
108         --disable-console-helper
109
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security}
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT \
118         Settingsdir=%{_applnkdir}/Settings/GNOME \
119         Systemdir=%{_applnkdir}/System \
120         omf_dest_dir=%{_omf_dest_dir}/omf/%{name}
121
122 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
123 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
124 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/gdm.conf
125 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
126
127 mv $RPM_BUILD_ROOT%{_applnkdir}/System/gdmconfig.desktop \
128         $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/
129
130 gzip -9nf AUTHORS ChangeLog NEWS README TODO
131
132 %find_lang %{name} --all-name --with-gnome
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %pre
138 /usr/sbin/groupadd -g 55 -r -f xdm
139
140 if [ -z "`id -u xdm 2>/dev/null`" ]; then
141         /usr/sbin/useradd -u 55 -r -d /dev/null -s /bin/false -c 'X Display Manager' -g xdm xdm 1>&2
142 fi
143
144 %post
145 /sbin/chkconfig --add gdm
146 if [ -f /var/lock/subsys/gdm ]; then
147         echo "Run \"/etc/rc.d/init.d/gdm restart\" to restart gdm." >&2
148 else
149         echo "Run \"/etc/rc.d/init.d/gdm start\" to start gdm." >&2
150 fi
151 /usr/bin/scrollkeeper-update
152
153 %preun
154 if [ "$1" = "0" ]; then
155         if [ -f /var/lock/subsys/gdm ]; then
156                 /etc/rc.d/init.d/gdm stop >&2
157         fi
158         /sbin/chkconfig --del gdm
159 fi
160
161 %postun
162 if [ "$1" = "0" ]; then
163         if [ -n "`id -u xdm 2>/dev/null`" ]; then
164                 /usr/sbin/userdel xdm
165         fi
166         /usr/sbin/groupdel xdm
167 fi
168 /usr/bin/scrollkeeper-update
169
170 %files -f %{name}.lang
171 %defattr(644,root,root,755)
172 %doc *.gz
173 %attr(755,root,root) %{_bindir}/gdm
174 %attr(755,root,root) %{_bindir}/gdmchooser
175 %attr(755,root,root) %{_bindir}/gdmconfig
176 %attr(755,root,root) %{_bindir}/gdmflexiserver
177 %attr(755,root,root) %{_bindir}/gdmlogin
178 %attr(755,root,root) %{_bindir}/gdmmktemp
179 %attr(755,root,root) %{_bindir}/gdmphotosetup
180 %attr(755,root,root) %{_sbindir}/*
181 %attr(755,root,root) %config %{_sysconfdir}/gdm/Init
182 %attr(755,root,root) %config %{_sysconfdir}/gdm/PreSession
183 %attr(755,root,root) %config %{_sysconfdir}/gdm/Sessions
184 %attr(755,root,root) %config %{_sysconfdir}/gdm/PostSession
185 %attr(755,root,root) %config %{_sysconfdir}/gdm/gnomerc
186 %attr(755,root,root) %config %{_sysconfdir}/gdm/XKeepsCrashing
187 %config %{_sysconfdir}/gdm/factory-gdm.conf
188 %config %{_sysconfdir}/gdm/gdm.conf
189 %config %{_sysconfdir}/gdm/locale.alias
190 %attr(755,root,root) %dir %{_sysconfdir}/gdm
191 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/gdm
192 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.gdm
193 %attr(770,root,xdm) /var/lib/gdm
194 %attr(754,root,root) /etc/rc.d/init.d/gdm
195 %{_pixmapsdir}/*
196 # these lines to devel subpackage?
197 %{_applnkdir}/Settings/GNOME/*
198 %{_applnkdir}/System/gdmflexiserver.desktop
199 %{_datadir}/gdm
200 %{_omf_dest_dir}/omf/%{name}
201
202 %files Xnest
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/gdmXnestchooser
205 %{_applnkdir}/System/gdmflexiserver-xnest.desktop
This page took 0.04132 seconds and 3 git commands to generate.