]> git.pld-linux.org Git - packages/xorg-app-xdm.git/blame - xorg-app-xdm.spec
- use ConsoleKit.
[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
0fcc1ff4 23Patch3: %{name}-consolekit.patch
24Patch4: %{name}-selinux.patch
1dd97985 25URL: http://xorg.freedesktop.org/
0fcc1ff4 26BuildRequires: ConsoleKit-devel
c3e0e028 27BuildRequires: autoconf >= 2.60
1dd97985
JB
28BuildRequires: automake
29BuildRequires: cpp
c3e0e028 30BuildRequires: libselinux-devel
6cdb3266 31BuildRequires: libtool
1dd97985 32BuildRequires: pam-devel
69ea3c48 33BuildRequires: pkgconfig >= 1:0.19
10cae44a 34BuildRequires: xorg-lib-libXau-devel
1dd97985
JB
35BuildRequires: xorg-lib-libXaw-devel
36BuildRequires: xorg-lib-libXdmcp-devel
10cae44a 37BuildRequires: xorg-lib-libXft-devel
1dd97985 38BuildRequires: xorg-lib-libXinerama-devel
10cae44a 39BuildRequires: xorg-lib-libXmu-devel
1dd97985 40BuildRequires: xorg-lib-libXpm-devel
7a11f203 41BuildRequires: xorg-lib-libXt-devel >= 1.0.0
1dd97985 42BuildRequires: xorg-lib-xtrans-devel
c3e0e028 43BuildRequires: xorg-util-util-macros >= 1.4
47aec575 44Requires(post,preun): /sbin/chkconfig
6cdb3266 45Requires: mktemp
e675c473 46Requires: pam >= 0.99.7.1
47aec575
JB
47Requires: rc-scripts
48Requires: xorg-app-xconsole
ad0d559d 49Requires: xorg-app-xrdb
47aec575 50Requires: xorg-app-xsetroot
1dd97985 51Requires: xorg-app-sessreg
1a9481c5 52Requires: xorg-lib-libXt >= 1.0.0
ad0d559d 53Requires: xterm
1dd97985
JB
54Provides: XDM
55Provides: xdm = %{version}-%{release}
386d434c
AM
56Obsoletes: X11-xdm < 1:7.0.0
57Obsoletes: XFree86-xdm < 1:7.0.0
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
c3e0e028 83%patch3 -p1
0fcc1ff4 84%patch4 -p1
47aec575 85
1dd97985 86%build
6cdb3266 87%{__libtoolize}
c3e0e028 88%{__aclocal} -I m4
1dd97985
JB
89%{__autoconf}
90%{__autoheader}
91%{__automake}
93c6d229 92%configure \
ad0d559d
JB
93 DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \
94 DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \
7898c7f1 95 --disable-static \
c3e0e028 96 --with-authdir=/var/lib/xdm \
7759338c
JB
97 --with-bw-pixmap=xdm-pld-logo-bw.xpm \
98 --with-color-pixmap=xdm-pld-logo.xpm \
0fcc1ff4 99 --with-consolekit \
fe288ddc 100 --with-default-vt=vt9 \
7898c7f1 101 --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
c3e0e028 102 --with-selinux \
7898c7f1
JB
103 --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
104 --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
1dd97985
JB
105
106%{__make}
107
108%install
109rm -rf $RPM_BUILD_ROOT
7898c7f1 110install -d $RPM_BUILD_ROOT/var/lib/xdm
1dd97985
JB
111
112%{__make} install \
086fc757
JB
113 DESTDIR=$RPM_BUILD_ROOT \
114 appdefaultdir=%{_datadir}/X11/app-defaults
1dd97985 115
93c6d229
JB
116rm -f $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
117
7898c7f1
JB
118# set up PLD xdm config
119rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
120install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps
121install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm
122
123install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm
124install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm
125install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm
126install -d $RPM_BUILD_ROOT/etc/security
127:> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
128
1dd97985
JB
129%clean
130rm -rf $RPM_BUILD_ROOT
131
47aec575
JB
132%post
133/sbin/chkconfig --add xdm
134if [ -f /var/lock/subsys/xdm ]; then
135 echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2
136 echo "WARNING: it will terminate all sessions opened from xdm!" >&2
137else
138 echo "Run \"/sbin/service xdm start\" to start xdm." >&2
139fi
140
141%preun
142if [ "$1" = "0" ]; then
143 /sbin/chkconfig --del xdm
144 %service xdm stop
145fi
146
1dd97985
JB
147%files
148%defattr(644,root,root,755)
3cc4334d 149%doc AUTHORS COPYING ChangeLog README
1dd97985
JB
150%attr(755,root,root) %{_bindir}/xdm
151%attr(755,root,root) %{_bindir}/xdmshell
7a11f203 152%{_datadir}/X11/app-defaults/Chooser
1dd97985 153%dir %{_libdir}/X11/xdm
93c6d229 154%attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
1dd97985 155%attr(755,root,root) %{_libdir}/X11/xdm/chooser
7898c7f1
JB
156%dir %{_sysconfdir}/X11/xdm
157# scripts
158%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole
159%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole
160%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset
161%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession
162%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0
163%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup
164%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling
165# configs
166%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess
167%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources
168%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers
169%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config
170# pixmaps
171%{_sysconfdir}/X11/xdm/pixmaps
172%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm
173%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm
174%attr(754,root,root) /etc/rc.d/init.d/xdm
175%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
176%dir /var/lib/xdm
4a330895 177%{_mandir}/man1/xdm.1x*
This page took 0.110621 seconds and 4 git commands to generate.