File xorg-x11-libX11-unstable-devel.spec of Package xorg-x11-libX11-unstable-devel
#
# spec file for package xorg-x11-libX11-unstable-devel (Version 7.3.99)
#
# 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-unstable-devel
%define xcb 1
%define dirsuffix 1.1.99.1
BuildRequires: fdupes pkgconfig xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-proto-unstable-devel xorg-x11-xtrans-devel zlib-devel
#!BuildIgnore: xorg-x11-proto-devel
%if %xcb
BuildRequires: xorg-x11-libxcb-unstable-devel
#!BuildIgnore: xorg-x11-libxcb-devel
%endif
PreReq: coreutils
Url: http://xorg.freedesktop.org/
Version: 7.3.99
Release: 2
License: X11/MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/X11
Conflicts: xorg-x11-libX11-devel < %{version}
Summary: X.Org X11 library (unstable devel)
Source: libX11-%{dirsuffix}.tar.bz2
Requires: xorg-x11-proto-unstable-devel xorg-x11-xtrans-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel
%if %xcb
Requires: xorg-x11-libxcb-unstable-devel
%endif
PreReq: coreutils
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
%description
This package contains the X.Org X11 library.
THIS PACKAGE IS NOT MEANT FOR GENERAL DEVELOPMENT.
This package provides static libraries for some specific packages that
require not-yet-released version of X11.
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
%build
autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--disable-shared --enable-static \
--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
# we don't want the local files. They are with libX11
rm -fr $RPM_BUILD_ROOT/usr/share/X11
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf "$RPM_BUILD_ROOT"
%pre
test -L usr/lib/X11 && rm usr/lib/X11
test -L usr/include/X11 && rm usr/include/X11
exit 0
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%ifnarch ia64 ppc s390 %ix86
%dir /usr/%{_lib}/X11
%endif
/usr/%{_lib}/X11/*
/usr/include/X11/*.h
/usr/%{_lib}/*.a
/usr/%{_lib}/*.la
/usr/%{_lib}/pkgconfig/*.pc
%{_mandir}/man3/*
%changelog
* Wed Sep 10 2008 hfiguiere@suse.de
- Initial release.