File xorg-x11-proto-devel.spec of Package xorg-x11-proto-devel
#
# spec file for package xorg-x11-proto-devel
#
# Copyright (c) 2011 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-proto-devel
BuildRequires: fdupes pkg-config python-base
# 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: 24
License: GPLv2+ ; MIT License (or similar)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/X11
Summary: Include Files and Libraries mandatory for X11 Development
Source0: applewmproto-1.4.1.tar.bz2
Source1: bigreqsproto-1.1.1.tar.bz2
Source2: compositeproto-0.4.2.tar.bz2
Source3: damageproto-1.2.1.tar.bz2
Source4: dmxproto-2.3.tar.bz2
Source5: fixesproto-5.0.tar.bz2
Source6: fontcacheproto-0.1.3.tar.bz2
Source7: fontsproto-2.1.1.tar.bz2
Source8: glproto-1.4.14.tar.bz2
Source9: inputproto-2.0.1.tar.bz2
Source10: kbproto-1.0.5.tar.bz2
Source11: printproto-1.0.4.tar.bz2
Source12: randrproto-1.3.2.tar.bz2
Source13: recordproto-1.14.1.tar.bz2
Source14: renderproto-0.11.1.tar.bz2
Source15: resourceproto-1.1.1.tar.bz2
Source16: scrnsaverproto-1.2.1.tar.bz2
Source17: trapproto-X11R7.0-3.4.3.tar.bz2
Source18: util-macros-1.15.0.tar.bz2
Source19: videoproto-2.3.1.tar.bz2
Source20: windowswmproto-1.0.4.tar.bz2
Source21: xcmiscproto-1.2.1.tar.bz2
Source22: xextproto-7.2.0.tar.bz2
Source23: xf86bigfontproto-1.2.0.tar.bz2
Source24: xf86dgaproto-2.1.tar.bz2
Source25: xf86driproto-2.1.0.tar.bz2
Source26: xf86miscproto-0.9.3.tar.bz2
Source27: xf86rushproto-X11R7.0-1.1.2.tar.bz2
Source28: xf86vidmodeproto-2.3.tar.bz2
Source29: xineramaproto-1.2.tar.bz2
Source30: xproto-7.0.22.tar.bz2
Source31: xproxymanagementprotocol-1.0.3.tar.bz2
Source32: evieext-1.1.0.tar.bz2
Source33: xcb-proto-1.6.tar.bz2
Source34: libpthread-stubs-0.3.tar.bz2
Source35: vncproto-20070501.tar.bz2
Source36: xcliplistproto-20070501.tar.bz2
Source37: dri2proto-2.6.tar.bz2
Requires: glibc-devel python-base = %{py_ver}
%description
This package contains all necessary include files and libraries needed
to develop X11 applications that require these.
Authors:
--------
Bob Scheifler
Dave Rosenthal
Jim Gettys
Keith Packard
Phil Karlton
Raymond Drewry
Ron Newman
Scott McGregor
Susan Angebrandt
Todd Newman
%prep
%setup -T -c %{name}
for i in $RPM_SOURCE_DIR/*.tar.bz2; do tar xjf $i; done
%build
%install
pushd util-macros-*
#autoreconf -fi
./configure --prefix=/usr --libdir=%{_libdir}
make
make install DESTDIR=$RPM_BUILD_ROOT
popd
export ACLOCAL="aclocal --force -I /usr/share/aclocal -I $RPM_BUILD_ROOT/usr/share/aclocal"
for dir in $(ls */configure.ac); do
pushd $(dirname $dir)
echo $dir | grep -q -E "vncproto|xcliplistproto|xcb-proto" && autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--prefix=/usr --libdir=%{_libdir}
make
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
%if %suse_version > 1110
%python_sitelib/xcbgen/
%else
/usr/%{_lib}/python2.6/site-packages/xcbgen/
%endif
/usr/%{_lib}/pkgconfig/*.pc
/usr/share/pkgconfig/*.pc
/usr/share/aclocal/*.m4
/usr/share/xcb/
%changelog