]> git.pld-linux.org Git - packages/xorg-app-xdm.git/blob - xorg-app-xdm.spec
- fix apps paths in xdm-xinitrc; require used apps (xconsole, xsetroot)
[packages/xorg-app-xdm.git] / xorg-app-xdm.spec
1 Summary:        xdm - X Display Manager with support for XDMCP, host chooser
2 Summary(pl):    XDM - zarz±dca ekranów z obs³ug± XDMCP i wybieraniem hostów
3 Summary(ru):    íÅÎÅÄÖÅÒ ÄÉÓÐÌÅÑ X
4 Summary(uk):    íÅÎÅÄÖÅÒ ÄÉÓÐÌÅÀ X
5 Name:           xorg-app-xdm
6 Version:        1.1.0
7 Release:        0.2
8 License:        MIT
9 Group:          X11/Applications
10 Source0:        http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2
11 # Source0-md5:  2e20d86a5e77f1f5a1bf7a3bae27adb6
12 Source1:        ftp://ftp.pld-linux.org/software/xinit/xdm-xinitrc-0.2.tar.bz2
13 # Source1-md5:  0a15b1c374256b5cad7961807baa3896
14 Source2:        xdm.pamd
15 Source3:        xdm.init
16 Source4:        xdm.sysconfig
17 Patch0:         %{name}-Xsession.patch
18 URL:            http://xorg.freedesktop.org/
19 BuildRequires:  autoconf >= 2.57
20 BuildRequires:  automake
21 BuildRequires:  cpp
22 BuildRequires:  libtool
23 BuildRequires:  pam-devel
24 BuildRequires:  pkgconfig >= 1:0.19
25 BuildRequires:  sed >= 4.0
26 BuildRequires:  xorg-lib-libXaw-devel
27 BuildRequires:  xorg-lib-libXdmcp-devel
28 BuildRequires:  xorg-lib-libXinerama-devel
29 BuildRequires:  xorg-lib-libXpm-devel
30 BuildRequires:  xorg-lib-libXt-devel >= 1.0.0
31 BuildRequires:  xorg-lib-xtrans-devel
32 BuildRequires:  xorg-util-util-macros >= 0.99.2
33 Requires(post,preun):   /sbin/chkconfig
34 Requires:       mktemp
35 Requires:       pam >= 0.79.0
36 Requires:       rc-scripts
37 Requires:       xorg-app-xconsole
38 Requires:       xorg-app-xsetroot
39 Requires:       xorg-app-sessreg
40 Requires:       xorg-lib-libXt >= 1.0.0
41 Provides:       XDM
42 Provides:       xdm = %{version}-%{release}
43 Obsoletes:      X11-xdm
44 Obsoletes:      XFree86-xdm
45 Obsoletes:      entrance
46 Obsoletes:      gdm
47 Obsoletes:      kdm
48 Obsoletes:      wdm
49 Obsoletes:      xdm
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 Xdm manages a collection of X displays, which may be on the local host
54 or remote servers. The design of xdm was guided by the needs of X
55 terminals as well as the X Consortium standard XDMCP, the X Display
56 Manager Control Protocol.
57
58 %description -l pl
59 Xdm zarz±dza zestawem ekranów X, które mog± byæ lokalne lub na
60 zdalnych serwerach. Zosta³ zaprojektowany zgodnie z potrzebami X
61 terminali oraz standardem X Consortium XDMCP.
62
63 %description -l ru
64 íÅÎÅÄÖÅÒ ÄÉÓÐÌÅÑ X.
65
66 %description -l uk
67 íÅÎÅÄÖÅÒ ÄÉÓÐÌÅÀ X.
68
69 %prep
70 %setup -q -n xdm-%{version} -a1
71 %patch0 -p1
72
73 sed -i -e 's:DEF_AUTH_DIR, XDMCONFIGDIR,:DEF_AUTH_DIR, /var/lib/xdm,:' configure.ac
74
75 sed -i -e 's:/usr/X11R6/bin:/usr/bin:' xdm-xinitrc-*/{Xsetup_0,GiveConsole,TakeConsole}
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --disable-static \
85         --with-default-vt=vt9 \
86         --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
87         --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
88         --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT/var/lib/xdm
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 rm -f $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
100
101 # set up PLD xdm config
102 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
103 install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps
104 install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm
105
106 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm
107 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm
108 install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm
109 install -d $RPM_BUILD_ROOT/etc/security
110 :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 /sbin/chkconfig --add xdm
117 if [ -f /var/lock/subsys/xdm ]; then
118         echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2
119         echo "WARNING: it will terminate all sessions opened from xdm!" >&2
120 else
121         echo "Run \"/sbin/service xdm start\" to start xdm." >&2
122 fi
123
124 %preun
125 if [ "$1" = "0" ]; then
126         /sbin/chkconfig --del xdm
127         %service xdm stop
128 fi
129
130 %files
131 %defattr(644,root,root,755)
132 %doc COPYING ChangeLog
133 %attr(755,root,root) %{_bindir}/xdm
134 %attr(755,root,root) %{_bindir}/xdmshell
135 %{_datadir}/X11/app-defaults/Chooser
136 %dir %{_libdir}/X11/xdm
137 %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
138 %attr(755,root,root) %{_libdir}/X11/xdm/chooser
139 %dir %{_sysconfdir}/X11/xdm
140 # scripts
141 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole
142 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole
143 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset
144 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession
145 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0
146 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup
147 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling
148 # configs
149 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess
150 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources
151 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers
152 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config
153 # pixmaps
154 %{_sysconfdir}/X11/xdm/pixmaps
155 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm
156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm
157 %attr(754,root,root) /etc/rc.d/init.d/xdm
158 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
159 %dir /var/lib/xdm
160 %{_mandir}/man1/xdm.1x*
This page took 0.080071 seconds and 3 git commands to generate.