1 Name: org.tizen.sdl2_test
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: edje-bin
10 BuildRequires: pkgconfig(dlog)
13 BuildRequires: edje-bin
14 BuildRequires: embryo-bin
15 BuildRequires: gettext-devel
17 BuildRequires: pkgconfig(egl)
18 BuildRequires: pkgconfig(glesv2)
19 BuildRequires: pkgconfig(glesv1)
20 BuildRequires: pkgconfig(sdl2)
22 %define _packagedir /opt/usr/apps/%{name}
23 %define _resdir %{_packagedir}/res
34 Summary: sdl_test library development headers
35 Group: Development/Libraries
36 Requires: %{name} = %{version}
39 Web App Service library development headers
44 export CFLAGS="$CFLAGS %{?__vd_cflags} -Wno-error"
45 export CXXFLAGS="$CXXFLAGS %{?__vd_cxxflags} -Wno-error"
47 -DCMAKE_INSTALL_PREFIX=%{_packagedir} \
48 -DPACKAGE_NAME=%{name} \
49 -DVERSION=%{version} \
50 -DTIZEN_VERSION=%{tizen}
51 #make %{?jobs:-j%jobs}
52 #output different color when make error
53 make 2>&1 %{?jobs:-j%jobs} | sed -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
67 %defattr(-,root,root,-)
68 %attr(755,root,root) %{_packagedir}/*