%bcond_with x %bcond_with wayland Name: e-mod-tizen-eom Version: 0.1.3 Release: 1 Summary: The Enlightenment eom Module for Tizen URL: http://www.enlightenment.org Group: Graphics & UI Framework/Other Source0: %{name}-%{version}.tar.gz License: BSD-2-Clause BuildRequires: pkgconfig(enlightenment) BuildRequires: pkgconfig(eom-server) BuildRequires: gettext %if %{with x} BuildRequires: pkgconfig(x11) %endif %if %{with wayland} BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(libtbm) BuildRequires: pkgconfig(wayland-tbm-server) %endif BuildRequires: pkgconfig(dlog) %description This package is a the Enlightenment eom Module for Tizen. %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} %prep %setup -q %build export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections" export CFLAGS+=" -Wall -Werror -g -fPIC -rdynamic ${GC_SECTIONS_FLAGS}" export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib" %autogen %if %{with wayland} %configure --prefix=/usr --enable-wayland-only %else %configure --prefix=/usr %endif make %install rm -rf %{buildroot} # install make install DESTDIR=%{buildroot} # clear useless textual files find %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.la | xargs rm find %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.a | xargs rm %files %defattr(-,root,root,-) %{_libdir}/enlightenment/modules/e-mod-tizen-eom %license COPYING