Blame SPECS/xorg-x11-xinit.spec

f19413
%global pkgname xinit
f19413
f19413
Summary:    X.Org X11 X Window System xinit startup scripts
f19413
Name:       xorg-x11-%{pkgname}
f19413
Version:    1.4.0
f19413
Release:    11%{?dist}
f19413
License:    MIT
f19413
URL:        https://www.x.org
f19413
f19413
Source0:    https://xorg.freedesktop.org/archive/individual/app/%{pkgname}-%{version}.tar.bz2
f19413
Source10:   xinitrc-common
f19413
Source11:   xinitrc
f19413
Source12:   Xclients
f19413
Source13:   Xmodmap
f19413
Source14:   Xresources
f19413
# NOTE: Xsession is used by xdm/kdm/gdm and possibly others, so we keep it
f19413
#       here instead of the xdm package.
f19413
Source16:   Xsession
f19413
Source17:   localuser.sh
f19413
Source18:   xinit-compat.desktop
f19413
Source19:   xinit-compat
f19413
f19413
# Fedora specific patches
f19413
Patch1: xinit-1.0.2-client-session.patch
f19413
Patch5: 0003-startx-Make-startx-auto-display-select-work-with-per.patch
f19413
# Fedora specific patch to match the similar patch in the xserver
f19413
Patch6: xinit-1.3.4-set-XORG_RUN_AS_USER_OK.patch
f19413
f19413
# The build process uses cpp (the C preprocessor) to do some text
f19413
# processing on several files that are not C or C++. However, these
f19413
# files have '.cpp' extensions, which causes cpp to preprocess them
f19413
# using cc1plus, which is part of gcc-c++. We could patch the build
f19413
# to pass '-xc' or '-xassembler-with-cpp' to cpp to avoid this, but
f19413
# doing so actually causes the processing to be done differently
f19413
# somehow, and a bunch of empty lines to show up at the top of
f19413
# startx (which is one of the files so processed). So it seems better
f19413
# to just BuildRequire gcc-c++ for now, so the processing is done as
f19413
# it was before. See https://bugs.freedesktop.org/show_bug.cgi?id=107368
f19413
# for more on this.
f19413
BuildRequires:  make
f19413
BuildRequires:  automake gcc gcc-c++
f19413
BuildRequires:  pkgconfig(x11)
f19413
BuildRequires:  dbus-devel
f19413
f19413
# NOTE: startx needs xauth in order to run, but that is not picked up
f19413
#       automatically by rpm.  (Bug #173684)
f19413
Requires:   xorg-x11-xauth
f19413
# next two are for localuser.sh
f19413
Requires:   coreutils
f19413
Requires:   xhost
f19413
f19413
Provides:   %{pkgname} = %{version}
f19413
f19413
%description
f19413
X.Org X11 X Window System xinit startup scripts.
f19413
f19413
%package session
f19413
Summary:    Display manager support for ~/.xsession and ~/.Xclients
f19413
f19413
%description session
f19413
Allows legacy ~/.xsession and ~/.Xclients files to be used from display
f19413
managers.
f19413
f19413
%prep
f19413
%setup -q -n %{pkgname}-%{version}
f19413
%patch1 -p1
f19413
%patch5 -p1
f19413
%patch6 -p1
f19413
f19413
%build
f19413
%configure
f19413
make %{?_smp_mflags}
f19413
f19413
%install
f19413
%make_install
f19413
install -p -m644 -D %{SOURCE18} $RPM_BUILD_ROOT%{_datadir}/xsessions/xinit-compat.desktop
f19413
f19413
# Install Red Hat custom xinitrc, etc.
f19413
{
f19413
    mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit
f19413
f19413
    install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc-common
f19413
f19413
    for script in %{SOURCE11} %{SOURCE12} %{SOURCE16} ; do
f19413
        install -p -m 755 $script $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/${script##*/}
f19413
    done
f19413
f19413
    install -p -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/X11/Xmodmap
f19413
    install -p -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/X11/Xresources
f19413
f19413
    mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d
f19413
    install -p -m 755 %{SOURCE17} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/localuser.sh
f19413
f19413
    mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/Xclients.d
f19413
f19413
    mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
f19413
    install -p -m 755 %{SOURCE19} $RPM_BUILD_ROOT%{_libexecdir}
f19413
}
f19413
f19413
%files
f19413
%doc COPYING README ChangeLog
f19413
%{_bindir}/startx
f19413
%{_bindir}/xinit
f19413
%dir %{_sysconfdir}/X11/xinit
f19413
%{_sysconfdir}/X11/xinit/xinitrc
f19413
%{_sysconfdir}/X11/xinit/xinitrc-common
f19413
%config(noreplace) %{_sysconfdir}/X11/Xmodmap
f19413
%config(noreplace) %{_sysconfdir}/X11/Xresources
f19413
%dir %{_sysconfdir}/X11/xinit/Xclients.d
f19413
%{_sysconfdir}/X11/xinit/Xclients
f19413
%{_sysconfdir}/X11/xinit/Xsession
f19413
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
f19413
%{_sysconfdir}/X11/xinit/xinitrc.d/*
f19413
%{_mandir}/man1/startx.1*
f19413
%{_mandir}/man1/xinit.1*
f19413
f19413
%files session
f19413
%{_libexecdir}/xinit-compat
f19413
%{_datadir}/xsessions/xinit-compat.desktop
f19413
f19413
%changelog
f19413
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.0-11
f19413
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f19413
  Related: rhbz#1991688
f19413
f19413
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.0-10
f19413
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f19413
f19413
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-9
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f19413
f19413
* Thu Nov  5 11:00:56 AEST 2020 Peter Hutterer <peter.hutterer@redhat.com> - 1.4.0-8
f19413
- Add BuildRequires for make
f19413
f19413
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-7
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f19413
f19413
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-6
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f19413
f19413
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f19413
f19413
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f19413
f19413
* Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 1.4.0-3
f19413
- Rebuild with gcc-c++ (build without it succeeded but was broken)
f19413
f19413
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f19413
f19413
* Mon Mar 12 2018 Adam Jackson <ajax@redhat.com> - 1.4.0-1
f19413
- xinit 1.4.0
f19413
f19413
* Mon Feb 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.3.4-18
f19413
- Add BR for automake and gcc
f19413
f19413
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-17
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f19413
f19413
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-16
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f19413
f19413
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-15
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f19413
f19413
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-14
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f19413
f19413
* Wed Dec 14 2016 Hans de Goede <hdegoede@redhat.com> - 1.3.4-13
f19413
- Check for all 3 of SSH_AGENT, SSH_AGENT_PID and SSH_AUTH_SOCK to fix
f19413
  a regression introduced by the previous fix (rhbz#1352339)
f19413
f19413
* Mon Aug 29 2016 Hans de Goede <hdegoede@redhat.com> - 1.3.4-12
f19413
- Drop 0001-startx-Pass-nolisten-tcp-by-default.patch this is the
f19413
  server default now
f19413
- Check for SSH_AUTH_SOCK not SSH_AGENT in xinitrc-common (rhbz#1352339)
f19413
f19413
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-11
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f19413
f19413
* Wed Jan 20 2016 Peter Hutterer <peter.hutterer@redhat.com>
f19413
- s/define/global/
f19413
f19413
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-10
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f19413
f19413
* Mon May 18 2015 Hans de Goede <hdegoede@redhat.com> - 1.3.4-9
f19413
- Fix typo in Xsession file (rhbz#1222299)
f19413
f19413
* Thu Apr 30 2015 Hans de Goede <hdegoede@redhat.com> - 1.3.4-8
f19413
- Only set XORG_RUN_AS_USER_OK when no vt is specified (#1203780)
f19413
f19413
* Fri Mar 20 2015 Hans de Goede <hdegoede@redhat.com> - 1.3.4-7
f19413
- Fix startx auto display select not working when a Xserver started by
f19413
  gdm is running
f19413
f19413
* Wed Mar 18 2015 Hans de Goede <hdegoede@redhat.com> - 1.3.4-6
f19413
- Set XORG_RUN_AS_USER_OK when starting X on the current tty, to run X
f19413
  to run without root rights when possible
f19413
f19413
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.3.4-5
f19413
- Rebuilt for Fedora 23 Change
f19413
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
f19413
f19413
* Tue Feb  3 2015 Hans de Goede <hdegoede@redhat.com> - 1.3.4-4
f19413
- xinitrc-common: Do not override SSH_AGENT if already set (rhbz#1067676)
f19413
f19413
* Thu Jan 22 2015 Simone Caronni <negativo17@gmail.com> - 1.3.4-3
f19413
- Xorg without root rights breaks by streams redirection (#1177513).
f19413
- Format SPEC file; trim changelog.
f19413
f19413
* Wed Oct  1 2014 Hans de Goede <hdegoede@redhat.com> - 1.3.4-2
f19413
- Add support for MATE to Xclients (#1147905)
f19413
f19413
* Thu Sep 11 2014 Hans de Goede <hdegoede@redhat.com> - 1.3.4-1
f19413
- New upstream release 1.3.4
f19413
- Resolves #806491 #990213 #1006029
f19413
- Remove stale ck-xinit-session references from xinitrc-common (#910969)
f19413
- Make startx pass "-nolisten tcp" by default, use -listen as server
f19413
  option to disable this (#1111684)
f19413
- Teach Xclients script about lxde (#488602)
f19413
f19413
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-13
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f19413
f19413
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-12
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f19413
f19413
* Tue Mar 25 2014 Hans de Goede <hdegoede@redhat.com> - 1.3.2-11
f19413
- Fix startx ignoring a server or display passed on the cmdline (#960955)
f19413
- Drop Fedora custom patch to unset XDG_SESSION_COOKIE, this was only for CK
f19413
f19413
* Thu Jan 23 2014 Dave Airlie <airlied@redhat.com> 1.3.2-10
f19413
- fix for ppc64le enable (#1056742)
f19413
f19413
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-9
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f19413
f19413
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-8
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f19413
f19413
* Mon Oct 01 2012 Kevin Fenzi <kevin@scrye.com> 1.3.2-7
f19413
- Add patch to not switch tty's, so systemd-logind works right with startx. 
f19413
- Partially Fixes bug #806491 
f19413
f19413
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-6
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f19413
f19413
* Thu Apr 26 2012 Adam Jackson <ajax@redhat.com> 1.3.2-5
f19413
- xinit 1.3.2
f19413
f19413
* Thu Mar 08 2012 Adam Jackson <ajax@redhat.com> 1.3.1-5
f19413
- Rebuild
f19413
f19413
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-3
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f19413
f19413
* Wed Nov 16 2011 Adam Jackson <ajax@redhat.com> 1.3.1-2
f19413
- Drop ConsoleKit integration, being removed in F17
f19413
f19413
* Mon Jul 25 2011 Matěj Cepl <mcepl@redhat.com> - 1.3.1-1
f19413
- New upstream version. Patches updated.
f19413
f19413
* Sat May 28 2011 Matěj Cepl <mcepl@redhat.com> - 1.0.9-21
f19413
- xinitrc-common sources ~/.profile (Bug 551508)
f19413
f19413
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-20
f19413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild