Fix build on RHEL5. Please provide feedback for these changes as I
authormej <mej@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 May 2010 18:19:11 +0000 (18:19 +0000)
committermej <mej@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 May 2010 18:19:11 +0000 (18:19 +0000)
realize they may have impact on other platforms/distros.  But this is
what ended up working on RHEL, unlike what Vincent was given by the
automake developer mailing list. :/

If this breaks, please discuss on the ML rather than simply
reverting.  We need to work toward a cooperative resolution.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@48783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
ecore.spec.in

index 743be11..a50e157 100644 (file)
@@ -306,6 +306,11 @@ m4_ifdef([AC_PROG_OBJC],
     AC_SUBST([OBJC])
     AC_SUBST([OBJCFLAGS])
    ])
+m4_ifndef([am__fastdepOBJC], [
+    AM_CONDITIONAL([am__fastdepOBJC], [false])
+    AC_SUBST([cocoa_ldflags])
+])
+
 AC_PROG_CXX
 AC_PROG_CC
 
@@ -874,18 +879,17 @@ AC_CHECK_HEADER([linux/fb.h],
 
 cocoa_ldflags="";
 have_cocoa="no"
-
-if test "x${have_gnu_objc}" = "xyes" ; then
-   AC_LANG_PUSH([Objective C])
-   AC_CHECK_HEADER([Cocoa/Cocoa.h],
-      [
-       have_cocoa="yes"
-       cocoa_ldflags="-framework Cocoa"
-      ],
-      [have_cocoa="no"])
-   AC_LANG_POP([Objective C])
-fi
-
+m4_ifdef([AC_PROG_OBJC], [
+    if test "x${have_gnu_objc}" = "xyes" ; then
+       AC_LANG_PUSH([Objective C])
+       AC_CHECK_HEADER([Cocoa/Cocoa.h],
+          [
+           have_cocoa="yes"
+           cocoa_ldflags="-framework Cocoa"
+          ])
+       AC_LANG_POP([Objective C])
+    fi
+])
 AC_SUBST(cocoa_ldflags)
 
 # basic pthread support
index 5ac5873..49a4e6b 100644 (file)
 %define ac_with_lib_ecore_imf       --%{?with_lib_ecore_imf:en}%{!?with_lib_ecore_imf:dis}able-ecore-imf
 %define ac_with_lib_ecore_sdl       --%{?with_lib_ecore_sdl:en}%{!?with_lib_ecore_sdl:dis}able-ecore-sdl
 
+%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
+
 Summary: Enlightened Core X interface library
 Name: @PACKAGE@
 Version: @VERSION@
-Release: 0.%(date '+%Y%m%d')
+Release: %{_rel}
 License: BSD
 Group: User Interface/X
 Source: %{name}-%{version}.tar.gz
@@ -62,20 +64,12 @@ Summary: Ecore headers and development libraries.
 Group: Development/Libraries
 Requires: %{name} = %{version}
 Requires: curl-devel, openssl-devel, evas-devel, eet-devel
-Requires: ecore-bin, ecore-con, ecore-config, ecore-evas, ecore-file, ecore-ipc
+Requires: ecore-con, ecore-evas, ecore-file, ecore-ipc
 Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb}
 
 %description devel
 Ecore development files
 
-%package bin
-Summary: Tools that support Ecore
-Group: Development/Libraries
-Requires: %{name} = %{version}
-
-%description bin
-Tools that support Ecore
-
 %package con
 Summary: Ecore Connection Library
 Group: Development/Libraries
@@ -84,14 +78,6 @@ Requires: %{name} = %{version}
 %description con
 Ecore Connection Library
 
-%package config
-Summary: Ecore Enlightened Property Library
-Group: Development/Libraries
-Requires: %{name} = %{version}
-
-%description config
-Ecore Enlightened Property Library
-
 %if %{with lib_ecore_directfb}
 %package directfb
 Summary: Ecore DirectFB system functions
@@ -135,6 +121,14 @@ Requires: %{name} = %{version}
 Ecore IMF functions
 %endif
 
+%package input
+Summary: Ecore input functions
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description input
+Ecore input functions
+
 %package ipc
 Summary: Ecore inter-process communication functions
 Group: Development/Libraries
@@ -168,6 +162,7 @@ export CFLAGS LDFLAGS
 
 %install
 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
+%{find_lang} %{name}
 
 %post
 /sbin/ldconfig || :
@@ -178,10 +173,10 @@ export CFLAGS LDFLAGS
 %clean
 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(-, root, root)
 %doc AUTHORS COPYING* README*
-%{_libdir}/libecore.so.*
+%{_libdir}/libecore*.so.*
 
 %files devel
 %defattr(-, root, root)
@@ -193,37 +188,29 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
 #%{_datadir}/aclocal/*
 %{_includedir}/*.h
 
-%files bin
-%defattr(-, root, root)
-%{_bindir}/ecore_config
-
 %files con
 %defattr(-, root, root)
-%{_libdir}/libecore_con.so.*
-
-%files config
-%defattr(-, root, root)
-%{_libdir}/libecore_config.so.*
+%{_libdir}/libecore_con*.so.*
 
 %if %{with lib_ecore_directfb}
 %files directfb
 %defattr(-, root, root)
-%{_libdir}/libecore_directfb.so.*
+%{_libdir}/libecore_directfb*.so.*
 %endif
 
 %files evas
 %defattr(-, root, root)
-%{_libdir}/libecore_evas.so.*
+%{_libdir}/libecore_evas*.so.*
 
 %if %{with lib_ecore_fb}
 %files fb
 %defattr(-, root, root)
-%{_libdir}/libecore_fb.so.*
+%{_libdir}/libecore_fb*.so.*
 %endif
 
 %files file
 %defattr(-, root, root)
-%{_libdir}/libecore_file.so.*
+%{_libdir}/libecore_file*.so.*
 
 %if %{with lib_ecore_imf}
 %files imf
@@ -231,10 +218,14 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libecore_imf*.so.*
 %endif
 
+%files input
+%defattr(-, root, root)
+%{_libdir}/libecore_input*.so.*
+
 %files ipc
 %defattr(-, root, root)
-%{_libdir}/libecore_ipc.so.*
+%{_libdir}/libecore_ipc*.so.*
 
 %files x
 %defattr(-, root, root)
-%{_libdir}/libecore_x.so.*
+%{_libdir}/libecore_x*.so.*