AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR(configure.ac)
-AC_PREFIX_DEFAULT(/opt/home/app)
+AC_PREFIX_DEFAULT(/usr/share/enlightenment)
PKG_CHECK_MODULES(EET, [eet])
AC_ARG_WITH(eet-eet,
AC_CONFIG_FILES([
Makefile
arm/Makefile
-arm/opt/Makefile
-arm/opt/home/Makefile
-arm/opt/home/app/Makefile
-arm/opt/home/app/.e/Makefile
-arm/opt/home/app/.e/e/Makefile
-arm/opt/home/app/.e/e/config/Makefile
-arm/opt/home/app/.e/e/config/samsung/Makefile
+arm/usr/Makefile
+arm/usr/share/Makefile
+arm/usr/share/enlightenment/Makefile
+arm/usr/share/enlightenment/config/Makefile
+arm/usr/share/enlightenment/config/e/Makefile
+arm/usr/share/enlightenment/config/e/config/Makefile
+arm/usr/share/enlightenment/config/e/config/samsung/Makefile
i386/Makefile
-i386/opt/Makefile
-i386/opt/home/Makefile
-i386/opt/home/app/Makefile
-i386/opt/home/app/.e/Makefile
-i386/opt/home/app/.e/e/Makefile
-i386/opt/home/app/.e/e/config/Makefile
-i386/opt/home/app/.e/e/config/samsung/Makefile
+i386/usr/Makefile
+i386/usr/share/Makefile
+i386/usr/share/enlightenment/Makefile
+i386/usr/share/enlightenment/config/Makefile
+i386/usr/share/enlightenment/config/e/Makefile
+i386/usr/share/enlightenment/config/e/config/Makefile
+i386/usr/share/enlightenment/config/e/config/samsung/Makefile
emulator/Makefile
-emulator/opt/Makefile
-emulator/opt/home/Makefile
-emulator/opt/home/app/Makefile
-emulator/opt/home/app/.e/Makefile
-emulator/opt/home/app/.e/e/Makefile
-emulator/opt/home/app/.e/e/config/Makefile
-emulator/opt/home/app/.e/e/config/samsung/Makefile
+emulator/usr/Makefile
+emulator/usr/share/Makefile
+emulator/usr/share/enlightenment/Makefile
+emulator/usr/share/enlightenment/config/Makefile
+emulator/usr/share/enlightenment/config/e/Makefile
+emulator/usr/share/enlightenment/config/e/config/Makefile
+emulator/usr/share/enlightenment/config/e/config/samsung/Makefile
])
AC_OUTPUT
%build
%autogen
-%configure --prefix=/opt/home/app
+%configure --prefix=/usr/share/enlightenment
make
%install
%ifarch %{arm}
# ARM build target
-%__mkdir_p %{buildroot}/opt/home/app/.e/apps
-%__cp -afr %{_arch}/opt/home/app/.e/apps/* %{buildroot}/opt/home/app/.e/apps
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/apps
+%__cp -afr %{_arch}/usr/share/enlightenment/config/apps/* %{buildroot}/usr/share/enlightenment/config/apps
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/applications
-%__cp -afr %{_arch}/opt/home/app/.e/e/applications/* %{buildroot}/opt/home/app/.e/e/applications
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/applications
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/applications/* %{buildroot}/usr/share/enlightenment/config/e/applications
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/backgrounds
-%__cp -afr %{_arch}/opt/home/app/.e/e/backgrounds/* %{buildroot}/opt/home/app/.e/e/backgrounds
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/backgrounds
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/backgrounds/* %{buildroot}/usr/share/enlightenment/config/e/backgrounds
-%__cp -afr %{_arch}/opt/home/app/.e/e/config/*.cfg %{buildroot}/opt/home/app/.e/e/config
-%__cp -afr %{_arch}/opt/home/app/.e/e/config/samsung/*.cfg %{buildroot}/opt/home/app/.e/e/config/samsung
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/config/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/
+
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config/samsung
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/config/samsung/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/samsung/
%else
%if 0%{?simulator}
# emul build target
-%__mkdir_p %{buildroot}/opt/home/app/.e/apps
-%__cp -afr emulator/opt/home/app/.e/apps/* %{buildroot}/opt/home/app/.e/apps
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/apps
+%__cp -afr emulator/usr/share/enlightenment/config/apps/* %{buildroot}/usr/share/enlightenment/config/apps
+
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/applications
+%__cp -afr emulator/usr/share/enlightenment/config/e/applications/* %{buildroot}/usr/share/enlightenment/config/e/applications
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/applications
-%__cp -afr emulator/opt/home/app/.e/e/applications/* %{buildroot}/opt/home/app/.e/e/applications
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/backgrounds
+%__cp -afr emulator/usr/share/enlightenment/config/e/backgrounds/* %{buildroot}/usr/share/enlightenment/config/e/backgrounds
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/backgrounds
-%__cp -afr emulator/opt/home/app/.e/e/backgrounds/* %{buildroot}/opt/home/app/.e/e/backgrounds
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config
+%__cp -afr emulator/usr/share/enlightenment/config/e/config/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/
-%__cp -afr emulator/opt/home/app/.e/e/config/*.cfg %{buildroot}/opt/home/app/.e/e/config
-%__cp -afr emulator/opt/home/app/.e/e/config/samsung/*.cfg %{buildroot}/opt/home/app/.e/e/config/samsung
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config/samsung
+%__cp -afr emulator/usr/share/enlightenment/config/e/config/samsung/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/samsung/
%else
# IA build target
-%__mkdir_p %{buildroot}/opt/home/app/.e/apps
-%__cp -afr %{_arch}/opt/home/app/.e/apps/* %{buildroot}/opt/home/app/.e/apps
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/apps
+%__cp -afr %{_arch}/usr/share/enlightenment/config/apps/* %{buildroot}/usr/share/enlightenment/config/apps
+
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/applications
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/applications/* %{buildroot}/usr/share/enlightenment/config/e/applications
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/applications
-%__cp -afr %{_arch}/opt/home/app/.e/e/applications/* %{buildroot}/opt/home/app/.e/e/applications
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/backgrounds
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/backgrounds/* %{buildroot}/usr/share/enlightenment/config/e/backgrounds
-%__mkdir_p %{buildroot}/opt/home/app/.e/e/backgrounds
-%__cp -afr %{_arch}/opt/home/app/.e/e/backgrounds/* %{buildroot}/opt/home/app/.e/e/backgrounds
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/config/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/
-%__cp -afr %{_arch}/opt/home/app/.e/e/config/*.cfg %{buildroot}/opt/home/app/.e/e/config
-%__cp -afr %{_arch}/opt/home/app/.e/e/config/samsung/*.cfg %{buildroot}/opt/home/app/.e/e/config/samsung
+%__mkdir_p %{buildroot}/usr/share/enlightenment/config/e/config/samsung
+%__cp -afr %{_arch}/usr/share/enlightenment/config/e/config/samsung/*.cfg %{buildroot}/usr/share/enlightenment/config/e/config/samsung/
%endif
%endif
%__mkdir_p %{buildroot}%{_sysconfdir}/skel
- %__cp -af %{buildroot}/opt/home/app/.e %{buildroot}%{_sysconfdir}/skel/.e
+ %__cp -af %{buildroot}/usr/share/enlightenment/config %{buildroot}%{_sysconfdir}/skel/config
%pre
-if [ ! -e "home/app" ]
+if [ ! -e "/usr/share/enlightenment/config" ]
then
- %__mkdir_p /home/app
+ mkdir -p /usr/share/enlightenment/config
fi
-chown 5000:5000 /home/app
-chmod 755 /home/app
+chmod 755 /usr/share/enlightenment/config
%post
-# XXX comptibility with sysvinit-based images
-chown -R 5000:5000 /opt/home/app
+chmod 644 /usr/share/enlightenment/config/e/config/*.cfg
+chmod 644 /usr/share/enlightenment/config/e/config/samsung/*.cfg
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-/opt/home/app/.e
+/usr/share/enlightenment/config
/usr/share/license/%{name}
-%config %{_sysconfdir}/skel/.e
+%config %{_sysconfdir}/skel/config