651f89
%global tarball libX11
651f89
#global gitdate 20130524
651f89
%global gitversion a3bdd2b09
651f89
651f89
Summary: Core X11 protocol client library
651f89
Name: libX11
651f89
Version: 1.7.0
651f89
Release: 7%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
651f89
License: MIT
651f89
URL: http://www.x.org
651f89
651f89
%if 0%{?gitdate}
651f89
Source0:    %{tarball}-%{gitdate}.tar.bz2
651f89
Source1:    make-git-snapshot.sh
651f89
Source2:    commitid
651f89
%else
651f89
Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
651f89
%endif
651f89
651f89
Patch2: dont-forward-keycode-0.patch
651f89
Patch3: 0001-makekeys-handle-the-new-_EVDEVK-xorgproto-symbols.patch
651f89
651f89
BuildRequires: make
651f89
BuildRequires: xorg-x11-util-macros >= 1.11
651f89
BuildRequires: pkgconfig(xproto) >= 7.0.15
651f89
BuildRequires: xorg-x11-xtrans-devel >= 1.0.3-4
651f89
BuildRequires: libxcb-devel >= 1.2
651f89
BuildRequires: pkgconfig(xau) pkgconfig(xdmcp)
651f89
BuildRequires: perl(Pod::Usage)
651f89
651f89
Requires: %{name}-common >= %{version}-%{release}
651f89
651f89
%description
651f89
Core X11 protocol client library.
651f89
651f89
%package common
651f89
Summary: Common data for libX11
651f89
BuildArch: noarch
651f89
651f89
%description common
651f89
libX11 common data
651f89
651f89
%package devel
651f89
Summary: Development files for %{name}
651f89
Requires: %{name} = %{version}-%{release}
651f89
Requires: %{name}-xcb = %{version}-%{release}
651f89
651f89
%description devel
651f89
X.Org X11 libX11 development package
651f89
651f89
%package xcb
651f89
Summary: XCB interop for libX11
651f89
Conflicts: %{name} < %{version}-%{release}
651f89
651f89
%description xcb
651f89
libX11/libxcb interoperability library
651f89
651f89
%prep
651f89
%autosetup -p1 -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
651f89
651f89
%build
651f89
autoreconf -v --install --force
651f89
%configure --disable-silent-rules --disable-static
651f89
651f89
make %{?_smp_mflags}
651f89
651f89
%install
651f89
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
651f89
651f89
# create/own compose cache dir
651f89
mkdir -p $RPM_BUILD_ROOT/var/cache/libX11/compose
651f89
651f89
# We intentionally don't ship *.la files
651f89
find $RPM_BUILD_ROOT -type f -name '*.la' -delete
651f89
651f89
# FIXME: Don't install Xcms.txt - find out why upstream still ships this.
651f89
find $RPM_BUILD_ROOT -name 'Xcms.txt' -delete
651f89
651f89
# FIXME package these properly
651f89
rm -rf $RPM_BUILD_ROOT%{_docdir}
651f89
651f89
%check
651f89
make %{?_smp_mflags} check
651f89
651f89
%ldconfig_post
651f89
%ldconfig_postun
651f89
651f89
%files
651f89
%{_libdir}/libX11.so.6
651f89
%{_libdir}/libX11.so.6.4.0
651f89
651f89
%files xcb
651f89
%{_libdir}/libX11-xcb.so.1
651f89
%{_libdir}/libX11-xcb.so.1.0.0
651f89
651f89
%files common
651f89
%doc AUTHORS COPYING README.md NEWS
651f89
%{_datadir}/X11/locale/
651f89
%{_datadir}/X11/XErrorDB
651f89
%dir /var/cache/libX11
651f89
%dir /var/cache/libX11/compose
651f89
651f89
%files devel
651f89
%{_includedir}/X11/ImUtil.h
651f89
%{_includedir}/X11/XKBlib.h
651f89
%{_includedir}/X11/Xcms.h
651f89
%{_includedir}/X11/Xlib.h
651f89
%{_includedir}/X11/XlibConf.h
651f89
%{_includedir}/X11/Xlibint.h
651f89
%{_includedir}/X11/Xlib-xcb.h
651f89
%{_includedir}/X11/Xlocale.h
651f89
%{_includedir}/X11/Xregion.h
651f89
%{_includedir}/X11/Xresource.h
651f89
%{_includedir}/X11/Xutil.h
651f89
%{_includedir}/X11/cursorfont.h
651f89
%{_includedir}/X11/extensions/XKBgeom.h
651f89
%{_libdir}/libX11.so
651f89
%{_libdir}/libX11-xcb.so
651f89
%{_libdir}/pkgconfig/x11.pc
651f89
%{_libdir}/pkgconfig/x11-xcb.pc
651f89
%{_mandir}/man3/*.3*
651f89
%{_mandir}/man5/*.5*
651f89
651f89
%changelog
651f89
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.0-7
651f89
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
651f89
  Related: rhbz#1991688
651f89
651f89
* Tue Aug 03 2021 Peter Hutterer <peter.hutterer@redhat.com> - 1.7.0-6
651f89
- Parse the EVDEVK keysyms (#1988944)
651f89
651f89
* Tue May 04 2021 Peter Hutterer <peter.hutterer@redhat.com> 1.7.0-5
651f89
- Rebuild to pick up the new xorgproto keysyms (#1954345)
651f89
651f89
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.0-4
651f89
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
651f89
651f89
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
651f89
651f89
* Tue Dec 01 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.7.0-2
651f89
- libX11 1.7.0 (with the tarball this time)
651f89
651f89
* Tue Dec 01 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.7.0-1
651f89
- libX11 1.7.0
651f89
- switch to using the autosetup rpm macro
651f89
651f89
* Mon Nov 09 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.6.12-3
651f89
- Fix a race-condition in poll_for_response (#1758384)
651f89
651f89
* Thu Nov  5 11:12:56 AEST 2020 Peter Hutterer <peter.hutterer@redhat.com> - 1.6.12-2
651f89
- Add BuildRequires for make
651f89
651f89
* Wed Aug 26 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.6.12-1
651f89
- libX11 1.6.12 (CVE-2020-14363, CVE 2020-14344)
651f89
651f89
* Fri Jul 31 2020 Adam Jackson <ajax@redhat.com> - 1.6.9-5
651f89
- Fix server reply validation issue in XIM (CVE 2020-14344)
651f89
651f89
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-4
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
651f89
651f89
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-3
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
651f89
651f89
* Wed Dec 11 2019 Peter Hutterer <peter.hutterer@redhat.com> 1.6.9-2
651f89
- handle ssharp in XConvertCase
651f89
651f89
* Wed Oct 09 2019 Adam Jackson <ajax@redhat.com> - 1.6.9-1
651f89
- libX11 1.6.9
651f89
651f89
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-3
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
651f89
651f89
* Thu Jun 20 2019 Peter Hutterer <peter.hutterer@redhat.com> 1.6.8-2
651f89
- rebuild to pick up the new xorgproto keysyms
651f89
651f89
* Thu Jun 20 2019 Peter Hutterer <peter.hutterer@redhat.com> 1.6.8-1
651f89
- libX11 1.6.8
651f89
651f89
* Thu Mar 21 2019 Adam Jackson <ajax@redhat.com> - 1.6.7-3
651f89
- Rebuild for xtrans 1.4.0
651f89
651f89
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-2
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
651f89
651f89
* Tue Oct 09 2018 Adam Jackson <ajax@redhat.com> - 1.6.7-1
651f89
- libX11 1.6.7
651f89
651f89
* Tue Aug 21 2018 Adam Jackson <ajax@redhat.com> - 1.6.6-1
651f89
- libX11 1.6.6
651f89
651f89
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-9
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
651f89
651f89
* Fri Jun 29 2018 Adam Jackson <ajax@redhat.com> - 1.6.5-8
651f89
- Use ldconfig scriptlet macros
651f89
651f89
* Fri Mar 23 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.6.5-7
651f89
- Fix FTBS caused by fake size in the XimCacheStruct (#1556616)
651f89
651f89
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-6
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
651f89
651f89
* Tue Oct 17 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.5-5
651f89
- run make check as part of the build (#1502658)
651f89
651f89
* Tue Aug 01 2017 Adam Jackson <ajax@redhat.com> - 1.6.5-4
651f89
- Split libX11-xcb to its own subpackage. This doesn't have much effect at
651f89
  the moment because x11-xcb.pc still lists both libX11 and libxcb in
651f89
  Requires, but once that's fixed eg. libEGL should be able to be installed
651f89
  without libX11.
651f89
651f89
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-3
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
651f89
651f89
* Fri May 12 2017 Hans de Goede <hdegoede@redhat.com> - 1.6.5-2
651f89
- Rebuild against new xproto to pick up support for new keysyms
651f89
651f89
* Wed Apr 26 2017 Adam Jackson <ajax@redhat.com> - 1.6.5-1
651f89
- libX11 1.6.5
651f89
651f89
* Thu Feb 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 1.6.4-6
651f89
- create/own /var/cache/libx11/compose (#962764)
651f89
- %%build: --disable-silent-rules
651f89
651f89
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-5
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
651f89
651f89
* Fri Jan 20 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-4
651f89
- Actually apply the patch from 1.6.4-3
651f89
651f89
* Mon Jan 09 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-3
651f89
- Fix a bug in the memory leak fix from 1.6.4-2
651f89
651f89
* Thu Jan 05 2017 Peter Hutterer <peter.hutterer@redhat.com> 1.6.4-2
651f89
- Plug a memory leak in XListFonts()
651f89
651f89
* Wed Oct 05 2016 Adam Jackson <ajax@redhat.com> - 1.6.4-1
651f89
- libX11 1.6.4
651f89
651f89
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
651f89
651f89
* Thu Jan 28 2016 Peter Hutterer <peter.hutterer@redhat.com>
651f89
- Remove unnecessary defattr
651f89
651f89
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.3-2
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
651f89
651f89
* Tue Mar 10 2015 Adam Jackson <ajax@redhat.com> 1.6.3-1
651f89
- libX11 1.6.3
651f89
651f89
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-2
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
651f89
651f89
* Mon Jun 30 2014 Adam Jackson <ajax@redhat.com> 1.6.2-1
651f89
- libX11 1.6.2 plus a fix for interleaved xcb/xlib usage
651f89
- Use >= for the -common Requires
651f89
651f89
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
651f89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
651f89
651f89
* Tue Jul 30 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.6.1-1
651f89
- libX11 1.6.1
651f89
651f89
* Tue Jun 04 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.6.0-1
651f89
- libX11 1.6.0