File xorg-x11-util-devel.spec of Package xorg-x11-util-devel
#
# spec file for package xorg-x11-util-devel (Version 7.4)
#
# Copyright (c) 2008 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.4
Release: 1
License: X11/MIT
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-X11R7.1-1.0.2.tar.bz2
Source2: xorg-cf-files-X11R7.1-1.0.2.tar.bz2
Source3: lndir-X11R7.0-1.0.1.tar.bz2
Source4: makedepend-1.0.1.tar.bz2
Source5: xorg-sgml-doctools-1.2.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
#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
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
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
%{_mandir}/man1/*
%changelog
* Thu Sep 11 2008 sndirsch@suse.de
- bumped release number to 7.4
* Tue Oct 23 2007 sndirsch@suse.de
- added xorg-sgml-doctools 1.2 (Bug #335450)
* Sat Sep 29 2007 sndirsch@suse.de
- bumped version to 7.3
* Thu Mar 22 2007 sndirsch@suse.de
- updated makedepend to release 1.0.1
* Coverity #925: Pointer "file" dereferenced before NULL check
* And packaged using new util macros.
* Thu Oct 26 2006 sndirsch@suse.de
- set version to 7.2 in specfile
* Fri Jul 28 2006 sndirsch@suse.de
- use "-fno-strict-aliasing"
* Wed Jul 26 2006 sndirsch@suse.de
- fixed imake config dir in host.def (Bug #195064)
* Tue Jul 25 2006 sndirsch@suse.de
- make use of $RPM_OPT_FLAGS (host.def)
* Tue Jul 25 2006 sndirsch@suse.de
- no need to remove /usr/lib/X11 symlink any longer
* Tue Jul 25 2006 sndirsch@suse.de
- changed config dir to /usr/share/X11/config
* Mon Jul 24 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
* Thu Jul 20 2006 sndirsch@suse.de
- removed usr/lib/X11 directory from filelist, since it conflicts
with filesystem package
* Thu Jul 20 2006 sndirsch@suse.de
- added /usr/%%{_lib}/X11 to %%files to fix build
* Sat Jun 24 2006 sndirsch@suse.de
- created package