# # spec file for package xorg-x11-libs # # Copyright (c) 2012 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 %define meta 1 Name: xorg-x11-libs BuildRequires: fdupes fontconfig-devel freetype2-devel gperf libXi6-devel libexpat-devel libtool 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 %if !%{meta} %ifarch ppc64 s390x x86_64 Provides: libXaw.so.8()(64bit) libXaw.so.7()(64bit) libXaw.so.6()(64bit) Provides: libXaw8.so.8()(64bit) libXaw7.so.7()(64bit) libXaw6.so.6()(64bit) %else Provides: libXaw.so.8 libXaw.so.7 libXaw.so.6 Provides: libXaw8.so.8 libXaw7.so.7 libXaw6.so.6 %endif %endif # bug437293 %ifarch ppc64 Obsoletes: xorg-x11-libs-64bit %endif # Url: http://xorg.freedesktop.org/ Version: 7.6 Release: 23 License: GPL-2.0+ ; MIT BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: System/Libraries Summary: Remaining X.Org libraries Source1: libFS-1.0.3.tar.bz2 Source2: libWindowsWM-1.0.1.tar.bz2 Source3: libXScrnSaver-1.2.1.tar.bz2 Source4: libXTrap-X11R7.0-1.0.0.tar.bz2 Source5: libXaw-1.0.8.tar.bz2 Source6: libXcomposite-0.4.3.tar.bz2 Source7: libXcursor-1.1.11.tar.bz2 Source8: libXdamage-1.1.3.tar.bz2 Source9: libXevie-1.0.3.tar.bz2 Source10: libXfont-1.4.3.tar.bz2 Source11: libXfontcache-1.0.5.tar.bz2 Source12: libXft-2.2.0.tar.bz2 Source14: libXinerama-1.1.1.tar.bz2 Source15: libXprintAppUtil-X11R7.0-1.0.1.tar.bz2 Source16: libXrandr-1.3.1.tar.bz2 Source17: libXtst-1.2.0.tar.bz2 Source18: libXvMC-1.0.6.tar.bz2 Source19: libXxf86dga-1.1.2.tar.bz2 Source20: libXxf86misc-1.0.3.tar.bz2 Source21: libXxf86vm-1.1.1.tar.bz2 Source22: libdmx-1.1.1.tar.bz2 Source23: liblbxutil-1.1.0.tar.bz2 Source24: liboldX-X11R7.0-1.0.1.tar.bz2 Source25: libxkbui-X11R7.1-1.0.2.tar.bz2 Source26: xbitmaps-1.1.1.tar.bz2 Source27: libXres-1.0.5.tar.bz2 Source29: libvnc-20070501.tar.bz2 Source30: libXcliplist-20070501.tar.bz2 Source31: xcb-util-0.3.8.tar.bz2 Source90: baselibs.conf Patch2: libXft-2.1.7-lcd-filter-2.patch Patch5: libxkbui.diff Patch10: libXxf86misc-xcb.diff Patch11: U_libXfont_LZW-decompress-fix-for-CVE-2011-2895.patch %description This package contains the remaining X.Org libraries. %package -n xorg-x11-devel License: GPL-2.0+ ; MIT Summary: Include Files and Libraries mandatory for X11 Development Group: Development/Libraries/X11 %if !%{meta} Provides: xorg-x11-compat70-devel xorg-x11-man XFree86-devel Obsoletes: xorg-x11-compat70-devel xorg-x11-man # bug437293 %ifarch ppc64 Obsoletes: xorg-x11-devel-64bit %endif 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 libXi6-devel Requires: xorg-x11-libxcb-devel Requires: libpciaccess0-devel libpixman-1-0-devel AutoReqProv: on %else Requires: freetype2-devel Requires: fontconfig-devel Requires: pkgconfig Requires: pkgconfig(applewmproto) Requires: pkgconfig(bigreqsprot) Requires: pkgconfig(bigreqsproto) Requires: pkgconfig(compositeproto) Requires: pkgconfig(damageproto) Requires: pkgconfig(dmxproto) Requires: pkgconfig(dri2proto) Requires: pkgconfig(evieext) Requires: pkgconfig(evieproto) Requires: pkgconfig(fixesproto) Requires: pkgconfig(fontcacheproto) Requires: pkgconfig(fontenc) Requires: pkgconfig(fontsproto) Requires: pkgconfig(fontutil) Requires: pkgconfig(glproto) Requires: pkgconfig(ice) Requires: pkgconfig(inputproto) Requires: pkgconfig(kbproto) Requires: pkgconfig(libpthread-stubs) Requires: pkgconfig(pciaccess) Requires: pkgconfig(pixman-1) Requires: pkgconfig(printproto) Requires: pkgconfig(pthread-stubs) Requires: pkgconfig(randrproto) Requires: pkgconfig(recordproto) Requires: pkgconfig(renderproto) Requires: pkgconfig(resourceproto) Requires: pkgconfig(scrnsaveproto) Requires: pkgconfig(scrnsaverproto) Requires: pkgconfig(sm) Requires: pkgconfig(trapproto) Requires: pkgconfig(util-macros) Requires: pkgconfig(videoproto) Requires: pkgconfig(vncproto) Requires: pkgconfig(windowswmproto) Requires: pkgconfig(x11) Requires: pkgconfig(x11-xcb) Requires: pkgconfig(x86bigfontproto) Requires: pkgconfig(xau) Requires: pkgconfig(xcb) Requires: pkgconfig(xcb-composite) Requires: pkgconfig(xcb-damage) Requires: pkgconfig(xcb-dpms) Requires: pkgconfig(xcb-dri2) Requires: pkgconfig(xcb-glx) Requires: pkgconfig(xcb-proto) Requires: pkgconfig(xcb-randr) Requires: pkgconfig(xcb-record) Requires: pkgconfig(xcb-render) Requires: pkgconfig(xcb-res) Requires: pkgconfig(xcb-screensaver) Requires: pkgconfig(xcb-shape) Requires: pkgconfig(xcb-shm) Requires: pkgconfig(xcb-sync) Requires: pkgconfig(xcb-xevie) Requires: pkgconfig(xcb-xf86dri) Requires: pkgconfig(xcb-xfixes) Requires: pkgconfig(xcb-xinerama) Requires: pkgconfig(xcb-xprint) Requires: pkgconfig(xcb-xtest) Requires: pkgconfig(xcb-xv) Requires: pkgconfig(xcb-xvmc) Requires: pkgconfig(xcliplistproto) Requires: pkgconfig(xcmiscproto) Requires: pkgconfig(xdmcp) Requires: pkgconfig(xext) Requires: pkgconfig(xextproto) Requires: pkgconfig(xf86bigfontproto) Requires: pkgconfig(xf86dgaproto) Requires: pkgconfig(xf86driproto) Requires: pkgconfig(xf86miscproto) Requires: pkgconfig(xf86rushproto) Requires: pkgconfig(xf86vidmodeproto) Requires: pkgconfig(xfixes) Requires: pkgconfig(xi) Requires: pkgconfig(xineramaproto) Requires: pkgconfig(xkbfile) Requires: pkgconfig(xmu) Requires: pkgconfig(xmuu) Requires: pkgconfig(xorg-macros) Requires: pkgconfig(xorg-sgml-doctools) Requires: pkgconfig(xp) Requires: pkgconfig(xpm) Requires: pkgconfig(xprintutil) Requires: pkgconfig(xproto) Requires: pkgconfig(xproxymanagementprotocol) Requires: pkgconfig(xproxymngproto) Requires: pkgconfig(xrender) Requires: pkgconfig(xt) Requires: pkgconfig(xtrans) Requires: pkgconfig(xv) %endif %description -n xorg-x11-devel This package contains all necessary include files and libraries needed to develop X11 applications that require these. %prep %setup -q -T -c %{name} %if !%{meta} for i in $RPM_SOURCE_DIR/*.tar.bz2; do tar xjf $i; done pushd libXft-*/src %patch2 -p1 popd pushd libxkbui-* %patch5 popd pushd libXxf86misc-* %patch10 -p0 popd pushd libXfont-* %patch11 -p1 popd %else touch meta %endif %build %if !%{meta} for dir in $(ls); do pushd $dir case $dir in libXvMC-*) option="--sysconfdir=/etc" ;; libvnc*|libXcliplist*) autoreconf -fi ;; *) ;; esac autoreconf -fiv export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --disable-silent-rules \ --disable-static \ --with-pic --enable-type1 ${option} %{__make} %{?_smp_mflags} popd done %endif %install %if !%{meta} for dir in $(ls); 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 # for compatibility reasons ln -s libXaw7.so.7 $RPM_BUILD_ROOT/%{_libdir}/libXaw8.so.8 ln -s libXaw.so.7 $RPM_BUILD_ROOT/%{_libdir}/libXaw.so.8 # create fake libxcb-* libs being replaced now by libxcb-util (bnc #741465 # and reported by others) for ext_version in atom:1 aux:0 event:1 icccm:1 image:0 keysyms:1 property:1 render-util:0 reply:1; do ext=${ext_version%:*} version=${ext_version#*:} > xcb-${ext}.c gcc -Wall -ansi -pedantic -c xcb-${ext}.c -fPIC gcc -shared -Wl,-soname,libxcb-${ext}.so.${version} \ -Wl,-L$RPM_BUILD_ROOT%{_libdir},--no-as-needed,-lxcb-util \ -o $RPM_BUILD_ROOT%{_libdir}/libxcb-${ext}.so.${version} xcb-${ext}.o done %if %suse_version > 1110 %{__rm} -f %{buildroot}%{_libdir}/*.la %endif %fdupes -s $RPM_BUILD_ROOT/%_mandir %endif %clean rm -rf "$RPM_BUILD_ROOT" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %if %{meta} %doc meta %else /usr/include/X11/bitmaps/ /usr/include/X11/pixmaps/ /usr/%{_lib}/*.so.* %endif %files -n xorg-x11-devel %defattr(-,root,root) %if %{meta} %doc meta %else %doc /usr/share/doc/* /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 %if %suse_version <= 1110 /usr/%{_lib}/*.la %endif /usr/%{_lib}/pkgconfig/*.pc %{_datadir}/pkgconfig/*.pc %{_mandir}/man3/* %doc %{_datadir}/doc/libXvMC/ %doc %{_datadir}/doc/libXaw/ %doc %{_datadir}/doc/libFS/ %endif %changelog