File xorg-x11-proto-devel.spec of Package xorg-x11-proto-devel
#
# spec file for package xorg-x11-proto-devel
#
# Copyright (c) 2012 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/
#
%bcond_with VNC
%define xproto xproto-7.0.23
%define xcbp xcb-proto-1.8
%define vncp vncproto-20070501
Name: xorg-x11-proto-devel
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python-base
BuildRequires: xmlto
# manual provides to avoid dependency loop
# Provides: pkgconfig(applewmproto) pkgconfig(bigreqsprot) pkgconfig(compositeproto) pkgconfig(damageproto) pkgconfig(dmxproto) pkgconfig(dri2proto) pkgconfig(evieext) pkgconfig(fixesproto) pkgconfig(fontcacheproto) pkgconfig(fontsproto) pkgconfig(glproto) pkgconfig(inputproto) pkgconfig(kbproto) pkgconfig(libpthread-stubs) pkgconfig(printproto) pkgconfig(randrproto) pkgconfig(recordproto) pkgconfig(renderproto) pkgconfig(resourceproto) pkgconfig(scrnsaveproto) pkgconfig(trapproto) pkgconfig(util-macros) pkgconfig(videoproto) pkgconfig(vncproto) pkgconfig(windowswmproto) pkgconfig(xcb-proto) pkgconfig(xcliplistproto) pkgconfig(xcmiscproto) pkgconfig(x86bigfontproto) pkgconfig(xf86dgaproto) pkgconfig(xf86driproto) pkgconfig(xf86miscproto) pkgconfig(xf86rushproto) pkgconfig(xf86vidmodeproto) pkgconfig(xineramaproto) pkgconfig(xproto) pkgconfig(xproxymanagementprotocol)
Url: http://xorg.freedesktop.org/
Version: 7.6
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Header files and Libraries mandatory for X11 Development
License: MIT
Group: Development/Libraries/X11
Source0: applewmproto-1.4.2.tar.bz2
Source1: bigreqsproto-1.1.2.tar.bz2
Source2: compositeproto-0.4.2.tar.bz2
Source3: damageproto-1.2.1.tar.bz2
Source4: dmxproto-2.3.1.tar.bz2
Source5: fixesproto-5.0.tar.bz2
Source6: fontcacheproto-0.1.3.tar.bz2
Source7: fontsproto-2.1.2.tar.bz2
Source8: glproto-1.4.16.tar.bz2
Source9: inputproto-2.2.tar.bz2
Source10: kbproto-1.0.6.tar.bz2
Source11: printproto-1.0.5.tar.bz2
Source12: randrproto-1.4.0.tar.bz2
Source13: recordproto-1.14.2.tar.bz2
Source14: renderproto-0.11.1.tar.bz2
Source15: resourceproto-1.2.0.tar.bz2
Source16: scrnsaverproto-1.2.2.tar.bz2
Source17: trapproto-X11R7.0-3.4.3.tar.bz2
Source18: util-macros-1.17.tar.bz2
Source19: videoproto-2.3.1.tar.bz2
Source20: windowswmproto-1.0.4.tar.bz2
Source21: xcmiscproto-1.2.2.tar.bz2
Source22: xextproto-7.2.1.tar.bz2
Source23: xf86bigfontproto-1.2.0.tar.bz2
Source24: xf86dgaproto-2.1.tar.bz2
Source25: xf86driproto-2.1.1.tar.bz2
Source26: xf86miscproto-0.9.3.tar.bz2
Source27: xf86rushproto-X11R7.0-1.1.2.tar.bz2
Source28: xf86vidmodeproto-2.3.1.tar.bz2
Source29: xineramaproto-1.2.1.tar.bz2
Source30: %{xproto}.tar.bz2
Source31: xproxymanagementprotocol-1.0.3.tar.bz2
Source32: evieext-1.1.1.tar.bz2
Source33: %{xcbp}.tar.bz2
Source34: libpthread-stubs-0.3.tar.bz2
%if %{with VNC}
Source35: %{vncp}.tar.bz2
%endif
Source36: xcliplistproto-20070501.tar.bz2
Source37: dri2proto-2.8.tar.bz2
Requires: glibc-devel
Requires: python-xcb-proto-devel = %{version}
%description
Header files and libraries needed
to communicate directly with X server and extensions,
including the XML-XCB extension, a full replacement for the original protocol.
%package -n python-xcb-proto-devel
Summary: Python libraries mandatory for XML-XCB Development
Group: Development/Libraries/X11
Requires: python-base = %{py_ver}
%description -n python-xcb-proto-devel
Language-independent Python
libraries that used to parse an XML description and create objects
used by Python code generators in individual language bindings.
%prep
%setup -T -c %{name}
for i in "$RPM_SOURCE_DIR"/*.tar.bz2
do
%if %{without VNC}
[[ "$i" == "$RPM_SOURCE_DIR"/%{vncp}.tar.bz2 ]] ||
%endif
tar xjf $i
done
mkdir XML-XCB
ln -tXML-XCB %{xcbp}/COPYING %{xcbp}/README %{xcbp}/NEWS
%build
pushd util-macros-*
autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--prefix=/usr --libdir=%{_libdir}
export PKG_CONFIG_PATH=$PWD
make
cp xorg-macros.m4 ..
popd
export ACLOCAL="aclocal --force -I /usr/share/aclocal -I$PWD"
for ac in */configure.ac
do dir="${ac%/*}"
pushd "${dir}"
# Newer packages need this
autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--prefix=/usr --libdir=%{_libdir}
make
popd
done
%install
for ac in */Makefile
do dir="${ac%/*}"
pushd "${dir}"
make install "DESTDIR=$RPM_BUILD_ROOT"
popd
done
rm -f $RPM_BUILD_ROOT/usr/share/util-macros/INSTALL
%if %suse_version > 1110
%fdupes -s $RPM_BUILD_ROOT/%python_sitelib/xcbgen/
%else
%fdupes -s $RPM_BUILD_ROOT/usr/%{_lib}/python2.6/site-packages/xcbgen/
%endif
%clean
rm -rf "$RPM_BUILD_ROOT"
%pre
test -L usr/include/X11 && rm usr/include/X11
exit 0
%files
%defattr(-,root,root)
%doc /usr/share/doc/*
%dir /usr/include/GL
%dir /usr/include/GL/internal
%dir /usr/include/X11/PM
%dir /usr/include/X11/dri
%dir /usr/include/X11/extensions
%dir /usr/include/X11/fonts
/usr/include/GL/*.h
/usr/include/GL/internal/*.h
/usr/include/X11/*.h
/usr/include/X11/PM/*.h
/usr/include/X11/dri/*.h
/usr/include/X11/extensions/*.h
/usr/include/X11/fonts/*.h
/usr/%{_lib}/pkgconfig/*.pc
/usr/share/pkgconfig/*.pc
/usr/share/aclocal/*.m4
/usr/share/man/man7/Xprint.7%{?ext_man}
/usr/share/xcb/
%doc %{xproto}/COPYING %{xproto}/AUTHORS XML-XCB %{xcbp}/doc/xml-xcb.txt
%files -n python-xcb-proto-devel
%defattr(-,root,root)
%if %suse_version > 1110
%python_sitelib/xcbgen/
%else
/usr/%{_lib}/python2.6/site-packages/xcbgen/
%endif
%doc %{xcbp}/COPYING
%changelog