diff --git a/imlib2-1.4.7-multilib.patch b/imlib2-1.4.7-multilib.patch new file mode 100644 index 0000000..1b71fda --- /dev/null +++ b/imlib2-1.4.7-multilib.patch @@ -0,0 +1,13 @@ +diff -up imlib2-1.4.7/imlib2-config.in.multilib imlib2-1.4.7/imlib2-config.in +--- imlib2-1.4.7/imlib2-config.in.multilib 2016-01-25 16:14:28.115088877 +0100 ++++ imlib2-1.4.7/imlib2-config.in 2016-01-25 16:14:48.666279614 +0100 +@@ -45,8 +45,7 @@ while test $# -gt 0; do + echo $includes + ;; + --libs) +- libdirs=-L@libdir@ +- echo $libdirs -lImlib2 ++ echo -lImlib2 + ;; + *) + echo "${usage}" 1>&2 diff --git a/imlib2-1.4.9.tar.bz2 b/imlib2-1.4.9.tar.bz2 new file mode 100644 index 0000000..ffad01e Binary files /dev/null and b/imlib2-1.4.9.tar.bz2 differ diff --git a/imlib2.spec b/imlib2.spec new file mode 100644 index 0000000..eff1031 --- /dev/null +++ b/imlib2.spec @@ -0,0 +1,90 @@ +Name: imlib2 +Version: 1.4.9 +Release: 8 +Summary: Image handling and conversion library +License: Imlib2 +URL: http://docs.enlightenment.org/api/imlib2/html/ +Source0: http://downloads.sourceforge.net/enlightenment/imlib2-%{version}.tar.bz2 +Patch0001: imlib2-1.4.7-multilib.patch +BuildRequires: libjpeg-devel libpng-devel libtiff-devel pkgconfig +BuildRequires: giflib-devel freetype-devel >= 2.1.9-4 libtool bzip2-devel +BuildRequires: libX11-devel libXext-devel libid3tag-devel + +%description +Imlib2 is an advanced replacement library for libraries like libXpm +that provides many more features with much greater flexibility and +speed than standard libraries, including font rasterization, rotation, +RGBA space rendering and blending, dynamic binary filters, scripting, +and more. + +%package devel +Summary: Development package for imlib2 +Requires: imlib2 = %{version}-%{release} +Requires: libX11-devel libXext-devel freetype-devel >= 2.1.9-4 pkgconfig + +%description devel +This package provide development files for imlib2. + +%package id3tag-loader +Summary: Imlib2 id3tag-loader +License: GPLv2+ +Requires: imlib2 = %{version}-%{release} + +%description id3tag-loader +This package provides a plugin, it makes imlib2 capable of parsing id3 tags of mp3 files. +This plugin is packaged separately because it links with libid3tag which is GPLv2+, +thus making imlib2 and apps using it subject to the conditions of the GPL version 2 (or at +your option) any later version. + +%prep +%autosetup -n imlib2-%{version} -p1 + +%build +asmopts="--disable-mmx --disable-amd64" +%ifarch x86_64 +asmopts="--disable-mmx --enable-amd64" +%endif +autoreconf -ifv +export x_libs=" " +%configure --disable-static --with-pic $asmopts +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%make_build + +%install +%make_install +%delete_la + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc COPYING AUTHORS README TODO +%{_bindir}/imlib2-config +%{_libdir}/libImlib2.so.* +%dir %{_libdir}/imlib2/ +%dir %{_libdir}/imlib2/filters/ +%dir %{_libdir}/imlib2/loaders/ +%{_libdir}/imlib2/loaders/*.so +%{_libdir}/imlib2/filters/*.so +%exclude %{_libdir}/imlib2/loaders/id3.* +%exclude %{_bindir}/imlib2_* +%exclude %{_datadir}/imlib2/data/ + +%files devel +%doc doc/*.gif doc/*.html +%{_includedir}/Imlib2.h +%{_libdir}/libImlib2.so +%{_libdir}/pkgconfig/imlib2.pc + +%files id3tag-loader +%{_libdir}/imlib2/loaders/id3.* + + +%changelog +* Sat Dec 21 2019 Tianfei - 1.4.9-8 +- Package init +