diff options
-rw-r--r-- | packaging/libtbm-vc4.spec | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packaging/libtbm-vc4.spec b/packaging/libtbm-vc4.spec index 1987bc5..5d9e9ce 100644 --- a/packaging/libtbm-vc4.spec +++ b/packaging/libtbm-vc4.spec @@ -46,13 +46,17 @@ make %{?_smp_mflags} %install rm -rf %{buildroot} +%make_install # make rule for tgl mkdir -p %{buildroot}%{_libdir}/udev/rules.d/ cp -af rules/99-libtbm-vc4.rules %{buildroot}%{_libdir}/udev/rules.d/ -cp -af rules/99-libhal-backend-tbm-vc4.rules %{buildroot}%{_libdir}/udev/rules.d/ -%make_install +# make rule and license files +mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d/ +cp -af rules/99-libhal-backend-tbm-vc4.rules %{buildroot}%{_hal_libdir}/udev/rules.d/ +mkdir -p %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-vc4 +cp -af COPYING %{buildroot}%{_hal_licensedir}/libhal-backend-tbm-vc4 %post if [ -f %{_libdir}/bufmgr/libtbm_default.so ]; then @@ -78,6 +82,6 @@ ln -s libhal-backend-tbm-vc4.so %{_hal_libdir}/libhal-backend-tbm.so %files -n hal-backend-tbm-vc4 %manifest libhal-backend-tbm-vc4.manifest -%license COPYING +%{_hal_licensedir}/libhal-backend-tbm-vc4/COPYING %{_hal_libdir}/libhal-backend-*.so* -%{_libdir}/udev/rules.d/99-libhal-backend-tbm-vc4.rules +%{_hal_libdir}/udev/rules.d/99-libhal-backend-tbm-vc4.rules |