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