Summary: X.Org X11 libXrender runtime library Name: libXrender Version: 0.9.10 Release: 1 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 >= 1.2 BuildRequires: renderproto >= 0.11.1-2 %ifos aix6.1 || %ifos aix7.1 || %ifos aix7.2 Requires: AIX-rpm >= 6.1.0.0 %else Requires: AIX-rpm < 5.4.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 Requires: renderproto >= 0.11.1-2 %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 "xlc_r -q64" or "gcc -maix64". %prep export PATH=/opt/freeware/bin:$PATH %setup -q %patch0 %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh # work around strange libtool error, see details at: # https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14145662 export RM="rm -f" # 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="xlc_r -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="xlc_r" ./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 || %ifos aix7.2 # 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 && %ifnos aix7.2 /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 * Fri Nov 18 2016 Michael Perzl - 0.9.10-1 - updated to version 0.9.10 * Sat Dec 26 2015 Michael Perzl - 0.9.9-1 - updated to version 0.9.9 * Thu Aug 22 2013 Michael Perzl - 0.9.8-1 - updated to version 0.9.8 * Mon Aug 13 2012 Michael Perzl - 0.9.7-2 - added compatibility shared members for AIX >= 6.1 as starting with AIX 6.1 AIX has a system version of libXrender * Sun Jun 03 2012 Michael Perzl - 0.9.7-1 - updated to version 0.9.7 * Wed Nov 03 2010 Michael Perzl - 0.9.6-1 - updated to version 0.9.6 * 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