Summary: X.Org X11 libXrender runtime library Name: libXrender Version: 0.9.4 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 Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: pkg-config, patch %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/libXrender.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/libXrender.a ./libXrender.so.1 %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 %changelog * Sat Apr 05 2008 Michael Perzl - 0.9.4-1 - first version for AIX V5.1 and higher