Summary: X.Org X11 libfontenc runtime library Name: libfontenc Version: 1.0.5 Release: 1 License: MIT Group: System Environment/Libraries URL: http://www.x.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 BuildRequires: pkg-config BuildRequires: zlib-devel Requires: zlib %description X.Org X11 libfontenc runtime library %package devel Summary: X.Org X11 libfontenc development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: zlib-devel %description devel X.Org X11 libfontenc development package %prep %setup -q %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 --disable-static make %{?_smp_mflags} cp ./src/.libs/%{name}.so.1 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --enable-shared --disable-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 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install # make symlinks cd ${RPM_BUILD_ROOT} mkdir -p usr/lib cd usr/lib ln -sf ../..%{_libdir}/* . cd ../.. mkdir -p usr/include/X11/fonts cd usr/include/X11/fonts ln -s ../../../..%{_includedir}/X11/fonts/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS COPYING README ChangeLog %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %{_includedir}/X11/fonts/fontenc.h %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc /usr/include/X11/fonts/fontenc.h /usr/lib/*.la %changelog * Thu Sep 24 2009 Michael Perzl - 1.0.5-1 - first version for AIX V5.1 and higher