(Slider) Update slider properties to new property system
[platform/core/uifw/dali-toolkit.git] / automated-tests / packaging / core-dali-unmanaged-tests.spec
1 %define MODULE_NAME dali-unmanaged
2 %define MODULE_LIBNAME dali-unmanaged
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 License, Version 2.0, Samsung Properietary
9 Source0:    %{name}-%{version}.tar.gz
10 Requires: dali
11 BuildRequires:  dali-devel
12 BuildRequires:  dali-integration-devel
13 BuildRequires:  pkgconfig(dali-core)
14 BuildRequires:  pkgconfig(dali)
15 BuildRequires:  libxml2-devel
16 BuildRequires:  cmake
17
18 %description
19 Core API unit TC (%{name})
20
21 %prep
22 %setup -q
23
24 %build
25
26 %define PREFIX "%{_libdir}/%{name}"
27
28 export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
29 cd automated-tests
30 cmake . -DMODULE="%{MODULE_NAME}" -DCMAKE_INSTALL_PREFIX=%{_prefix}
31
32 make %{?jobs:-j%jobs}
33
34 %install
35 rm -rf %{buildroot}
36 cd automated-tests
37 %make_install
38 mkdir -p %{buildroot}/opt/usr/share/license
39 cp %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/opt/usr/share/license/%{name}
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 /opt/usr/share/license/%{name}
52 /tmp/add_all_smack_rule.sh
53 /tmp/all_smack.rule