xorg-x11-libs/xorg-x11-libs.spec
OBS User autobuild c22b3b0e3e Accepting request 18590 from X11:XOrg
Copy from X11:XOrg/xorg-x11-libs based on submit request 18590 from user sndirsch

OBS-URL: https://build.opensuse.org/request/show/18590
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xorg-x11-libs?expand=0&rev=70
2009-08-28 15:51:59 +00:00

328 lines
8.9 KiB
RPMSpec

#
# spec file for package xorg-x11-libs (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-libs
BuildRequires: fontconfig-devel freetype2-devel gperf libexpat-devel libxslt pkgconfig xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel xorg-x11-libXmu-devel xorg-x11-libXp-devel xorg-x11-libXpm-devel xorg-x11-libXprintUtil-devel xorg-x11-libXrender-devel xorg-x11-libXt-devel xorg-x11-libXv-devel xorg-x11-libfontenc-devel xorg-x11-libxkbfile-devel xorg-x11-proto-devel xorg-x11-util-devel xorg-x11-xtrans-devel
%ifarch ppc64 s390x x86_64
Provides: libXaw.so.8()(64bit) libXaw.so.7()(64bit) libXaw.so.6()(64bit)
%else
Provides: libXaw.so.8 libXaw.so.7 libXaw.so.6
%endif
# bug437293
%ifarch ppc64
Obsoletes: xorg-x11-libs-64bit
%endif
#
Url: http://xorg.freedesktop.org/
Version: 7.4
Release: 24
License: GPL v2 or later ; MIT License (or similar)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/Libraries
Summary: Remaining X.Org libraries
Source0: libAppleWM-X11R7.0-1.0.0.tar.bz2
Source1: libFS-1.0.2.tar.bz2
Source2: libWindowsWM-X11R7.0-1.0.0.tar.bz2
Source3: libXScrnSaver-1.1.3.tar.bz2
Source4: libXTrap-X11R7.0-1.0.0.tar.bz2
Source5: libXaw-1.0.4.tar.bz2
Source6: libXcomposite-0.4.0.tar.bz2
Source7: libXcursor-1.1.9.tar.bz2
Source8: libXdamage-1.1.1.tar.bz2
Source9: libXevie-1.0.2.tar.bz2
Source10: libXfont-1.4.0.tar.bz2
Source11: libXfontcache-1.0.4.tar.bz2
Source12: libXft-2.1.13.tar.bz2
Source13: libXi-1.2.1.tar.bz2
Source14: libXinerama-1.0.3.tar.bz2
Source15: libXprintAppUtil-X11R7.0-1.0.1.tar.bz2
Source16: libXrandr-1.3.0.tar.bz2
Source17: libXtst-1.0.3.tar.bz2
Source18: libXvMC-1.0.4.tar.bz2
Source19: libXxf86dga-1.0.2.tar.bz2
Source20: libXxf86misc-X11R7.1-1.0.1.tar.bz2
Source21: libXxf86vm-1.0.2.tar.bz2
Source22: libdmx-X11R7.1-1.0.2.tar.bz2
Source23: liblbxutil-X11R7.1-1.0.1.tar.bz2
Source24: liboldX-X11R7.0-1.0.1.tar.bz2
Source25: libxkbui-X11R7.1-1.0.2.tar.bz2
Source26: xbitmaps-X11R7.0-1.0.1.tar.bz2
Source27: libXres-1.0.3.tar.bz2
Source29: libvnc-20070501.tar.bz2
Source30: libXcliplist-20070501.tar.bz2
Source31: xcb-util-0.3.6.tar.bz2
Source33: libpciaccess-0.10.6.tar.bz2
Patch2: libXft-2.1.7-lcd-filter-2.patch
Patch3: p_xft_cjk.diff
Patch5: libxkbui.diff
Patch10: libXxf86misc-xcb.diff
Patch20: Header-cleanup-bug-4703.patch
Patch21: libxtrap-pcfix.patch
%description
This package contains the remaining X.Org libraries.
Authors:
--------
Apple Computer Corporation
Dave Lemke
David Dawes
Derek Wang
Frank Giessler
Jim Gettys
Juliusz Chroboczek
Jungshik Shin
Keith Packard
Kensuke Matsuzaki
Marc La France
Mark Leisher
Noah Levitt
Phil Karlton
Ralf Habacker
Shunsuke Akiyama
Suhaib Siddiqi
Susan Angebrandt
%package -n xorg-x11-devel
License: GPL v2 or later ; MIT License (or similar)
Summary: Include Files and Libraries mandatory for X11 Development
Group: Development/Libraries/X11
Provides: xorg-x11-compat70-devel xorg-x11-man XFree86-devel
Obsoletes: xorg-x11-compat70-devel xorg-x11-man
Requires: xorg-x11-proto-devel xorg-x11-xtrans-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libX11-devel xorg-x11-libXext-devel xorg-x11-libXp-devel xorg-x11-libXpm-devel xorg-x11-libXrender-devel xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libXt-devel xorg-x11-libXmu-devel xorg-x11-libXfixes-devel xorg-x11-libxkbfile-devel freetype2-devel fontconfig-devel %{name} = %{version} xorg-x11-util-devel xorg-x11-libfontenc-devel xorg-x11-libXv-devel xorg-x11-libXprintUtil-devel xorg-x11-fonts-devel pkgconfig
Requires: xorg-x11-libxcb-devel
Requires: libpciaccess0-devel libpixman-1-0-devel
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: xorg-x11-devel-64bit
%endif
#
%description -n xorg-x11-devel
This package contains all necessary include files and libraries needed
to develop X11 applications that require these.
Authors:
--------
Apple Computer Corporation
Dave Lemke
David Dawes
Derek Wang
Frank Giessler
Jim Gettys
Juliusz Chroboczek
Jungshik Shin
Keith Packard
Kensuke Matsuzaki
Marc La France
Mark Leisher
Noah Levitt
Phil Karlton
Ralf Habacker
Shunsuke Akiyama
Suhaib Siddiqi
Susan Angebrandt
%package -n libpciaccess0
License: MIT License (or similar)
Summary: pciaccess library
Group: System/Libraries
Provides: xorg-x11-libs:/usr/X11R6/%{_lib}/usr/lib64/libpciaccess.so.0
AutoReqProv: on
%description -n libpciaccess0
pciaccess library.
Authors:
--------
Apple Computer Corporation
Dave Lemke
David Dawes
Derek Wang
Frank Giessler
Jim Gettys
Juliusz Chroboczek
Jungshik Shin
Keith Packard
Kensuke Matsuzaki
Marc La France
Mark Leisher
Noah Levitt
Phil Karlton
Ralf Habacker
Shunsuke Akiyama
Suhaib Siddiqi
Susan Angebrandt
%package -n libpciaccess0-devel
License: MIT License (or similar)
Summary: Include Files and Libraries mandatory for X11 Development
Group: Development/Libraries/X11
Provides: xorg-x11-devel:/usr/X11R6/%{_lib}/usr/lib64/libpciaccess.so
Requires: libpciaccess0
%description -n libpciaccess0-devel
This package contains all necessary include files and libraries needed
to develop X11 applications that require these.
Authors:
--------
Apple Computer Corporation
Dave Lemke
David Dawes
Derek Wang
Frank Giessler
Jim Gettys
Juliusz Chroboczek
Jungshik Shin
Keith Packard
Kensuke Matsuzaki
Marc La France
Mark Leisher
Noah Levitt
Phil Karlton
Ralf Habacker
Shunsuke Akiyama
Suhaib Siddiqi
Susan Angebrandt
%prep
%setup -q -T -c %{name}
for i in $RPM_SOURCE_DIR/*.tar.bz2; do tar xjf $i; done
pushd libXft-*/src
%if %suse_version > 1010
%patch2 -p1
%endif
%patch3 -p1
popd
pushd libxkbui-*
%patch5
popd
pushd libXxf86misc-*
%patch10 -p0
popd
pushd libXft-*
%patch20 -p1
popd
pushd libXTrap-*
%patch21 -p1
popd
%build
for dir in xbitmaps-* $(ls | grep -v -e xbitmaps); do
pushd $dir
option=""; echo $dir | grep -q libXvMC && option="--sysconfdir=/etc"
case $dir in
*)
echo $dir | grep -q -E "libvnc|libXcliplist" && autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
%if %suse_version > 1110
--disable-static \
%endif
--with-pic --enable-type1 ${option}
;;
esac
%{__make} %{?jobs:-j%jobs}
popd
done
%install
for dir in xbitmaps-* $(ls | grep -v xbitmap); do
pushd $dir
make install DESTDIR=$RPM_BUILD_ROOT
popd
done
/sbin/ldconfig -n $RPM_BUILD_ROOT/usr/%_lib
mkdir -p $RPM_BUILD_ROOT/usr/include/X11/pixmaps/
%if %suse_version > 1110
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%endif
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%pre -n xorg-x11-devel
test -L usr/include/X11 && rm usr/include/X11
exit 0
%post -n libpciaccess0 -p /sbin/ldconfig
%postun -n libpciaccess0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/include/X11/bitmaps/
/usr/include/X11/pixmaps/
/usr/%{_lib}/*.so.*
%exclude /usr/%{_lib}/libpciaccess.so.0*
%files -n xorg-x11-devel
%defattr(-,root,root)
/usr/bin/xft-config
/usr/include/*.h
%exclude /usr/include/pciaccess.h
/usr/include/X11/*.h
/usr/include/X11/Xaw/
/usr/include/X11/Xcursor/
/usr/include/X11/Xft/
/usr/include/X11/XprintAppUtil/
/usr/include/X11/extensions/*.h
/usr/include/X11/fonts/*.h
/usr/include/xcb/
/usr/%{_lib}/*.so
%exclude /usr/%{_lib}/libpciaccess.so.0*
%if %suse_version <= 1110
/usr/%{_lib}/*.a
/usr/%{_lib}/*.la
%endif
/usr/%{_lib}/pkgconfig/*.pc
/usr/share/aclocal/*.m4
%{_mandir}/man1/*
%{_mandir}/man3/*
%files -n libpciaccess0
%defattr(-,root,root)
/usr/%{_lib}/libpciaccess.so.0*
%files -n libpciaccess0-devel
%defattr(-,root,root)
/usr/include/pciaccess.h
/usr/%{_lib}/libpciaccess.so
%changelog