Group :: Sistema/Bibliotecas
RPM: libX11
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define xorgversion 7.4
%define xorgold xorg-x11
%define xf86 XFree86
%def_disable ipv6
%def_disable loadable_i18n
%def_disable xlocaledir
Name: libX11
Version: 1.2.1
Release: alt1
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: libxcb-devel xorg-inputproto-devel xorg-kbproto-devel xorg-xf86bigfontproto-devel
BuildRequires: xorg-xextproto-devel xorg-xproto-devel xorg-xtrans-devel xorg-util-macros
%description
X11 Library
%package devel
Summary: X11 Libraries and Header Files
Group: Development/C
Requires: %name = %version-%release
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 loadable_i18n} \
%{subst_enable xlocaledir} \
--with-xcb \
--disable-static
%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/
%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
…
Todas as alterações você pod ver aqui
%define xorgold xorg-x11
%define xf86 XFree86
%def_disable ipv6
%def_disable loadable_i18n
%def_disable xlocaledir
Name: libX11
Version: 1.2.1
Release: alt1
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: libxcb-devel xorg-inputproto-devel xorg-kbproto-devel xorg-xf86bigfontproto-devel
BuildRequires: xorg-xextproto-devel xorg-xproto-devel xorg-xtrans-devel xorg-util-macros
%description
X11 Library
%package devel
Summary: X11 Libraries and Header Files
Group: Development/C
Requires: %name = %version-%release
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 loadable_i18n} \
%{subst_enable xlocaledir} \
--with-xcb \
--disable-static
%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/
%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
…
Todas as alterações você pod ver aqui