%define name ecore %define version cvs20020821 %define release 2mdk %define major 0 %define libname lib%{name}%{major} Summary: Enlightened Core X interface library Name: %{name} Version: %{version} Release: %{release} License: BSD Group: Development/Other URL: http://www.enlightenment.org/efm.html Source: ftp://ftp.enlightenment.org/enlightenment/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: XFree86-devel %description Ecore is the core event abstraction layer and X abstraction layer that makes doing selections, Xdnd, general X stuff, and event loops, timeouts and idle handlers fast, optimized, and convenient. it's a separate library so anyone can make use of the work put into Ecore to make this job easy for applications. %package -n %{libname} Summary: Enlightened Core X interface library Group: System/Libraries Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version} %description -n %{libname} Ecore is the core event abstraction layer and X abstraction layer that makes doing selections, Xdnd, general X stuff, and event loops, timeouts and idle handlers fast, optimized, and convenient. it's a separate library so anyone can make use of the work put into Ecore to make this job easy for applications. %package -n %{libname}-devel Summary: Ecore headers and development libraries. Group: Development/Other Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version} %description -n %{libname}-devel Ecore development files. %prep %setup -q %build if [ -e ./configure ] then %configure else ./autogen.sh --prefix=%{_prefix} fi %make %install # make prefix=$RPM_BUILD_ROOT%{prefix} install %makeinstall %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -n %{libname} %defattr(-,root,root) %{_libdir}/libecore.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_libdir}/libecore.so %{_libdir}/libecore.*a %{_includedir}/Ecore.h %{_bindir}/ecore-config %changelog * Sat Aug 24 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> cvs20020821-2mdk - Change to a real description * Wed Aug 21 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> cvs20020821-1mdk - first mdk package from Yves Mettier <ymettier@libertysurf.fr>