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