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