Summary: X.Org X11 libXrender runtime library Name: libXrender Version: 0.9.5 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, xorg-compat-aix %ifos aix6.1 || %ifos aix7.1 Requires: AIX-rpm >= 6.1.0.0 %else Requires: AIX-rpm < 6.1.0.0 %endif 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} Requires: pkg-config %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 %ifos aix6.1 || %ifos aix7.1 # add the compatibility shared members for AIX >= 6.1 # (make sure they're set for LOADONLY with 'strip -e') cp src/.libs/%{name}.so.1 shr.o /usr/bin/strip -X32 -e shr.o /usr/bin/ar -X32 -q src/.libs/%{name}.a shr.o cp %{name}.so.1 shr_64.o /usr/bin/strip -X64 -e shr_64.o /usr/bin/ar -X64 -q src/.libs/%{name}.a shr_64.o %endif %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 %ifnos aix6.1 && %ifnos aix7.1 /usr/lib/*.a %endif %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 * Mon Aug 13 2012 Michael Perzl - 0.9.5-2 - added compatibility shared members for AIX >= 6.1 as starting with AIX 6.1 AIX has a system version of libXrender * Mon Nov 09 2009 Michael Perzl - 0.9.5-1 - updated to version 0.9.5 - fixed a AIX V6.1 compatibility issue and built a separate AIX V6.1 version * 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