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