Summary: X.Org X11 libXrender runtime library Name: libXrender Version: 0.9.4 Release: 2 License: MIT Group: System Environment/Libraries URL: http://www.x.org Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 Source1: %{name}.so.0-aix32 Source2: %{name}.so.0-aix64 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: pkg-config, patch Provides: xrender %description X.Org X11 libXrender runtime library The library is available as 32-bit and 64-bit. %package devel Summary: X.Org X11 libXrender development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel X.Org X11 libXrender development package If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %prep export PATH=/opt/freeware/bin:$PATH %setup -q %patch0 %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="cc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} cp src/.libs/%{name}.so.1 . make distclean # now build the 32-bit version export CC="cc" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/.libs/%{name}.a ./%{name}.so.1 # Add the older shared members for compatibility with older apps # (make sure they're set for LOADONLY with 'strip -e') cp %{SOURCE1} %{name}.so.0 /usr/bin/strip -X32 -e %{name}.so.0 /usr/bin/ar -X32 -q src/.libs/%{name}.a %{name}.so.0 cp %{SOURCE2} %{name}.so.0 /usr/bin/strip -X64 -e %{name}.so.0 /usr/bin/ar -X64 -q src/.libs/%{name}.a %{name}.so.0 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install ( cd $RPM_BUILD_ROOT for dir in include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS COPYING ChangeLog %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %dir %{_includedir}/X11 %dir %{_includedir}/X11/extensions %{_includedir}/X11/extensions/Xrender.h %{_libdir}/*.la %{_libdir}/pkgconfig/xrender.pc /usr/lib/*.la %changelog * Fri Nov 06 2009 Michael Perzl - 0.9.4-2 - fixed a compatibility issue with the original AIX Toolbox xrender package * Sat Apr 05 2008 Michael Perzl - 0.9.4-1 - first version for AIX V5.1 and higher