forked from enlightenment/efl
Tue Dec 5 16:50:38 2006 Michael Jennings (mej)
Fix spec file and add directfb support. ---------------------------------------------------------------------- SVN revision: 27362
This commit is contained in:
parent
ee904fa26a
commit
647edd2a27
|
@ -16,16 +16,19 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
## disabled features
|
## disabled features
|
||||||
%bcond_with lib_ecore_fb
|
|
||||||
|
|
||||||
## not setup yet...
|
|
||||||
## enabled features
|
## enabled features
|
||||||
##%bcond_without module_engine_software_x11
|
##%bcond_without module_engine_software_x11
|
||||||
|
%bcond_without lib_ecore_fb
|
||||||
|
%bcond_without lib_ecore_directfb
|
||||||
|
|
||||||
|
|
||||||
# This just keeps a missing doxygen from killing the build.
|
# This just keeps a missing doxygen from killing the build.
|
||||||
%define _missing_doc_files_terminate_build 0
|
%define _missing_doc_files_terminate_build 0
|
||||||
|
|
||||||
|
%define ac_with_lib_ecore_fb --%{?with_lib_ecore_fb:en}%{!?with_lib_ecore_fb:dis}able-ecore-fb
|
||||||
|
%define ac_with_lib_ecore_directfb --%{?with_lib_ecore_directfb:en}%{!?with_lib_ecore_directfb:dis}able-ecore-dfb
|
||||||
|
|
||||||
Summary: Enlightened Core X interface library
|
Summary: Enlightened Core X interface library
|
||||||
Name: @PACKAGE@
|
Name: @PACKAGE@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
|
@ -53,9 +56,9 @@ Summary: Ecore headers and development libraries.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: openssl-devel, evas-devel, eet-devel
|
Requires: openssl-devel, evas-devel, eet-devel
|
||||||
Requires: ecore-con, ecore-config, ecore-dbus, ecore-desktop, ecore-evas, ecore-file, ecore-ipc, ecore-job, ecore-txt, ecore-x
|
Requires: ecore-con, ecore-config, ecore-dbus, ecore-desktop,
|
||||||
##removed fb
|
Requires: ecore-evas, ecore-file, ecore-ipc, ecore-job, ecore-txt
|
||||||
##Requires: ecore-con, ecore-config, ecore-dbus, ecore-desktop, ecore-evas, ecore-fb, ecore-file, ecore-ipc, ecore-job, ecore-txt, ecore-x
|
Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Ecore development files
|
Ecore development files
|
||||||
|
@ -100,6 +103,15 @@ Requires: %{name} = %{version}
|
||||||
%description desktop
|
%description desktop
|
||||||
Ecore freedesktop.org .desktop, icon, menu parsing Library
|
Ecore freedesktop.org .desktop, icon, menu parsing Library
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
%package evas
|
%package evas
|
||||||
Summary: Ecore Evas Wrapper Library
|
Summary: Ecore Evas Wrapper Library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
@ -115,9 +127,6 @@ Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
%description fb
|
%description fb
|
||||||
Ecore frame buffer system functions
|
Ecore frame buffer system functions
|
||||||
%define ac_with_lib_ecore_fb --enable-ecore-fb
|
|
||||||
%else
|
|
||||||
%define ac_with_lib_ecore_fb --disable-ecore-fb
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package file
|
%package file
|
||||||
|
@ -160,8 +169,6 @@ Requires: %{name} = %{version}
|
||||||
%description x
|
%description x
|
||||||
Ecore functions for dealing with the X Windows System
|
Ecore functions for dealing with the X Windows System
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
|
@ -169,8 +176,7 @@ Ecore functions for dealing with the X Windows System
|
||||||
CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
|
CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions"
|
||||||
LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
|
LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}"
|
||||||
export CFLAGS LDFLAGS
|
export CFLAGS LDFLAGS
|
||||||
%{configure} --prefix=%{_prefix} --disable-ecore-dfb \
|
%{configure} --prefix=%{_prefix} %{?ac_with_lib_ecore_fb} %{?ac_with_lib_ecore_directfb}
|
||||||
%{ac_with_lib_ecore_fb}
|
|
||||||
%{__make} %{?_smp_mflags} %{?mflags}
|
%{__make} %{?_smp_mflags} %{?mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
@ -221,6 +227,12 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libecore_desktop.so.*
|
%{_libdir}/libecore_desktop.so.*
|
||||||
|
|
||||||
|
%if %{with lib_ecore_directfb}
|
||||||
|
%files directfb
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/libecore_directfb.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files evas
|
%files evas
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libecore_evas.so.*
|
%{_libdir}/libecore_evas.so.*
|
||||||
|
|
Loading…
Reference in New Issue