blob: 81d09b7a2c66ace74e7c1f267f19ea8c9cb4b630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
Name: hal-backend-tdm-vc4
Version: 2.1.9
Release: 0
Summary: hal-backend-tdm module for vc4
Group: System/Libraries
License: MIT
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(hal-api-common)
BuildRequires: pkgconfig(hal-api-tdm)
BuildRequires: pkgconfig(hal-api-tbm)
ExclusiveArch: %{arm} aarch64
%description
description: hal tdm backend module for vc4
%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
%prep
%setup -q
cp %{SOURCE1001} .
%build
%reconfigure --prefix=%{_prefix} --libdir=%{_libdir} --disable-static \
--with-hal-libdir=%{_hal_libdir} \
CFLAGS="${CFLAGS} -Wall -Werror" \
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
# make lincense directory and move COPY to it.
mkdir -p %{buildroot}%{_hal_licensedir}/libhal-backend-tdm-vc4
cp -af COPYING %{buildroot}%{_hal_licensedir}/libhal-backend-tdm-vc4
%post
if [ -f %{_hal_libdir}/libhal-backend-tdm.so ]; then
rm -rf %{_hal_libdir}/libhal-backend-tdm.so
fi
ln -s libhal-backend-tdm-vc4.so %{_hal_libdir}/libhal-backend-tdm.so
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%{_hal_licensedir}/libhal-backend-tdm-vc4/COPYING
%{_hal_libdir}/libhal-backend-*.so*
|