467055
%global tarball libX11
467055
#global gitdate 20130524
467055
%global gitversion a3bdd2b09
467055
467055
Summary: Core X11 protocol client library
467055
Name: libX11
4b168a
Version: 1.6.8
495919
Release: 5%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
467055
License: MIT
467055
Group: System Environment/Libraries
467055
URL: http://www.x.org
467055
467055
%if 0%{?gitdate}
467055
Source0:    %{tarball}-%{gitdate}.tar.bz2
467055
Source1:    make-git-snapshot.sh
467055
Source2:    commitid
467055
%else
467055
Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
467055
%endif
467055
467055
Patch2: dont-forward-keycode-0.patch
4b168a
Patch3: 0001-Fix-XTS-regression-in-XCopyColormapAndFree.patch
4b168a
Patch4: 0001-Fix-poll_for_response-race-condition.patch
467055
d39c50
# CVE-2020-14363
d39c50
Patch5: 0001-Fix-an-integer-overflow-in-init_om.patch
495919
Patch6: CVE-2021-31535.patch
d39c50
467055
BuildRequires: xorg-x11-util-macros >= 1.11
467055
BuildRequires: pkgconfig(xproto) >= 7.0.15
467055
BuildRequires: xorg-x11-xtrans-devel >= 1.0.3-4
467055
BuildRequires: libxcb-devel >= 1.2
467055
BuildRequires: pkgconfig(xau) pkgconfig(xdmcp)
467055
BuildRequires: perl(Pod::Usage)
467055
467055
Requires: %{name}-common >= %{version}-%{release}
467055
467055
%description
467055
Core X11 protocol client library.
467055
467055
%package common
467055
Summary: Common data for libX11
467055
Group: System Environment/Libraries
467055
BuildArch: noarch
467055
467055
%description common
467055
libX11 common data
467055
467055
%package devel
467055
Summary: Development files for %{name}
467055
Group: Development/Libraries
467055
Requires: %{name} = %{version}-%{release}
467055
Requires: %{name}-xcb = %{version}-%{release}
467055
467055
%description devel
467055
X.Org X11 libX11 development package
467055
467055
%package xcb
467055
Summary: XCB interop for libX11
467055
Group: System Environment/Libraries
467055
Conflicts: %{name} < %{version}-%{release}
467055
467055
%description xcb
467055
libX11/libxcb interoperability library
467055
467055
%prep
467055
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
467055
%patch2 -p1 -b .dont-forward-keycode-0
4b168a
%patch3 -p1 -b .copycolormapandfree
4b168a
%patch4 -p1 -b .race
d39c50
%patch5 -p1 -b .fix-an-integer-overflow-in-init_om
495919
%patch6 -p1 -b .cve-2021-31535
467055
467055
%build
467055
autoreconf -v --install --force
467055
%configure --disable-silent-rules --disable-static
467055
467055
make %{?_smp_mflags}
467055
467055
%install
467055
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
467055
467055
# create/own compose cache dir
467055
mkdir -p $RPM_BUILD_ROOT/var/cache/libX11/compose
467055
467055
# We intentionally don't ship *.la files
467055
find $RPM_BUILD_ROOT -type f -name '*.la' -delete
467055
467055
# FIXME: Don't install Xcms.txt - find out why upstream still ships this.
467055
find $RPM_BUILD_ROOT -name 'Xcms.txt' -delete
467055
467055
# FIXME package these properly
467055
rm -rf $RPM_BUILD_ROOT%{_docdir}
467055
467055
%check
467055
make %{?_smp_mflags} check
467055
467055
%ldconfig_post
467055
%ldconfig_postun
467055
467055
%files
467055
%{_libdir}/libX11.so.6
467055
%{_libdir}/libX11.so.6.3.0
467055
467055
%files xcb
467055
%{_libdir}/libX11-xcb.so.1
467055
%{_libdir}/libX11-xcb.so.1.0.0
467055
467055
%files common
4b168a
%doc AUTHORS COPYING README.md NEWS
467055
%{_datadir}/X11/locale/
467055
%{_datadir}/X11/XErrorDB
467055
%dir /var/cache/libX11
467055
%dir /var/cache/libX11/compose
467055
467055
%files devel
467055
%{_includedir}/X11/ImUtil.h
467055
%{_includedir}/X11/XKBlib.h
467055
%{_includedir}/X11/Xcms.h
467055
%{_includedir}/X11/Xlib.h
467055
%{_includedir}/X11/XlibConf.h
467055
%{_includedir}/X11/Xlibint.h
467055
%{_includedir}/X11/Xlib-xcb.h
467055
%{_includedir}/X11/Xlocale.h
467055
%{_includedir}/X11/Xregion.h
467055
%{_includedir}/X11/Xresource.h
467055
%{_includedir}/X11/Xutil.h
467055
%{_includedir}/X11/cursorfont.h
467055
%{_libdir}/libX11.so
467055
%{_libdir}/libX11-xcb.so
467055
%{_libdir}/pkgconfig/x11.pc
467055
%{_libdir}/pkgconfig/x11-xcb.pc
467055
%{_mandir}/man3/*.3*
467055
%{_mandir}/man5/*.5*
467055
467055
%changelog
495919
* Thu Aug 12 2021 Adam Jackson <ajax@redhat.com> - 1.6.8-5
495919
- Fix CVE-2021-31535 (#1962439)
495919
d39c50
* Tue Nov  3 2020 Michel Dänzer <mdaenzer@redhat.com> - 1.6.8-4
d39c50
- Fix CVE-2020-14363 (#1873923)
d39c50
4b168a
* Mon Feb 24 2020 Adam Jackson <ajax@redhat.com> - 1.6.8-3
4b168a
- Fix race condition in poll_for_reponse
4b168a
4b168a
* Fri Dec 13 2019 Adam Jackson <ajax@redhat.com> - 1.6.8-2
4b168a
- Fix assertion on error in XCopyColormapAndFree
4b168a
4b168a
* Tue Nov 19 2019 Adam Jackson <ajax@redhat.com> - 1.6.8-1
4b168a
- libX11 1.6.8
4b168a
467055
* Tue Oct 09 2018 Adam Jackson <ajax@redhat.com> - 1.6.7-1
467055
- libX11 1.6.7
467055
467055
* Tue Aug 21 2018 Adam Jackson <ajax@redhat.com> - 1.6.6-1
467055
- libX11 1.6.6
467055
467055
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-9
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
467055
467055
* Fri Jun 29 2018 Adam Jackson <ajax@redhat.com> - 1.6.5-8
467055
- Use ldconfig scriptlet macros
467055
467055
* Fri Mar 23 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.6.5-7
467055
- Fix FTBS caused by fake size in the XimCacheStruct (#1556616)
467055
467055
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-6
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
467055
467055
* Tue Oct 17 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.5-5
467055
- run make check as part of the build (#1502658)
467055
467055
* Tue Aug 01 2017 Adam Jackson <ajax@redhat.com> - 1.6.5-4
467055
- Split libX11-xcb to its own subpackage. This doesn't have much effect at
467055
  the moment because x11-xcb.pc still lists both libX11 and libxcb in
467055
  Requires, but once that's fixed eg. libEGL should be able to be installed
467055
  without libX11.
467055
467055
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-3
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
467055
467055
* Fri May 12 2017 Hans de Goede <hdegoede@redhat.com> - 1.6.5-2
467055
- Rebuild against new xproto to pick up support for new keysyms
467055
467055
* Wed Apr 26 2017 Adam Jackson <ajax@redhat.com> - 1.6.5-1
467055
- libX11 1.6.5
467055
467055
* Thu Feb 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 1.6.4-6
467055
- create/own /var/cache/libx11/compose (#962764)
467055
- %%build: --disable-silent-rules
467055
467055
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-5
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
467055
467055
* Fri Jan 20 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-4
467055
- Actually apply the patch from 1.6.4-3
467055
467055
* Mon Jan 09 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-3
467055
- Fix a bug in the memory leak fix from 1.6.4-2
467055
467055
* Thu Jan 05 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-2
467055
- Plug a memory leak in XListFonts()
467055
467055
* Wed Oct 05 2016 Adam Jackson <ajax@redhat.com> - 1.6.4-1
467055
- libX11 1.6.4
467055
467055
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
467055
467055
* Thu Jan 28 2016 Peter Hutterer <peter.hutterer@redhat.com>
467055
- Remove unnecessary defattr
467055
467055
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3-2
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
467055
467055
* Tue Mar 10 2015 Adam Jackson <ajax@redhat.com> 1.6.3-1
467055
- libX11 1.6.3
467055
467055
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
467055
467055
* Mon Jun 30 2014 Adam Jackson <ajax@redhat.com> 1.6.2-1
467055
- libX11 1.6.2 plus a fix for interleaved xcb/xlib usage
467055
- Use >= for the -common Requires
467055
467055
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
467055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
467055
467055
* Tue Jul 30 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.6.1-1
467055
- libX11 1.6.1
467055
467055
* Tue Jun 04 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.6.0-1
467055
- libX11 1.6.0