2006-08-22 16:36:54 -07:00
|
|
|
# Conditional build stuff; from rpm 4.4 /usr/lib/rpm/macros.
|
|
|
|
# bcond_without defaults to WITH, and vice versa. Yes, it's
|
|
|
|
# ass-backward. Blame PLD.
|
|
|
|
# from KainX's changes to evas...
|
|
|
|
%if %{!?with:1}0
|
|
|
|
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
|
|
|
|
%endif
|
|
|
|
%if %{!?without:1}0
|
|
|
|
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
|
|
|
|
%endif
|
|
|
|
%if %{!?bcond_with:1}0
|
|
|
|
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
|
|
|
|
%endif
|
|
|
|
%if %{!?bcond_without:1}0
|
|
|
|
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
## disabled features
|
2007-11-06 21:42:08 -08:00
|
|
|
%bcond_with lib_ecore_directfb
|
|
|
|
%bcond_with lib_ecore_sdl
|
2006-08-22 16:36:54 -07:00
|
|
|
|
|
|
|
## enabled features
|
|
|
|
##%bcond_without module_engine_software_x11
|
2006-12-05 13:50:39 -08:00
|
|
|
%bcond_without lib_ecore_fb
|
2008-07-23 00:11:56 -07:00
|
|
|
%bcond_without lib_ecore_imf
|
2006-08-22 16:36:54 -07:00
|
|
|
|
|
|
|
# This just keeps a missing doxygen from killing the build.
|
2004-07-25 14:50:40 -07:00
|
|
|
%define _missing_doc_files_terminate_build 0
|
|
|
|
|
2007-02-21 02:56:17 -08:00
|
|
|
%define breq_lib_ecore_directfb %{?with_lib_ecore_directfb:DirectFB}
|
2007-11-06 21:42:08 -08:00
|
|
|
%define breq_lib_ecore_sdl %{?with_lib_ecore_sdl:SDL-devel}
|
2007-02-21 02:56:17 -08:00
|
|
|
|
2007-11-06 21:42:08 -08:00
|
|
|
%define ac_with_lib_ecore_directfb --%{?with_lib_ecore_directfb:en}%{!?with_lib_ecore_directfb:dis}able-ecore-directfb
|
2008-07-23 00:11:56 -07:00
|
|
|
%define ac_with_lib_ecore_fb --%{?with_lib_ecore_fb:en}%{!?with_lib_ecore_fb:dis}able-ecore-fb
|
|
|
|
%define ac_with_lib_ecore_imf --%{?with_lib_ecore_imf:en}%{!?with_lib_ecore_imf:dis}able-ecore-imf
|
2007-11-06 21:42:08 -08:00
|
|
|
%define ac_with_lib_ecore_sdl --%{?with_lib_ecore_sdl:en}%{!?with_lib_ecore_sdl:dis}able-ecore-sdl
|
2006-12-05 13:50:39 -08:00
|
|
|
|
2011-06-16 13:36:43 -07:00
|
|
|
%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
|
2010-05-12 11:19:11 -07:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
Summary: Enlightened Core X interface library
|
2005-03-10 07:19:43 -08:00
|
|
|
Name: @PACKAGE@
|
|
|
|
Version: @VERSION@
|
2010-05-12 11:19:11 -07:00
|
|
|
Release: %{_rel}
|
2005-01-04 21:05:30 -08:00
|
|
|
License: BSD
|
2003-09-23 01:09:32 -07:00
|
|
|
Group: User Interface/X
|
2005-03-10 07:19:43 -08:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
URL: http://www.enlightenment.org
|
2005-01-04 21:05:30 -08:00
|
|
|
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
|
|
|
|
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
|
|
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
2011-03-18 17:47:15 -07:00
|
|
|
#BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel, c-ares-devel
|
2007-02-21 02:56:17 -08:00
|
|
|
BuildRequires: libjpeg-devel, openssl-devel %{?breq_lib_ecore_directfb}
|
2007-11-06 21:42:08 -08:00
|
|
|
BuildRequires: curl-devel, evas-devel, eet-devel %{?breq_lib_ecore_sdl}
|
2004-07-08 08:09:08 -07:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%description
|
2004-07-08 08:09:08 -07:00
|
|
|
Ecore is the event/X abstraction layer that makes doing selections,
|
|
|
|
Xdnd, general X stuff, 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.
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Ecore headers and development libraries.
|
|
|
|
Group: Development/Libraries
|
2004-07-08 08:09:08 -07:00
|
|
|
Requires: %{name} = %{version}
|
2007-02-22 17:16:02 -08:00
|
|
|
Requires: curl-devel, openssl-devel, evas-devel, eet-devel
|
2010-05-12 11:19:11 -07:00
|
|
|
Requires: ecore-con, ecore-evas, ecore-file, ecore-ipc
|
2006-12-05 13:50:39 -08:00
|
|
|
Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb}
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Ecore development files
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%package con
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore Connection Library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%description con
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore Connection Library
|
|
|
|
|
2006-12-05 13:50:39 -08:00
|
|
|
%if %{with lib_ecore_directfb}
|
|
|
|
%package directfb
|
|
|
|
Summary: Ecore DirectFB system functions
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%description directfb
|
|
|
|
Ecore DirectFB system functions
|
|
|
|
%endif
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%package evas
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore Evas Wrapper Library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%description evas
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore Evas Wrapper Library
|
|
|
|
|
2006-08-22 16:36:54 -07:00
|
|
|
%if %{with lib_ecore_fb}
|
2006-04-28 20:29:54 -07:00
|
|
|
%package fb
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore frame buffer system functions
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
2006-04-28 20:29:54 -07:00
|
|
|
%description fb
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore frame buffer system functions
|
2006-08-22 16:36:54 -07:00
|
|
|
%endif
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%package file
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore File Library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%description file
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore File Library
|
|
|
|
|
2008-07-23 00:11:56 -07:00
|
|
|
%if %{with lib_ecore_imf}
|
|
|
|
%package imf
|
|
|
|
Summary: Ecore IMF functions
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%description imf
|
|
|
|
Ecore IMF functions
|
|
|
|
%endif
|
|
|
|
|
2010-05-12 11:19:11 -07:00
|
|
|
%package input
|
|
|
|
Summary: Ecore input functions
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description input
|
|
|
|
Ecore input functions
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%package ipc
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore inter-process communication functions
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%description ipc
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore inter-process communication functions
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%package x
|
2006-04-20 00:44:08 -07:00
|
|
|
Summary: Ecore functions for dealing with the X Windows System
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%description x
|
2006-04-20 00:44:08 -07:00
|
|
|
Ecore functions for dealing with the X Windows System
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
%prep
|
2011-01-21 13:38:01 -08:00
|
|
|
%setup -q
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%build
|
2005-01-18 16:04:10 -08:00
|
|
|
CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
|
|
|
|
LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
|
2005-01-04 21:05:30 -08:00
|
|
|
export CFLAGS LDFLAGS
|
2007-11-06 21:42:08 -08:00
|
|
|
%{configure} --prefix=%{_prefix} \
|
|
|
|
%{?ac_with_lib_ecore_directfb} \
|
2008-07-23 00:11:56 -07:00
|
|
|
%{?ac_with_lib_ecore_fb} \
|
|
|
|
%{?ac_with_lib_ecore_imf} \
|
2007-11-06 21:42:08 -08:00
|
|
|
%{?ac_with_lib_ecore_sdl}
|
|
|
|
|
2004-07-08 08:09:08 -07:00
|
|
|
%{__make} %{?_smp_mflags} %{?mflags}
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%install
|
2004-07-08 08:09:08 -07:00
|
|
|
%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
|
2010-05-12 11:19:11 -07:00
|
|
|
%{find_lang} %{name}
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%post
|
2004-07-25 14:50:40 -07:00
|
|
|
/sbin/ldconfig || :
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%postun
|
2004-07-25 14:50:40 -07:00
|
|
|
/sbin/ldconfig || :
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%clean
|
2004-07-08 08:09:08 -07:00
|
|
|
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2010-05-12 11:19:11 -07:00
|
|
|
%files -f %{name}.lang
|
2004-07-08 08:09:08 -07:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING* README*
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore*.so.*
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
%files devel
|
2004-07-08 08:09:08 -07:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc doc/html
|
2005-06-08 13:51:06 -07:00
|
|
|
%{_libdir}/*.so
|
2011-07-24 08:36:22 -07:00
|
|
|
%{_libdir}/ecore/immodules/*.so
|
|
|
|
%{_libdir}/ecore/immodules/*.la
|
2006-04-20 00:44:08 -07:00
|
|
|
%{_libdir}/*.la
|
2005-06-08 13:51:06 -07:00
|
|
|
%{_libdir}/*.a
|
2005-03-10 07:19:43 -08:00
|
|
|
%{_libdir}/pkgconfig/*
|
2007-11-06 21:42:08 -08:00
|
|
|
#%{_datadir}/aclocal/*
|
2011-01-21 13:38:01 -08:00
|
|
|
%{_includedir}/ecore-1/*.h
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%files con
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_con*.so.*
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-12-05 13:50:39 -08:00
|
|
|
%if %{with lib_ecore_directfb}
|
|
|
|
%files directfb
|
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_directfb*.so.*
|
2006-12-05 13:50:39 -08:00
|
|
|
%endif
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%files evas
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_evas*.so.*
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-08-22 16:36:54 -07:00
|
|
|
%if %{with lib_ecore_fb}
|
2006-04-28 20:29:54 -07:00
|
|
|
%files fb
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_fb*.so.*
|
2006-08-22 16:36:54 -07:00
|
|
|
%endif
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%files file
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_file*.so.*
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2008-07-23 00:11:56 -07:00
|
|
|
%if %{with lib_ecore_imf}
|
|
|
|
%files imf
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libecore_imf*.so.*
|
|
|
|
%endif
|
|
|
|
|
2010-05-12 11:19:11 -07:00
|
|
|
%files input
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libecore_input*.so.*
|
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%files ipc
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_ipc*.so.*
|
2006-04-20 00:44:08 -07:00
|
|
|
|
2006-04-28 20:29:54 -07:00
|
|
|
%files x
|
2006-04-20 00:44:08 -07:00
|
|
|
%defattr(-, root, root)
|
2010-05-12 11:19:11 -07:00
|
|
|
%{_libdir}/libecore_x*.so.*
|