File xorg-x11-proto-devel.spec of Package xorg-x11-proto-devel

#
# spec file for package xorg-x11-proto-devel (Version 7.4)
#
# Copyright (c) 2009 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:  python-base
Url:            http://xorg.freedesktop.org/
Version:        7.4
Release:        19
License:        GPL v2 or later ; 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.3.0.tar.bz2
Source1:        bigreqsproto-X11R7.0-1.0.2.tar.bz2
Source2:        compositeproto-0.4.tar.bz2
Source3:        damageproto-1.1.0.tar.bz2
Source4:        dmxproto-X11R7.0-2.2.2.tar.bz2
Source5:        fixesproto-X11R7.1-4.0.tar.bz2
Source6:        fontcacheproto-X11R7.0-0.1.2.tar.bz2
Source7:        fontsproto-X11R7.0-2.0.2.tar.bz2
Source8:        glproto-1.4.10.tar.bz2
Source9:        inputproto-1.5.1.tar.bz2
Source10:       kbproto-1.0.3.tar.bz2
Source11:       printproto-1.0.4.tar.bz2
Source12:       randrproto-1.3.0.tar.bz2
Source13:       recordproto-X11R7.0-1.13.2.tar.bz2
Source14:       renderproto-0.11.tar.bz2
Source15:       resourceproto-X11R7.0-1.0.2.tar.bz2
Source16:       scrnsaverproto-X11R7.1-1.1.0.tar.bz2
Source17:       trapproto-X11R7.0-3.4.3.tar.bz2
Source18:       util-macros-1.2.2.tar.bz2
Source19:       videoproto-X11R7.0-2.2.2.tar.bz2
Source20:       windowswmproto-X11R7.0-1.0.3.tar.bz2
Source21:       xcmiscproto-X11R7.0-1.1.2.tar.bz2
Source22:       xextproto-7.0.5.tar.bz2
Source23:       xf86bigfontproto-X11R7.0-1.1.2.tar.bz2
Source24:       xf86dgaproto-2.0.3.tar.bz2
Source25:       xf86driproto-2.0.4.tar.bz2
Source26:       xf86miscproto-X11R7.0-0.9.2.tar.bz2
Source27:       xf86rushproto-X11R7.0-1.1.2.tar.bz2
Source28:       xf86vidmodeproto-X11R7.0-2.2.2.tar.bz2
Source29:       xineramaproto-X11R7.0-1.1.2.tar.bz2
Source30:       xproto-7.0.15.tar.bz2
Source31:       xproxymanagementprotocol-X11R7.0-1.0.2.tar.bz2
Source32:       evieext-X11R7.0-1.0.2.tar.bz2
Source33:       xcb-proto-1.5.tar.bz2
Source34:       libpthread-stubs-0.1.tar.bz2
Source35:       vncproto-20070501.tar.bz2
Source36:       xcliplistproto-20070501.tar.bz2
Source37:       dri2proto-2.1.tar.bz2
Requires:       glibc-devel

%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" && autoreconf -fi
    ./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
                --prefix=/usr --libdir=%{_libdir}
    make
    make install DESTDIR=$RPM_BUILD_ROOT
  popd
done
# Bug 260745
mv $RPM_BUILD_ROOT/usr/share/doc/*/*.txt .
rmdir $RPM_BUILD_ROOT/usr/share/doc/*

%clean
rm -rf "$RPM_BUILD_ROOT"

%pre
test -L usr/include/X11 && rm usr/include/X11
exit 0

%files
%defattr(-,root,root)
%doc *.txt
%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/aclocal/*.m4
/usr/share/xcb/

%changelog
openSUSE Build Service is sponsored by