diff --git a/.cvsignore b/.cvsignore index e69de29..7bcd8e2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +imlib2-1.0.6.tar.gz diff --git a/imlib2-1.0.6-demo-build.patch b/imlib2-1.0.6-demo-build.patch new file mode 100644 index 0000000..ebc0e69 --- /dev/null +++ b/imlib2-1.0.6-demo-build.patch @@ -0,0 +1,8 @@ +--- demo/Makefile.am.orig 2003-10-26 23:46:26.000000000 +0100 ++++ demo/Makefile.am 2003-10-26 23:48:35.000000000 +0100 +@@ -15,4 +15,4 @@ + imconvert_SOURCES = imconvert.c + imlib2_view_SOURCES = view.c + LDADD = @DLLDFLAGS@ $(top_builddir)/libltdl/libltdlc.la \ +- $(x_libs) -lttf -lImlib2 ++ $(x_libs) -lttf -L$(top_builddir)/src/.libs -lImlib2 diff --git a/imlib2.spec b/imlib2.spec new file mode 100644 index 0000000..5726128 --- /dev/null +++ b/imlib2.spec @@ -0,0 +1,107 @@ +Summary: A graphic library for file loading, saving, rendering, and manipulation +Name: imlib2 +Version: 1.0.6 +Release: 0.fdr.3.rh80 +Epoch: 0 +License: BSD +Group: System Environment/Libraries +URL: http://enlightenment.org/ +Source0: %{name}-%{version}.tar.gz +Patch0: imlib2-1.0.6-demo-build.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +BuildRequires: XFree86-devel libjpeg-devel libpng-devel libtiff-devel +BuildRequires: libungif-devel automake14 freetype-devel + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: XFree86-devel freetype-devel + +# ----------------------------------------------------------------------------- + +%description +Imlib 2 is the successor to Imlib. It is NOT a newer version -- it is +a completely new library. Imlib 2 can be installed alongside Imlib 1.x +without any problems since they are effectively different libraries +which have very similar functionality. Please see the homepage for the +long description of the differences. + +%description devel +This package contains development files for %{name}. + +Imlib 2 is the successor to Imlib. It is NOT a newer version -- it is +a completely new library. Imlib 2 can be installed alongside Imlib 1.x +without any problems since they are effectively different libraries +which have very similar functionality. Please see the homepage for the +long description of the differences. + +# ----------------------------------------------------------------------------- + +%prep +%setup -q +%patch0 -p0 -b .demo +automake-1.4 -a + +# ----------------------------------------------------------------------------- + +%build +%configure \ +%ifarch i686 athlon + --enable-mmx +%else + --disable-mmx +%endif +(cd loaders ; perl -pi -e 's|-lImlib2|-L\$(top_builddir)/src/.libs -lImlib2|g' Makefile) +make %{?_smp_mflags} +make -C demo + +# ----------------------------------------------------------------------------- + +%install +rm -rf $RPM_BUILD_ROOT __doc +make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT -C demo + +cp -a doc __doc +rm -f __doc/Makefile* + +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/loaders/*/*.*a + +# ----------------------------------------------------------------------------- + +%clean +rm -rf $RPM_BUILD_ROOT + +# ----------------------------------------------------------------------------- + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING AUTHORS README ChangeLog __doc/* +%{_bindir}/imconvert +%{_bindir}/imlib2_view +%{_libdir}/libImlib2.so.* +%{_libdir}/loaders + +%files devel +%defattr(-,root,root,-) +%{_bindir}/imlib2-config +%{_includedir}/Imlib2.h +%{_libdir}/libImlib2.a +%{_libdir}/libImlib2.so + +# ----------------------------------------------------------------------------- + +%changelog +* Tue Nov 18 2003 Dams 0:1.0.6-0.fdr.3 +- s#_prefix/lib#_libdir# + +* Tue Nov 18 2003 Dams 0:1.0.6-0.fdr.2 +- Moved some binaries and loaders into main package +- Added missing Requires and BuildRequires + +* Sun Oct 26 2003 Dams +- Initial build. diff --git a/sources b/sources index e69de29..6ed88e6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e3475376bf27347c47c7a9ffb49bdb96 imlib2-1.0.6.tar.gz