File xorg-x11-libX11.spec of Package xorg-x11-libX11
#
# spec file for package xorg-x11-libX11 (Version 7.4)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: xorg-x11-libX11
%define xcb 1
%define dirsuffix 1.1.5
BuildRequires: fdupes pkgconfig xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-proto-devel xorg-x11-xtrans-devel zlib-devel
%if %xcb
BuildRequires: xorg-x11-libxcb-devel
%endif
PreReq: coreutils
Url: http://xorg.freedesktop.org/
Version: 7.4
Release: 1
License: X11/MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/Libraries
Provides: xorg-x11-libs:/usr/X11R6/%{_lib}/libX11.so.6
Summary: X.Org X11 library
Source: libX11-%{dirsuffix}.tar.bz2
%if %suse_version <= 1010
Source1: xorg-x11-libX11.sh
Source2: xorg-x11-libX11.csh
%endif
Patch: bug153744.diff
Patch1: p_XFree86-4.2.0-i18n-xlib-20020322.diff.bz2
Patch2: p_xlc-locale.diff
Patch3: p_xlib-threadsafe.diff
Patch4: p_new-locales.diff
Patch5: p_xauth.diff
Patch6: p_sr_CS-compose.diff
Patch7: p_khmer-compose.diff
Patch8: p_khmer-locale.diff
Patch9: p_xlib_skip_ext_env.diff
Patch10: bug-239698_libx11.diff
Patch13: bug-221326-xim-sync.patch
Patch14: bug356556-bad_array_index.diff
Patch15: en-locales.diff
Patch16: xkb-rangefix.diff
Patch17: Xcms.diff
%description
This package contains the X.Org X11 library.
Authors:
--------
Bob Scheifler
Bruno Haible
Hideki Hiura
Hiroyuki Miyamoto
Holger Veit
Jim Gettys
Katsuhisi Yano
Kazunori Nishihara
Keith Packard
Li Yuhong
Sebastien Marineau
Seiji Kuwari
Shigeru Yamada
Stephen Gildea
Takashi Fujiwara
Warren Turkal
%package devel
License: X11/MIT
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/X11
Provides: xorg-x11-devel:/usr/X11R6/%{_lib}/libX11.so
Requires: xorg-x11-proto-devel xorg-x11-xtrans-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel %{name} = %{version}
%if %xcb
Requires: xorg-x11-libxcb-devel
%endif
PreReq: coreutils
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Bob Scheifler
Bruno Haible
Hideki Hiura
Hiroyuki Miyamoto
Holger Veit
Jim Gettys
Katsuhisi Yano
Kazunori Nishihara
Keith Packard
Li Yuhong
Sebastien Marineau
Seiji Kuwari
Shigeru Yamada
Stephen Gildea
Takashi Fujiwara
Warren Turkal
%prep
%setup -q -n libX11-%{dirsuffix}
# 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
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10 -p1
%patch13 -p1
%patch14 -p0
%patch15 -p0
%patch16 -p0
%patch17 -p0
%build
autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
%if %xcb
--with-xcb \
%else
--without-xcb \
%endif
--datadir=/usr/share
# currently broken since xlcUTF-8 plugin is not built
#--enable-loadable-i18n
make %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%if %suse_version <= 1010
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -m 644 $RPM_SOURCE_DIR/%name.{csh,sh} $RPM_BUILD_ROOT/etc/profile.d
%endif
# Some files are empty/missing for some UTF-8 locales
pushd $RPM_BUILD_ROOT/usr/share/X11/locale
for i in *.UTF-8; do
echo $i
if [ "$i" != "en_US.UTF-8" ]; then
touch $i/Compose $i/XI18N_OBJS
test -s $i/Compose || ln -snf ../en_US.UTF-8/Compose $i
test -s $i/XI18N_OBJS || ln -snf ../en_US.UTF-8/XI18N_OBJS $i
test -s $i/XLC_LOCALE || ln -snf ../en_US.UTF-8/XLC_LOCALE $i
fi
done
popd
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf "$RPM_BUILD_ROOT"
%pre
test -L usr/lib/X11 && rm usr/lib/X11
exit 0
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%pre devel
test -L usr/include/X11 && rm usr/include/X11
exit 0
%files
%defattr(-,root,root)
%if %suse_version <= 1010
/etc/profile.d/%name.csh
/etc/profile.d/%name.sh
%endif
/usr/%{_lib}/*.so.*
/usr/share/X11/
%files devel
%defattr(-,root,root)
/usr/include/X11/*.h
/usr/%{_lib}/*.a
/usr/%{_lib}/*.la
/usr/%{_lib}/*.so
/usr/%{_lib}/pkgconfig/*.pc
%{_mandir}/man3/*
%changelog
* Thu Sep 11 2008 sndirsch@suse.de
- bumped release number to 7.4
* Fri Sep 05 2008 sndirsch@suse.de
- libX11 1.1.5
* This is just an i18n and bugfix release, essentially. Most of
the fixes bar James's most recent ones have been in 1.1 branch
for a while, and the rest were just cherry-picked from master.
* Sat Aug 30 2008 sndirsch@suse.de
- moved Xcms.txt to /usr/share/X11 (bnc #419548)
* Wed Aug 27 2008 sndirsch@suse.de
- Xcms.txt apparently needs to be in /usr/lib/X11 (bnc #419548)
* Wed May 14 2008 sndirsch@suse.de
- xkb-rangefix.diff
* fixed range in _XKbWriteKeyExplicit (bnc #369263)
- fixed rpmlint warnings
* Fri May 09 2008 sndirsch@suse.de
- en-locales.diff
* added missing support for en_XX.UTF-8 locales (bnc #388711)
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Fri Mar 07 2008 sndirsch@suse.de
- libX11 1.1.4
* Mon Feb 25 2008 sndirsch@suse.de
- using "-fno-tree-vrp" as workaround for gcc miscompilation no
longer required (bnc #355496)
* Wed Feb 13 2008 sndirsch@suse.de
- added temporary workaround (-fno-tree-vrp) to fix gcc
miscompilation (bnc#355496)
* Tue Jan 29 2008 sndirsch@suse.de
- bug356556-bad_array_index.diff
* fixed copy & paste error, which resulted ina bad array index
compiler warning (Bug #356556)
* Wed Jan 02 2008 crrodriguez@suse.de
- fix library-without-ldconfig-* error
* Fri Oct 26 2007 sndirsch@suse.de
- p_khmer-compose.diff/p_khmer-locale.diff
* added missing bits (Bug #335944, comment #17)
* Sat Sep 29 2007 sndirsch@suse.de
- bumped version to 7.3
* Thu Aug 02 2007 sndirsch@suse.de
- update to release 1.1.3
* libX11 1.1.3 is a maintenance release that fixes a bug
(introduced with libX11 1.1.2) which broke the
XGetMotionEvents function.
* Mon Jun 11 2007 sndirsch@suse.de
- libX11-1.1.2-fix-XGetMotionEvents.patch:
* fix argument orders (X.Org Bug #11222)
* Mon Jun 04 2007 sndirsch@suse.de
- update to release 1.1.2:
* A variety of bug fixes, new and better documentation, etc.
- obsoletes bug-252958_libX11.diff, bug-248332_lcDB.diff
* Thu May 10 2007 sndirsch@suse.de
- create symlinks instead of copies for empty/missing files of some
UTF-8 locales (Bug #273157)
* Thu May 03 2007 mfabian@suse.de
- Bugzilla #221326: add Egbert's XIM sync patch.
* Thu Apr 05 2007 sndirsch@suse.de
- bug-248332_lcDB.diff:
* fixes a bad pointer calculation type (Bug #248332)
* Fri Mar 30 2007 sndirsch@suse.de
- added zlib-devel to Buildrequires
* Mon Mar 26 2007 sndirsch@suse.de
- bug-252958_libX11.diff:
* Buffer overflow in XGetPixel() (Bug #252958)
* Thu Feb 22 2007 sndirsch@suse.de
- build with libxcb again
* Tue Jan 30 2007 sndirsch@suse.de
- bug-239698_libx11.diff:
* XIM (with SCIM) commits first character after FocusIn
immediately (Bug #239698)
* Sat Dec 30 2006 sndirsch@suse.de
- force building without libxcb (still was built against it by
accident)
* Sat Dec 16 2006 sndirsch@suse.de
- no longer build libX11 against libxcb
* Sun Dec 03 2006 sndirsch@suse.de
- update to release 1.1.1
- build libX11 against libxcb
* Sat Nov 25 2006 sndirsch@suse.de
- remove nls/{ja.U90,ja.S90}/XLC_LOCALE.pre from sources; no longer
mark sources as NoSource in specfile (Bugs #200471, #153744)
* Wed Oct 18 2006 sndirsch@suse.de
- imLcIm.c.diff:
* no longer twice-open the compose file in Xinput setup
* Sun Sep 03 2006 dmueller@suse.de
- build parallel
* Sun Aug 20 2006 sndirsch@suse.de
- install profile.d files only for SUSE <= 10.1
- Compose and XI18N_OBJS files are missing or empty for some UTF-8
locales; use the ones for en_US.UTF-8
* Mon Aug 07 2006 sndirsch@suse.de
- p_khmer-compose.diff:
* added required compose entries for Khmer (Bug #143348)
- p_khmer-locale.diff:
* km_KH locale support (Bug #144397)
- p_xlib_skip_ext_env.diff:
* added support for disabling extensions through environment
variables (Bug #167317)
* Sun Aug 06 2006 sndirsch@suse.de
- p_XFree86-4.2.0-i18n-xlib-20020322.diff:
* gb18030 patches from SUN
- p_new-locales.diff:
* support for new indic/african locales (Bug #98262)
- p_xauth.diff:
* Let X authorization be tolerant to hostname changes (Bug #98627)
- p_xlc-locale.diff:
* fixes strange font mixups, when fontsets are still used (#74299)
- p_xlib-threadsafe.diff:
* don't have the input filter wrapped by the display lock (Bug #55962)
- p_sr_CS-compose.diff:
* Serbian specific compose table entries (Bug #95813)
* Wed Aug 02 2006 sndirsch@suse.de
- fix setup line
* Fri Jul 28 2006 sndirsch@suse.de
- use "-fno-strict-aliasing"
* Thu Jul 27 2006 sndirsch@suse.de
- use $RPM_OPT_FLAGS
- remove existing /usr/include/X11 symlink in %%pre
* Tue Jul 25 2006 sndirsch@suse.de
- added profile scripts to set XKEYSYMDB/XNLSPATH accordingly
* Mon Jul 24 2006 sndirsch@suse.de
- fixed locale support
* Fri Jul 21 2006 sndirsch@suse.de
- no longer install ja.S90/ja.U90 XLC_LOCALE files; declare libX11
sources as NoSource to make our legal department happy
(Bug #153744)
* Thu Jul 20 2006 sndirsch@suse.de
- removed usr/lib/X11 directory from filelist, since it conflicts
with filesystem package
* Thu Jul 20 2006 sndirsch@suse.de
- added /usr/%%{_lib}/X11 to %%files to fix build
* Thu Jun 22 2006 sndirsch@suse.de
- created package