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