libX11/libX11.spec
Stefan Dirsch 81931b306b - Update to version 1.7.0
* libX11 version 1.7.0 includes a new API, hence the change from
    the 1.6 series to 1.7:
    XSetIOErrorExitHandler which provides a mechanism for applications
    to recover from I/O error conditions instead of being forced to
    exit. Thanks to Carlos Garnacho for this.
  * This release includes a bunch of bug fixes, some which have been
    pending for over three years:
    + A bunch of nls cleanups to remove obsolete entries and clean up
      formatting of the ist. Thanks to Benno Schulenberg for these.
    + Warning fixes and other cleanups across a huge swath of the
      library. Thanks to Alan Coopersmith for these.
    + Memory allocation bugs, including leaks and use after free in the
      locale code. Thanks to Krzesimir Nowak, Jacek Caban and Vittorio
      Zecca for these.
    + Thread safety fixes in the locale code. Thanks to Jacek Caban for
      these.
    + poll_for_response race condition fix. Thanks to Frediano Ziglio for
      the bulk of this effort, and to Peter Hutterer for careful review
      and improvements.
  * Version 1.7.0 includes a couple of new locales:
    ia and ie locales. Thanks to Carmina16 for these.
  * There are also numerous compose entries added, including:
    + |^ or ^| for ↑, |v or v| for ↓, ~~ for ≈. Thanks to Antti
      Savolainen for this.
    + Allowing use of 'v' for caron, in addition to 'c', so things like
      vC for Č, vc for č. Thanks to Benno Schulenberg for this.
    + Compose sequences LT, lt for '<', and GT, gt for '>' for keyboards
      where those are difficult to access. Thanks to Jonathan Belsewir
      for this.
- refreshed patches en-locales.diff, p_khmer-compose.diff and 
  p_xlib_skip_ext_env.diff

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libX11?expand=0&rev=62
2020-11-21 19:33:38 +00:00

190 lines
6.8 KiB
RPMSpec

#
# spec file for package libX11
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: libX11
Version: 1.7.0
Release: 0
Summary: Core X11 protocol client library
License: MIT
Group: Development/Libraries/C and C++
URL: http://xorg.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libX11
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libX11/
Source: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
# PATCH-FIX-UPSTREAM p_khmer-compose.diff fdo#48595 bnc#143348 -- required compose entries for Khmer
Patch0: p_khmer-compose.diff
# PATCH-FEATURE-UPSTREAM p_xlib_skip_ext_env.diff fdo#48588 bnc#167317 -- Add support for disabling extensions through environment variables
Patch1: p_xlib_skip_ext_env.diff
# PATCH-FIX-UPSTREAM en-locales.diff fdo#48596 bnc#388711 -- Add missing data for more en locales
Patch2: en-locales.diff
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(inputproto)
BuildRequires: pkgconfig(kbproto)
BuildRequires: pkgconfig(xcb) >= 1.1.92
BuildRequires: pkgconfig(xextproto)
BuildRequires: pkgconfig(xf86bigfontproto)
BuildRequires: pkgconfig(xorg-macros) >= 1.11
BuildRequires: pkgconfig(xproto) >= 7.0.13
BuildRequires: pkgconfig(xtrans)
%description
The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.
%package -n libX11-6
Summary: Core X11 protocol client library
Group: System/Libraries
Requires: %{name}-data >= %{version}
# O/P added for 12.2. Ideally remove before 12.2 release.
Provides: xorg-x11-libX11 = 7.6_%{version}-%{release}
Obsoletes: xorg-x11-libX11 < 7.6_%{version}-%{release}
%description -n libX11-6
The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.
%package -n libX11-xcb1
Summary: XCB X11 protocol client library
Group: System/Libraries
Requires: %{name}-data >= %{version}
%description -n libX11-xcb1
The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.
%package data
Summary: Shared data for the Core X11 protocol library
Group: System/Libraries
BuildArch: noarch
%description data
The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.
%package devel
Summary: Development files for the Core X11 protocol library
Group: Development/Libraries/C and C++
Requires: libX11-6 = %{version}
Requires: libX11-xcb1 = %{version}
# O/P added for 12.2
Provides: xorg-x11-libX11-devel = 7.6_%{version}-%{release}
Obsoletes: xorg-x11-libX11-devel < 7.6_%{version}-%{release}
Conflicts: xorgproto-devel < 2019.2
Provides: xorgproto-devel:%{_includedir}/X11/extensions/XKBgeom.h
%description devel
The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.
This package contains the development headers for the library found
in libX11-6 and libX11-xcb1.
%prep
%setup -q
# make legal department happy (Bug #153744)
test -f nls/ja.U90/XLC_LOCALE.pre && exit 1
test -f nls/ja.S90/XLC_LOCALE.pre && exit 1
%patch0
%patch1
%patch2
%build
%configure \
--disable-silent-rules \
--docdir=%{_docdir}/%{name} \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Some files are empty/missing for some UTF-8 locales
pushd "%{buildroot}%{_datadir}/X11/locale"
for i in *.UTF-8; do
echo "$i"
if [ "$i" == "en_US.UTF-8" ]; then
continue
fi
touch "$i/Compose" "$i/XI18N_OBJS"
test -s "$i/Compose" || ln -fns ../en_US.UTF-8/Compose "$i"
test -s "$i/XI18N_OBJS" || ln -fns ../en_US.UTF-8/XI18N_OBJS "$i"
test -s "$i/XLC_LOCALE" || ln -fns ../en_US.UTF-8/XLC_LOCALE "$i"
done
popd
%fdupes %{buildroot}/%{_mandir}
%post -n libX11-6 -p /sbin/ldconfig
%postun -n libX11-6 -p /sbin/ldconfig
%post -n libX11-xcb1 -p /sbin/ldconfig
%postun -n libX11-xcb1 -p /sbin/ldconfig
%files -n libX11-6
%{_libdir}/libX11.so.6*
%files -n libX11-xcb1
%{_libdir}/libX11-xcb.so.1*
%files data
%{_datadir}/X11
%files devel
%{_includedir}/X11/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_docdir}/%{name}
%{_mandir}/man?/*
%changelog