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