[dali_1.9.31] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / automated-tests / packaging / core-dali-toolkit-tests.spec
1 %define MODULE_NAME dali-toolkit
2 %define MODULE_LIBNAME dali-toolkit
3 Name:       core-%{MODULE_NAME}-tests
4 Summary:    Core API unit TC (%{name})
5 Version:    0.1
6 Release:    0
7 Group:      Development/Tools
8 License:    Apache-2.0 and OFL-1.1
9 Source0:    %{name}-%{version}.tar.gz
10 Requires:       dali
11 Requires:       dali-adaptor
12 Requires:       dali-toolkit
13 BuildRequires:  dali-integration-devel
14 BuildRequires:  pkgconfig(dali-core)
15 BuildRequires:  pkgconfig(dali)
16 BuildRequires:  pkgconfig(dali-toolkit)
17 BuildRequires:  libxml2-devel
18 BuildRequires:  cmake
19
20 %description
21 Core API unit TC (%{name})
22
23 %prep
24 %setup -q
25
26 %build
27
28 %define PREFIX "%{_libdir}/%{name}"
29
30 export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
31 cd automated-tests
32 cmake . -DMODULE="%{MODULE_NAME}" -DCMAKE_INSTALL_PREFIX=%{_prefix}
33
34 make %{?jobs:-j%jobs}
35
36 %install
37 rm -rf %{buildroot}
38 cd automated-tests
39 %make_install
40 mkdir -p %{buildroot}/tmp/
41 cp %{_builddir}/%{name}-%{version}/automated-tests/scripts/add_all_smack_rule.sh %{buildroot}/tmp/
42 cp %{_builddir}/%{name}-%{version}/automated-tests/scripts/all_smack.rule %{buildroot}/tmp/
43
44 %post
45
46 %postun
47
48
49 %files
50 /opt/usr/bin/*
51 /tmp/add_all_smack_rule.sh
52 /tmp/all_smack.rule
53 %license LICENSE