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