package version up to 2.4.4
[platform/adaptation/samsung_exynos/libtbm-exynos.git] / packaging / libtbm-exynos.spec
1 Name:           libtbm-exynos
2 Version:        2.4.4
3 Release:        1
4 License:        MIT
5 Summary:        Tizen Buffer Manager - exynos backend
6 Group:          System/Libraries
7 Source0:        %{name}-%{version}.tar.gz
8 Source1001:         %{name}.manifest
9
10 BuildRequires:  pkgconfig(libdrm)
11 BuildRequires:  pkgconfig(libdrm_exynos)
12 BuildRequires:  pkgconfig(libtbm)
13 BuildRequires:  pkgconfig(dlog)
14 BuildRequires:  pkgconfig(libudev)
15 BuildRequires:  pkgconfig(capi-system-info)
16 ExclusiveArch:  %{arm} aarch64
17
18 %description
19 descriptionion: Tizen Buffer manager backend module for exynos
20
21 %prep
22 %setup -q
23 cp %{SOURCE1001} .
24
25 %build
26
27 %reconfigure --prefix=%{_prefix} --libdir=%{_libdir}/bufmgr \
28                         CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
29
30 make %{?_smp_mflags}
31
32 %install
33 rm -rf %{buildroot}
34
35 # make rule for tgl
36 mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
37 cp -af rules/99-libtbm_exynos.rules %{buildroot}%{_libdir}/udev/rules.d/
38
39 %make_install
40
41 %post
42 if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then
43     rm -rf %{_libdir}/bufmgr/libtbm_default.so
44 fi
45 ln -s libtbm_exynos.so %{_libdir}/bufmgr/libtbm_default.so
46
47 %postun -p /sbin/ldconfig
48
49 %files
50 %manifest %{name}.manifest
51 %license COPYING
52 %{_libdir}/bufmgr/libtbm_*.so*
53 %{_libdir}/udev/rules.d/99-libtbm_exynos.rules