%define bootstrap 0 # Allow --with[out] bootstrap at rpm command line build %{?_without_bootstrap: %{expand: %%define bootstrap 0}} %{?_with_bootstrap: %{expand: %%define bootstrap 1}} Name: xinit Version: 1.3.2 Release: %mkrel 5 Summary: Initialize an X session License: MIT Group: System/X11 URL: http://cgit.freedesktop.org/xorg/app/xinit Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 # (fc) 1.0.2-2mdv readd modifications for startx (argument parsing) # This patch is part of the old "startx" patch. # We need to check why exactly this patch is needed, but it does these things: # - it removes the default client and server from the startx arguments, so if # nothing is specified the default server or client will be the one chosen by # xinit # - it uses trap to make sure the "cleanup" function will be run # - it partially undoes upstream commit 9632367abd03108f3636b05e9f2fd92f5c28dabe # - it enables commands like "startx startxfce4", which don't work in the # unpatched version (should be "startx /usr/bin/startxfce4") #Previous versions of this patch had a bug where xinit would be run twice if some #macros were defined. Patch0: xinit-1.3.2-startx-arguments.patch # (fc) prevent freeze from applications trying to read stdin (Fedora bug #214649) Patch2: xinit-1.0.4-client-session.patch # (fc) unset XDG_SESSION_COOKIE in startx (Fedora bug #489999) Patch3: xinit-1.0.9-unset.patch # (pz) this patch was taken from the old startx.patch Patch4: xinit-1.2.0-replace-xterm-for-xvt.patch # (cg) use the current vt to maintain the current session status. Patch5: xinit-1.3.2-use-current-vt.patch BuildRequires: libx11-devel >= 1.0.0 BuildRequires: x11-util-macros >= 1.0.1 Requires: xinitrc %if !%{bootstrap} Requires: which %endif %description The xinit program is used to start the X Window System server and a first client program on systems that cannot start X directly from /etc/init or in environments that use multiple window systems. When this first client exits, xinit will kill the X server and then terminate. %prep %setup -q -n %{name}-%{version} %patch0 -p0 -b .orig %patch2 -p1 -b .client-session %patch3 -p1 -b .unset %patch4 -p1 -b .xvt %patch5 -p1 -b .curvt #needed by patch1 #if !%{bootstrap} #autoreconf -fi #endif %build %configure2_5x %make XINITDIR=/etc/X11/xinit %install rm -rf %{buildroot} %makeinstall_std #don't use xorg xinitrc file, use our own, provided by xinitrc package rm -fr %buildroot%{_libdir}/X11/xinit/xinitrc %files %{_bindir}/xinit %{_bindir}/startx %if !%{bootstrap} %endif %{_mandir}/man1/startx.1* %{_mandir}/man1/xinit.1* %changelog * Mon Jan 14 2013 umeabot <umeabot> 1.3.2-5.mga3 + Revision: 387057 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Oct 19 2012 ovitters <ovitters> 1.3.2-4.mga3 + Revision: 308235 - drop consolekit support (+1'ed by coling) - clean spec * Fri Apr 06 2012 colin <colin> 1.3.2-3.mga2 + Revision: 229253 - Nicer way to get current tty * Fri Apr 06 2012 colin <colin> 1.3.2-2.mga2 + Revision: 229209 - Attempt to detect and reuse the current vt (to preserve login session 'active' status and thus permissions) * Sat Feb 25 2012 eatdirt <eatdirt> 1.3.2-1.mga2 + Revision: 214628 - Upgrade to 1.3.2, startx patch fixed + tv <tv> - new release * Fri Jan 21 2011 ennael <ennael> 1.3.0-1.mga1 + Revision: 27603 - imported package xinit