Blame SPECS/libxkbcommon.spec

c4524d
#global gitdate  20120917
c4524d
c4524d
Name:           libxkbcommon
c4524d
Version:        0.7.1
c4524d
Release:        3%{?gitdate:.%{gitdate}}%{?dist}
c4524d
Summary:        X.Org X11 XKB parsing library
c4524d
License:        MIT
c4524d
URL:            http://www.x.org
c4524d
c4524d
%if 0%{?gitdate}
c4524d
Source0:       %{name}-%{gitdate}.tar.bz2
c4524d
%else
c4524d
Source0:        http://xkbcommon.org/download/%{name}-%{version}.tar.xz
c4524d
%endif
c4524d
Source1:        make-git-snapshot.sh
c4524d
c4524d
# Bug 1623033 - CVE-2018-15864
c4524d
Patch01:        0001-parser-Don-t-set-more-maps-when-we-don-t-have-any.patch
c4524d
# Bug 1643488 - CVE-2018-15863
c4524d
Patch02:        0002-xkbcomp-Don-t-crash-on-no-op-modmask-expressions.patch
c4524d
# Bug 1623029 - CVE-2018-15862
c4524d
Patch03:        0003-xkbcomp-Don-t-explode-on-invalid-virtual-modifiers.patch
c4524d
# Bug 1643480 - CVE-2018-15861
c4524d
Patch04:        0004-xkbcomp-Don-t-falsely-promise-from-ExprResolveLhs.patch
c4524d
# Bug 1643153 - CVE-2018-15857
c4524d
Patch05:        0005-xkbcomp-fix-pointer-value-for-FreeStmt.patch
c4524d
# Bug 1643141 - CVE-2018-15856
c4524d
Patch06:        0006-compose-fix-infinite-loop-in-parser-on-some-inputs.patch
c4524d
# Bug 1643073 - CVE-2018-15855
c4524d
Patch07:        0007-xkbcomp-fix-crash-when-parsing-an-xkb_geometry-secti.patch
c4524d
# Bug 1642880 - CVE-2018-15854
c4524d
Patch08:        0008-xkbcomp-fix-crashes-in-the-parser-when-geometry-toke.patch
c4524d
# Bug 1642853 - CVE-2018-15853
c4524d
Patch09:        0009-xkbcomp-fix-stack-overflow-when-evaluating-boolean-n.patch
c4524d
# Bug 1643477 - CVE-2018-15859
c4524d
Patch10:        0010-Fail-expression-lookup-on-invalid-atoms.patch
c4524d
c4524d
BuildRequires:  autoconf automake libtool
c4524d
BuildRequires:  xorg-x11-util-macros byacc flex bison
c4524d
BuildRequires:  xorg-x11-proto-devel libX11-devel
c4524d
BuildRequires:  xkeyboard-config-devel
c4524d
BuildRequires:  pkgconfig(xcb-xkb) >= 1.10
c4524d
c4524d
Requires:       xkeyboard-config
c4524d
c4524d
%description
c4524d
%{name} is the X.Org library for compiling XKB maps into formats usable by
c4524d
the X Server or other display servers.
c4524d
c4524d
%package devel
c4524d
Summary:        X.Org X11 XKB parsing development package
c4524d
Requires:       %{name}%{?_isa} = %{version}-%{release}
c4524d
c4524d
%description devel
c4524d
X.Org X11 XKB parsing development package
c4524d
c4524d
%package x11
c4524d
Summary:        X.Org X11 XKB keymap creation library
c4524d
Requires:       %{name}%{?_isa} = %{version}-%{release}
c4524d
c4524d
%description x11
c4524d
%{name}-x11 is the X.Org library for creating keymaps by querying the X
c4524d
server.
c4524d
c4524d
%package x11-devel
c4524d
Summary:        X.Org X11 XKB keymap creation library
c4524d
Requires:       %{name}-x11%{?_isa} = %{version}-%{release}
c4524d
c4524d
%description x11-devel
c4524d
X.Org X11 XKB keymap creation library development package
c4524d
c4524d
%prep
c4524d
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
c4524d
c4524d
autoreconf -v --install || exit 1
c4524d
%patch01 -p1
c4524d
%patch02 -p1
c4524d
%patch03 -p1
c4524d
%patch04 -p1
c4524d
%patch05 -p1
c4524d
%patch06 -p1
c4524d
%patch07 -p1
c4524d
%patch08 -p1
c4524d
%patch09 -p1
c4524d
%patch10 -p1
c4524d
c4524d
%build
c4524d
%configure \
c4524d
  --disable-silent-rules \
c4524d
  --disable-static \
c4524d
  --enable-x11 \
c4524d
  --disable-docs
