diff --git a/imlib2-1.2.0-configure-xlib64.patch b/imlib2-1.2.0-configure-xlib64.patch new file mode 100644 index 0000000..1bb5d40 --- /dev/null +++ b/imlib2-1.2.0-configure-xlib64.patch @@ -0,0 +1,11 @@ +--- configure.old 2005-01-09 18:36:09.314185880 +0100 ++++ configure 2005-01-09 18:37:15.840072408 +0100 +@@ -20262,7 +20262,7 @@ + if test "x$have_x" = "xyes"; then + x_dir="/usr/X11R6"; + x_cflags="-I"$x_dir"/include" +- x_libs="-L"$x_dir"/lib -lX11 -lXext" ++ x_libs="-L"$x_dir"/lib64 -lX11 -lXext" + echo "$as_me:$LINENO: result: enabling X11 support" >&5 + echo "${ECHO_T}enabling X11 support" >&6 + diff --git a/imlib2.spec b/imlib2.spec index 75942ba..016e055 100644 --- a/imlib2.spec +++ b/imlib2.spec @@ -1,15 +1,19 @@ Summary: A graphic library for file loading, saving, rendering, and manipulation Name: imlib2 -Version: 1.1.2 -Release: 1 +Version: 1.2.0 +Release: 3 Epoch: 0 License: BSD Group: System Environment/Libraries URL: http://www.enlightenment.org/pages/imlib2.html Source0: http://download.sf.net/enlightenment/%{name}-%{version}.tar.gz +Patch0: imlib2-1.2.0-configure-xlib64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: XFree86-devel libjpeg-devel libpng-devel libtiff-devel BuildRequires: libungif-devel freetype-devel libtool bzip2-devel +%ifarch x86_64 +BuildRequires: perl +%endif %package devel Summary: Development package for %{name} @@ -39,33 +43,45 @@ long description of the differences. %prep %setup -q +%ifarch x86_64 +%patch0 -b .patch0 +%endif # ----------------------------------------------------------------------------- %build %configure \ -%ifarch %{ix86} x86_64 ia64 + --x-libraries=%{_prefix}/X11R6/%{_lib} \ + --with-pic \ +%ifarch %{ix86} ia64 --enable-mmx +%else + --disable-mmx +%endif +%ifarch x86_64 +# fix hardcoded rpath im Makefiles on x86_64 due to freetype-config --libs +# returning "-L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz": +perl -pi.orig -e 's|-Wl,--rpath -Wl,/usr/lib64||g;' Makefile */Makefile */*/Makefile imlib2-config %endif -make %{?_smp_mflags} -make -C demo +make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool # ----------------------------------------------------------------------------- %install rm -rf $RPM_BUILD_ROOT __doc -make install DESTDIR=$RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -C demo +make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool cp -a doc __doc rm -f __doc/Makefile* rm -f \ - $RPM_BUILD_ROOT%{_libdir}/libImlib2.la \ - $RPM_BUILD_ROOT%{_libdir}/imlib2_loaders/*/*.*a \ + $RPM_BUILD_ROOT%{_libdir}/imlib2/{loaders,filters}/*.*a \ $RPM_BUILD_ROOT%{_bindir}/{color_spaces,imlib2,*test} +# ship .la files due to a bug in kdelibs (see changelog): +# $RPM_BUILD_ROOT%{_libdir}/libImlib2.la \ + # ----------------------------------------------------------------------------- %clean @@ -79,22 +95,56 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING AUTHORS README ChangeLog TODO __doc/* -%{_bindir}/imconvert %{_bindir}/imlib2_view +%{_bindir}/imlib2_bumpmap +%{_bindir}/imlib2_colorspace +%{_bindir}/imlib2_conv +%{_bindir}/imlib2_poly +%{_bindir}/imlib2_show %{_libdir}/libImlib2.so.* -%{_libdir}/imlib2_loaders +%{_datadir}/imlib2/data/ +%dir %{_libdir}/imlib2/filters/ +%{_libdir}/imlib2/filters/*.so +%dir %{_libdir}/imlib2/loaders/ +%{_libdir}/imlib2/loaders/*.so %files devel %defattr(-,root,root,-) %{_bindir}/imlib2-config %{_includedir}/Imlib2.h %{_libdir}/libImlib2.a +%{_libdir}/libImlib2.la %{_libdir}/libImlib2.so %{_libdir}/pkgconfig/imlib2.pc # ----------------------------------------------------------------------------- %changelog +* Fri Jan 14 2005 Thorsten Leemhuis - 0:1.1.2-0.fdr.1 - Update to 1.1.2, fixes CAN-2004-0802. - Enable MMX on all ix86, x86_64 and ia64, it seems runtime-detected. diff --git a/sources b/sources index 7ee88f1..fe6c008 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3389bad516032c951fda4fe620df0cef imlib2-1.1.2.tar.gz +853fb77100ee3c3ca944f52c892ab49b imlib2-1.2.0.tar.gz