%define do_tests 1 Name: pixman Version: 0.42.2 Release: 1 Summary: Pixel manipulation library Group: System Environment/Libraries License: MIT URL: http://cgit.freedesktop.org/pixman/ Source: http://cairographics.org/releases/%{name}-%{version}.tar.gz Patch0: pixman-0.34.0-aix-tests.patch BuildRoot: /var/tmp/%{name}-%{version}-root BuildRequires: automake >= 1.16.1 %description Pixman is a pixel manipulation library for X and cairo. %package devel Summary: Pixel manipulation library development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development library for pixman %prep %setup -q %patch0 -p1 mkdir ../32bit mv * ../32bit mv ../32bit . mkdir 64bit cp -r 32bit/* 64bit # Build process requires aclocal and automake binaries names with version suffix if [ ! -e /opt/freeware/bin/aclocal-1.16 ]; then ln -s /opt/freeware/bin/aclocal /opt/freeware/bin/aclocal-1.16 fi if [ ! -e /opt/freeware/bin/automake-1.16 ]; then ln -s /opt/freeware/bin/aclocal /opt/freeware/bin/automake-1.16 fi %build #export PATH=/usr/bin:/usr/linux/bin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:. #export LIBPATH= export SHELL=/opt/freeware/bin/bash CONFIG_SHELL=/usr/bin/sh export RM="/usr/bin/rm -f" # setup environment for 32-bit and 64-bit builds export AR="/usr/bin/ar -X32_64" export NM="/usr/bin/nm -X32_64" # first build the 64-bit version cd 64bit export CC="/opt/freeware/bin/gcc -maix64 -O2" export LDFLAGS="-L%{_builddir}/%{name}-%{version}/64bit/pixman/.libs/ -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib" ./configure \ --prefix=%{_prefix} \ --enable-shared \ --disable-static \ --disable-gcc-inline-asm \ --disable-timers make %{?_smp_mflags} %if %{do_tests} != 0 make check slibclean %endif # now build the 32-bit version cd ../32bit export CC="/opt/freeware/bin/gcc -maix32 -D_LARGE_FILES -O2" export LDFLAGS="-L%{_builddir}/%{name}-%{version}/32bit/pixman/.libs/ -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ./configure \ --prefix=%{_prefix} \ --enable-shared \ --disable-static \ --disable-gcc-inline-asm \ --disable-timers make %{?_smp_mflags} %if %{do_tests} != 0 make check slibclean %endif # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q %{name}/.libs/lib%{name}-1.a ../64bit/%{name}/.libs/lib%{name}-1.so.0 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT export RM="/usr/bin/rm -f" cd 64bit export OBJECT_MODE=64 make DESTDIR=$RPM_BUILD_ROOT install cd ../32bit export OBJECT_MODE=32 make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system,-) %{_libdir}/libpixman*.a %files devel %defattr(-,root,system,-) %{_includedir}/pixman-1/*.h %{_libdir}/pkgconfig/*.pc %changelog * Mon Feb 20 2022 Sangeetha Bandi - 0.42.2-1 - Update to fix CVE-2022-44638 * Fri May 27 2016 Ravi Hirekurabar - 0.34.0-1 - Update to version 0.34.0 * Tue Jun 12 2012 Gerard Visiedo - 0.26.0-1 - Update to version 0.26.0 * Fri Feb 03 2012 Gerard Visiedo - 0.20.0-4 - Initial port on Aix6.1 * Fri Oct 14 2011 Gerard Visiedo - 0.20.0-3 - rebuild for compatibility with new libiconv.a 1.13.1-2 * Thu Sep 08 2011 Gerard Visiedo - 0.20.0-2 - Add 64bit libraries * Wed Nov 10 2010 Jean Noel Cordenner - 0.20.0-1 - First port for AIX5.3