Group :: System/Libraries
RPM: libX11
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define xorgversion 7.3
%define xorgold xorg-x11
%define xf86 XFree86
%def_disable static
%def_disable ipv6
%def_disable loadable_i18n
%def_disable xlocaledir
Name: libX11
Version: 1.1.4
Release: alt5.M41.1
Serial: 3
Summary: X11 Library
License: MIT/X11
Group: System/Libraries
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>
PreReq: filesystem > 2.3.1-alt1
Requires: %name-locales = %version-%release
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires: libXdmcp-devel libXau-devel xorg-xtrans-devel xorg-util-macros libxcb-devel
%description
X11 Library
%package devel
Summary: X11 Libraries and Header Files
Group: Development/C
PreReq: xorg-x11-proto-devel
Requires: %name = %version-%release libXdmcp-devel libXau-devel libxcb-devel
Conflicts: XFree86-devel < 4.4 xorg-x11-devel <= 6.9.0
%description devel
%name-devel contains the libraries and header files needed to
develop programs which make use of %name.
%package locales
Summary: Xorg locales
Group: System/Internationalization
BuildArch: noarch
Obsoletes: %xf86-locales %xorgold-locales
Provides: %xf86-locales = 4.4 %xorgold-locales = %xorgversion-%release
Conflicts: %name <= 1.1.1-alt2
%description locales
This package contains set of Xorg locales.
%package ccache
Summary: X.Org compose cache
Group: System/Internationalization
BuildArch: noarch
Requires: %name-locales
%description ccache
Cache for X.Org compose files
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
%{subst_enable ipv6} \
%{subst_enable static} \
%{subst_enable loadable_i18n} \
%{subst_enable xlocaledir} \
--with-xcb
%make_build
%install
%make DESTDIR=%buildroot install
%if_enabled loadable_i18n
rm -f %buildroot%_libdir/X11/locale/common/*.la
%endif
mkdir -p %buildroot%_cachedir/libx11/compose
install -m644 compose-cache/* %buildroot%_cachedir/libx11/compose/
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS COPYING NEWS README
%_libdir/*.so.*
%if_enabled loadable_i18n
%_libdir/X11/locale
%endif
%dir %_datadir/X11
%_datadir/X11/X*
%files devel
%_includedir/X11/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_man3dir/*
%files locales
%_datadir/X11/locale
%files ccache
%_cachedir/libx11
%changelog
…
Full changelog you can see here
%define xorgold xorg-x11
%define xf86 XFree86
%def_disable static
%def_disable ipv6
%def_disable loadable_i18n
%def_disable xlocaledir
Name: libX11
Version: 1.1.4
Release: alt5.M41.1
Serial: 3
Summary: X11 Library
License: MIT/X11
Group: System/Libraries
Url: http://xorg.freedesktop.org
Packager: Valery Inozemtsev <shrek at altlinux.ru>
PreReq: filesystem > 2.3.1-alt1
Requires: %name-locales = %version-%release
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires: libXdmcp-devel libXau-devel xorg-xtrans-devel xorg-util-macros libxcb-devel
%description
X11 Library
%package devel
Summary: X11 Libraries and Header Files
Group: Development/C
PreReq: xorg-x11-proto-devel
Requires: %name = %version-%release libXdmcp-devel libXau-devel libxcb-devel
Conflicts: XFree86-devel < 4.4 xorg-x11-devel <= 6.9.0
%description devel
%name-devel contains the libraries and header files needed to
develop programs which make use of %name.
%package locales
Summary: Xorg locales
Group: System/Internationalization
BuildArch: noarch
Obsoletes: %xf86-locales %xorgold-locales
Provides: %xf86-locales = 4.4 %xorgold-locales = %xorgversion-%release
Conflicts: %name <= 1.1.1-alt2
%description locales
This package contains set of Xorg locales.
%package ccache
Summary: X.Org compose cache
Group: System/Internationalization
BuildArch: noarch
Requires: %name-locales
%description ccache
Cache for X.Org compose files
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
%{subst_enable ipv6} \
%{subst_enable static} \
%{subst_enable loadable_i18n} \
%{subst_enable xlocaledir} \
--with-xcb
%make_build
%install
%make DESTDIR=%buildroot install
%if_enabled loadable_i18n
rm -f %buildroot%_libdir/X11/locale/common/*.la
%endif
mkdir -p %buildroot%_cachedir/libx11/compose
install -m644 compose-cache/* %buildroot%_cachedir/libx11/compose/
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS COPYING NEWS README
%_libdir/*.so.*
%if_enabled loadable_i18n
%_libdir/X11/locale
%endif
%dir %_datadir/X11
%_datadir/X11/X*
%files devel
%_includedir/X11/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_man3dir/*
%files locales
%_datadir/X11/locale
%files ccache
%_cachedir/libx11
%changelog
…
Full changelog you can see here