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