c4524d
c4524d
make %{?_smp_mflags}
c4524d
c4524d
%install
c4524d
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
c4524d
c4524d
find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
c4524d
c4524d
%post -p /sbin/ldconfig
c4524d
%postun -p /sbin/ldconfig
c4524d
c4524d
%files
c4524d
%license LICENSE
c4524d
%{_libdir}/libxkbcommon.so.0.0.0
c4524d
%{_libdir}/libxkbcommon.so.0
c4524d
c4524d
%files devel
c4524d
%{_libdir}/libxkbcommon.so
c4524d
%dir %{_includedir}/xkbcommon/
c4524d
%{_includedir}/xkbcommon/xkbcommon.h
c4524d
%{_includedir}/xkbcommon/xkbcommon-compat.h
c4524d
%{_includedir}/xkbcommon/xkbcommon-compose.h
c4524d
%{_includedir}/xkbcommon/xkbcommon-keysyms.h
c4524d
%{_includedir}/xkbcommon/xkbcommon-names.h
c4524d
%{_libdir}/pkgconfig/xkbcommon.pc
c4524d
c4524d
%post x11 -p /sbin/ldconfig
c4524d
%postun x11 -p /sbin/ldconfig
c4524d
c4524d
%files x11
c4524d
%{_libdir}/libxkbcommon-x11.so.0.0.0
c4524d
%{_libdir}/libxkbcommon-x11.so.0
c4524d
c4524d
%files x11-devel
c4524d
%{_libdir}/libxkbcommon-x11.so
c4524d
%{_includedir}/xkbcommon/xkbcommon-x11.h
c4524d
%{_libdir}/pkgconfig/xkbcommon-x11.pc
c4524d
c4524d
%changelog
c4524d
* Wed Mar 06 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.7.1-3
c4524d
- Actually apply the patch files
c4524d
c4524d
* Mon Feb 11 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.7.1-2
c4524d
- Fixes for
c4524d
  CVE-2018-15864, CVE-2018-15863, CVE-2018-15862, CVE-2018-15861,
c4524d
  CVE-2018-15859  CVE-2018-15857, CVE-2018-15856, CVE-2018-15855,
c4524d
  CVE-2018-15854, CVE-2018-15853
c4524d
c4524d
* Thu Jan 19 2017 Peter Hutterer <peter.hutterer@redhat.com> 0.7.1-1
c4524d
- xkbcommon 0.7.1
c4524d
c4524d
* Mon Nov 14 2016 Peter Hutterer <peter.hutterer@redhat.com> 0.7.0-1
c4524d
- xkbcommon 0.7.0
c4524d
c4524d
* Fri Jun 03 2016 Peter Hutterer <peter.hutterer@redhat.com> 0.6.1-1
c4524d
- xkbcommon 0.6.1
c4524d
c4524d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c4524d
c4524d
* Fri Jan 08 2016 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.0-3
c4524d
- always build the x11 subpackage
c4524d
c4524d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c4524d
c4524d
* Wed Oct 22 2014 Hans de Goede <hdegoede@redhat.com> - 0.5.0-1
c4524d
- Update to 0.5.0 (#1154574)
c4524d
c4524d
* Mon Sep 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.4.3-2
c4524d
- Require xkeyboard-config (#1145260)
c4524d
c4524d
* Wed Aug 20 2014 Kalev Lember <kalevlember@gmail.com> - 0.4.3-1
c4524d
- Update to 0.4.3
c4524d
c4524d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c4524d
c4524d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-4
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c4524d
c4524d
* Tue May 27 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.4.2-3
c4524d
- make -x11 support conditional (f21+, #1000497)
c4524d
- --disable-silent-rules
c4524d
c4524d
* Fri May 23 2014 Hans de Goede <hdegoede@redhat.com> - 0.4.2-2
c4524d
- Bump release to 2 to avoid confusion with non official non scratch 0.4.2-1
c4524d
c4524d
* Thu May 22 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.4.2-1
c4524d
- xkbcommon 0.4.2 (#1000497)
c4524d
- own %%{_includedir}/xkbcommon/
c4524d
- -x11: +ldconfig scriptlets
c4524d
- -devel: don't include xkbcommon-x11.h
c4524d
- run reautoconf in %%prep (instead of %%build)
c4524d
- tighten subpkg deps via %%_isa
c4524d
- .spec cleanup, remove deprecated stuff
c4524d
- BR: pkgconfig(xcb-xkb) >= 1.10
c4524d
c4524d
* Wed Feb 05 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.4.0-1
c4524d
- xkbcommon 0.4.0
c4524d
- Add new xkbcommon-x11 and xkbcommon-x11-devel subpackages
c4524d
c4524d
* Tue Aug 27 2013 Peter Hutterer <peter.hutterer@redhat.com> 0.3.1-1
c4524d
- xkbcommon 0.3.1
c4524d
c4524d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c4524d
c4524d
* Thu Apr 18 2013 Peter Hutterer <peter.hutterer@redhat.com> 0.3.0-1
c4524d
- xkbcommon 0.3.0
c4524d
c4524d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c4524d
c4524d
* Tue Oct 23 2012 Adam Jackson <ajax@redhat.com> 0.2.0-1
c4524d
- xkbcommon 0.2.0
c4524d
c4524d
* Mon Sep 17 2012 Thorsten Leemhuis <fedora@leemhuis.info> 0.1.0-8.20120917
c4524d
- Today's git snapshot
c4524d
c4524d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-7.20120306
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c4524d
c4524d
* Tue Mar 06 2012 Peter Hutterer <peter.hutterer@redhat.com> 0.1.0-6.20120306
c4524d
- BuildRequire xkeyboard-config-devel to get the right XKB target path (#799717)
c4524d
c4524d
* Tue Mar 06 2012 Peter Hutterer <peter.hutterer@redhat.com> 0.1.0-5.20120306
c4524d
- Today's git snapshot
c4524d
c4524d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-4.20111109
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c4524d
c4524d
* Wed Nov 09 2011 Adam Jackson <ajax@redhat.com> 0.1.0-3
c4524d
- Today's git snap
c4524d
c4524d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2.20101110
c4524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c4524d
c4524d
* Sat Nov 06 2010 Dave Airlie <airlied@redhat.com> 0.1.0-1.20101110
c4524d
- inital import
c4524d