2 # This spec file is used to build DALi Extensions
4 # gbs will try to download the build.conf for the platform automatically from the repo location when
5 # performing a gbs build ( use gbs build -v to see it download location) E.g.
6 # http://download.tizen.org/snapshots/tizen/tv/tizen-tv/repos/arm-wayland/packages/repodata/xxxx-build.conf.gz
9 Summary: The DALi Tizen Extensions
12 Group: System/Libraries
13 License: Apache-2.0 and BSD-3-Clause and MIT
14 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-extensions.git;a=summary
15 Source0: %{name}-%{version}.tar.gz
17 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
20 BuildRequires: pkgconfig
21 BuildRequires: pkgconfig(dali-core)
22 BuildRequires: pkgconfig(dali-adaptor)
23 BuildRequires: pkgconfig(dali-toolkit)
24 BuildRequires: pkgconfig(dlog)
29 ##############################
31 ##############################
33 Summary: Development components for the DALi Extension
34 Group: Development/Building
35 Requires: %{name} = %{version}-%{release}
38 Development components for the DALi Tizen Extensions - public headers and package configs
40 V##############################
42 ##############################
44 %package key-extension
45 Summary: Plugin to support extension keys for Dali
46 Group: System/Libraries
48 %description key-extension
49 Plugin to support extension keys for Dali
51 ##############################
53 ##############################
57 #Use TZ_PATH when tizen version is 3.x or greater
59 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
60 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
61 %define dev_include_path %{_includedir}
63 ##############################
65 ##############################
68 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
69 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
72 cd %{_builddir}/%{name}-%{version}/build/tizen
75 %configure --prefix=$PREFIX \
80 ##############################
82 ##############################
86 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
91 ##############################
92 # Post Install new package
93 ##############################
102 ##############################
103 # Pre Uninstall old package
104 ##############################
108 ##############################
109 # Post Uninstall old package
110 ##############################
115 %postun key-extension
119 ##############################
120 # Files in Binary Packages
121 ##############################
124 %manifest dali-extension.manifest
125 %defattr(-,root,root,-)
129 %defattr(-,root,root,-)
130 %{_includedir}/%{name}/
131 %{_libdir}/pkgconfig/*.pc
134 %manifest dali-extension.manifest
135 %defattr(-,root,root,-)
136 %{_libdir}/libdali-key-extension.so*