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