]> git.pld-linux.org Git - packages/xorg-app-xdm.git/blob - xorg-app-xdm.spec
- updated to 1.1.11
[packages/xorg-app-xdm.git] / xorg-app-xdm.spec
1 # TODO
2 # - Source1 contains X11R6 paths and the scripts inside should be reviewed for
3 #   security issues
4 Summary:        xdm - X Display Manager with support for XDMCP, host chooser
5 Summary(pl.UTF-8):      XDM - zarządca ekranów z obsługą XDMCP i wybieraniem hostów
6 Summary(ru.UTF-8):      Менеджер дисплея X
7 Summary(uk.UTF-8):      Менеджер дисплею X
8 Name:           xorg-app-xdm
9 Version:        1.1.11
10 Release:        1
11 License:        MIT
12 Group:          X11/Applications
13 Source0:        http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2
14 # Source0-md5:  64a1af1f7eb69feae12e75d4cc3aaf19
15 Source1:        ftp://ftp.pld-linux.org/software/xinit/xdm-xinitrc-0.2.tar.bz2
16 # Source1-md5:  0a15b1c374256b5cad7961807baa3896
17 Source2:        xdm.pamd
18 Source3:        xdm.init
19 Source4:        xdm.sysconfig
20 Patch0:         %{name}-Xsession.patch
21 Patch1:         %{name}-pam_tty.patch
22 Patch2:         %{name}-config.patch
23 Patch3:         %{name}-consolekit.patch
24 URL:            http://xorg.freedesktop.org/
25 BuildRequires:  ConsoleKit-devel
26 BuildRequires:  autoconf >= 2.60
27 BuildRequires:  automake
28 BuildRequires:  cpp
29 BuildRequires:  libselinux-devel
30 BuildRequires:  libtool
31 BuildRequires:  pam-devel
32 BuildRequires:  pkgconfig >= 1:0.19
33 BuildRequires:  xorg-lib-libX11-devel
34 BuildRequires:  xorg-lib-libXau-devel
35 BuildRequires:  xorg-lib-libXaw-devel
36 BuildRequires:  xorg-lib-libXdmcp-devel
37 BuildRequires:  xorg-lib-libXext-devel
38 BuildRequires:  xorg-lib-libXft-devel
39 BuildRequires:  xorg-lib-libXinerama-devel
40 BuildRequires:  xorg-lib-libXmu-devel
41 BuildRequires:  xorg-lib-libXpm-devel
42 BuildRequires:  xorg-lib-libXt-devel >= 1.0.0
43 BuildRequires:  xorg-lib-xtrans-devel
44 BuildRequires:  xorg-util-util-macros >= 1.8
45 Requires(post,preun):   /sbin/chkconfig
46 Requires:       mktemp
47 Requires:       pam >= 0.99.7.1
48 Requires:       rc-scripts
49 Requires:       xorg-app-xconsole
50 Requires:       xorg-app-xrdb
51 Requires:       xorg-app-xsetroot
52 Requires:       xorg-app-sessreg
53 Requires:       xorg-lib-libXt >= 1.0.0
54 Requires:       xterm
55 Provides:       XDM
56 Provides:       xdm = %{version}-%{release}
57 Obsoletes:      X11-xdm < 1:7.0.0
58 Obsoletes:      XFree86-xdm < 1:7.0.0
59 Obsoletes:      xdm < 1:7.0.0
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %description
63 Xdm manages a collection of X displays, which may be on the local host
64 or remote servers. The design of xdm was guided by the needs of X
65 terminals as well as the X Consortium standard XDMCP, the X Display
66 Manager Control Protocol.
67
68 %description -l pl.UTF-8
69 Xdm zarządza zestawem ekranów X, które mogą być lokalne lub na
70 zdalnych serwerach. Został zaprojektowany zgodnie z potrzebami X
71 terminali oraz standardem X Consortium XDMCP.
72
73 %description -l ru.UTF-8
74 Менеджер дисплея X.
75
76 %description -l uk.UTF-8
77 Менеджер дисплею X.
78
79 %prep
80 %setup -q -n xdm-%{version} -a1
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \
94         DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \
95         --disable-static \
96         --enable-xdmshell \
97         --with-authdir=/var/lib/xdm \
98         --with-bw-pixmap=xdm-pld-logo-bw.xpm \
99         --with-color-pixmap=xdm-pld-logo.xpm \
100         --with-consolekit \
101         --with-default-vt=vt9 \
102         --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
103         --with-selinux \
104         --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
105         --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
106
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT/var/lib/xdm
112
113 %{__make} install \
114         DESTDIR=$RPM_BUILD_ROOT \
115         appdefaultdir=%{_datadir}/X11/app-defaults
116
117 %{__rm} $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
118
119 # set up PLD xdm config
120 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
121 install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps
122 install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm
123
124 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm
125 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm
126 install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm
127 install -d $RPM_BUILD_ROOT/etc/security
128 :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
129
130 %clean
131 rm -rf $RPM_BUILD_ROOT
132
133 %post
134 /sbin/chkconfig --add xdm
135 if [ -f /var/lock/subsys/xdm ]; then
136         echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2
137         echo "WARNING: it will terminate all sessions opened from xdm!" >&2
138 else
139         echo "Run \"/sbin/service xdm start\" to start xdm." >&2
140 fi
141
142 %preun
143 if [ "$1" = "0" ]; then
144         /sbin/chkconfig --del xdm
145         %service xdm stop
146 fi
147
148 %files
149 %defattr(644,root,root,755)
150 %doc AUTHORS COPYING ChangeLog README
151 %attr(755,root,root) %{_bindir}/xdm
152 %attr(755,root,root) %{_bindir}/xdmshell
153 %{_datadir}/X11/app-defaults/Chooser
154 %dir %{_libdir}/X11/xdm
155 %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
156 %attr(755,root,root) %{_libdir}/X11/xdm/chooser
157 %dir %{_sysconfdir}/X11/xdm
158 # scripts
159 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole
160 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole
161 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset
162 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession
163 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0
164 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup
165 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling
166 # configs
167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess
168 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources
169 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers
170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config
171 # pixmaps
172 %{_sysconfdir}/X11/xdm/pixmaps
173 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm
174 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm
175 %attr(754,root,root) /etc/rc.d/init.d/xdm
176 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
177 %dir /var/lib/xdm
178 %{_mandir}/man1/xdm.1x*
179 %{_mandir}/man1/xdmshell.1x*
This page took 0.680469 seconds and 4 git commands to generate.