cb4b31ab7a
- U_0001-CVE-2014-0209-integer-overflow-of-realloc-size-in-Fo.patch, U_0002-CVE-2014-0209-integer-overflow-of-realloc-size-in-le.patch, U_0003-CVE-2014-0210-unvalidated-length-in-_fs_recv_conn_se.patch, U_0004-CVE-2014-0210-unvalidated-lengths-when-reading-repli.patch, U_0005-CVE-2014-0211-Integer-overflow-in-fs_get_reply-_fs_s.patch, U_0006-CVE-2014-0210-unvalidated-length-fields-in-fs_read_q.patch, U_0007-CVE-2014-0211-integer-overflow-in-fs_read_extent_inf.patch, U_0008-CVE-2014-0211-integer-overflow-in-fs_alloc_glyphs.patch, U_0009-CVE-2014-0210-unvalidated-length-fields-in-fs_read_e.patch, U_0010-CVE-2014-0210-unvalidated-length-fields-in-fs_read_g.patch, U_0011-CVE-2014-0210-unvalidated-length-fields-in-fs_read_l.patch, U_0012-CVE-2014-0210-unvalidated-length-fields-in-fs_read_l.patch * Security fixes. (CVE-2014-0209, CVE-2014-0210, CVE-2014-0211, bnc#857544) OBS-URL: https://build.opensuse.org/request/show/234717 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXfont?expand=0&rev=15
132 lines
4.7 KiB
RPMSpec
132 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package libXfont
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libXfont
|
|
%define lname libXfont1
|
|
Version: 1.4.7
|
|
Release: 0
|
|
Summary: X font handling library for server and utilities
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://xorg.freedesktop.org/
|
|
|
|
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libXfont
|
|
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libXfont/
|
|
Source: %{name}-%{version}-a96cc1f.tar.bz2
|
|
Patch1: U_0001-CVE-2014-0209-integer-overflow-of-realloc-size-in-Fo.patch
|
|
Patch2: U_0002-CVE-2014-0209-integer-overflow-of-realloc-size-in-le.patch
|
|
Patch3: U_0003-CVE-2014-0210-unvalidated-length-in-_fs_recv_conn_se.patch
|
|
Patch4: U_0004-CVE-2014-0210-unvalidated-lengths-when-reading-repli.patch
|
|
Patch5: U_0005-CVE-2014-0211-Integer-overflow-in-fs_get_reply-_fs_s.patch
|
|
Patch6: U_0006-CVE-2014-0210-unvalidated-length-fields-in-fs_read_q.patch
|
|
Patch7: U_0007-CVE-2014-0211-integer-overflow-in-fs_read_extent_inf.patch
|
|
Patch8: U_0008-CVE-2014-0211-integer-overflow-in-fs_alloc_glyphs.patch
|
|
Patch9: U_0009-CVE-2014-0210-unvalidated-length-fields-in-fs_read_e.patch
|
|
Patch10: U_0010-CVE-2014-0210-unvalidated-length-fields-in-fs_read_g.patch
|
|
Patch11: U_0011-CVE-2014-0210-unvalidated-length-fields-in-fs_read_l.patch
|
|
Patch12: U_0012-CVE-2014-0210-unvalidated-length-fields-in-fs_read_l.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#git#BuildRequires: autoconf >= 2.60, automake, libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(fontenc)
|
|
BuildRequires: pkgconfig(fontsproto)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.10
|
|
BuildRequires: pkgconfig(xproto)
|
|
BuildRequires: pkgconfig(xtrans)
|
|
BuildRequires: pkgconfig(zlib)
|
|
#optional#BuildRequires: pkgconfig(bzip2), + --with-bzip2
|
|
|
|
%description
|
|
libXfont provides the core of the legacy X11 font system, handling
|
|
the index files (fonts.dir, fonts.alias, fonts.scale), the various
|
|
font file formats, and rasterizing them. It is used by the X servers,
|
|
the X Font Server (xfs), and some font utilities (bdftopcf for
|
|
instance), but should not be used by normal X11 clients. X11 clients
|
|
access fonts via either the new APIs in libXft, or the legacy APIs in
|
|
libX11.
|
|
|
|
%package -n %lname
|
|
Summary: X font handling library for server and utilities
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
libXfont provides the core of the legacy X11 font system, handling
|
|
the index files (fonts.dir, fonts.alias, fonts.scale), the various
|
|
font file formats, and rasterizing them. It is used by the X servers,
|
|
the X Font Server (xfs), and some font utilities (bdftopcf for
|
|
instance), but should not be used by normal X11 clients. X11 clients
|
|
access fonts via either the new APIs in libXft, or the legacy APIs in
|
|
libX11.
|
|
|
|
%package devel
|
|
Summary: Development files for the X font handling library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%description devel
|
|
libXfont provides the core of the legacy X11 font system, handling
|
|
the index files (fonts.dir, fonts.alias, fonts.scale), the various
|
|
font file formats, and rasterizing them. It is used by the X servers,
|
|
the X Font Server (xfs), and some font utilities (bdftopcf for
|
|
instance), but should not be used by normal X11 clients. X11 clients
|
|
access fonts via either the new APIs in libXft, or the legacy APIs in
|
|
libX11.
|
|
|
|
This package contains the development headers for the library found
|
|
in %lname.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR="%buildroot"
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%_libdir/libXfont.so.1*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%_includedir/X11/*
|
|
%_libdir/libXfont.so
|
|
%_libdir/pkgconfig/xfont.pc
|
|
|
|
%changelog
|