File xorg-x11-util-devel.spec of Package xorg-x11-util-devel
#
# spec file for package xorg-x11-util-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-util-devel
BuildRequires: pkgconfig xorg-x11-proto-devel
Url: http://xorg.freedesktop.org/
Version: 7.6
Release: 11
License: MIT License (or similar)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/X11
Requires: xorg-x11-proto-devel
Summary: Include Files and Libraries mandatory for X11 Development
Source: gccmakedep-X11R7.1-1.0.2.tar.bz2
Source1: imake-1.0.4.tar.bz2
Source2: xorg-cf-files-1.0.3.tar.bz2
Source3: lndir-1.0.2.tar.bz2
Source4: makedepend-1.0.3.tar.bz2
Source5: xorg-sgml-doctools-1.6.tar.bz2
%description
This package contains all necessary include files and libraries needed
to develop X11 applications that require these.
%define _configdir %{_datadir}/X11/config
%prep
%setup -c -T -a 0 -a 1 -a 2 -a 3 -a 4 -a 5
pushd xorg-cf-files-*
cat > host.def << EOF
#define ConfigDir %_configdir
#define XAppLoadDir /usr/share/X11/app-defaults
#define UseSeparateConfDir NO
#define ManPath /usr/share/man
%ifarch ppc64 s390x x86_64 sparc64
#define ModuleDir /usr/lib64/xorg/modules
%else
#define ModuleDir /usr/lib/xorg/modules
%endif
#ifdef i386Architecture
#undef DefaultGcc2i386Opt
#define DefaultGcc2i386Opt $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef MipsArchitecture
#undef DefaultGcc2MipsOpt
#define DefaultGcc2MipsOpt $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef PpcArchitecture
#undef DefaultGcc2PpcOpt
#define DefaultGcc2PpcOpt $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef Ppc64Architecture
#undef DefaultGcc2Ppc64Opt
#define DefaultGcc2Ppc64Opt $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef AMD64Architecture
#undef DefaultGcc2AMD64Opt
#define DefaultGcc2AMD64Opt $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef s390xArchitecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#ifdef ia64Architecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags $RPM_OPT_FLAGS -fno-strict-aliasing
#endif
#if defined(SparcArchitecture) || defined(Sparc64Architecture)
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags $RPM_OPT_FLAGS -fno-strict-aliasing
# undef HaveLib64
#if defined(Sparc64Architecture)
# define HaveLib64 YES
#else
# define HaveLib64 NO
#endif
#endif
EOF
popd
%build
for dir in *; do
pushd $dir
#autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
--prefix=/usr \
--libdir=%{_libdir} \
--with-config-dir=%_configdir \
--mandir=%{_datadir}/man
make %{?jobs:-j%jobs};
popd
done
%install
for dir in *; do
make -C $dir install DESTDIR=$RPM_BUILD_ROOT
done
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%dir %{_datadir}/X11
%dir %{_datadir}/sgml/X11
/usr/bin/*
%{_datadir}/X11/config
%{_datadir}/sgml/X11/defs.ent
%{_datadir}/sgml/X11/xorg.css
%{_datadir}/sgml/X11/xorg.xsl
%{_mandir}/man1/*
%{_datadir}/pkgconfig/*.pc
%changelog