Blame SPECS/libX11.spec

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