Name: nx-video-api
Version: 1.1.2
-Release: 0
+Release: 1
License: LGPL-2.1+
Summary: Nexell video APIs
Group: Development/Libraries
%build
export CFLAGS="-I/usr/include/libdrm"
autoreconf -v --install || exit 1
-%configure
+%configure --libdir=%{_hal_libdir}
make %{?_smp_mflags}
%postun -p /sbin/ldconfig
%install
rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_hal_licensedir}/%{name}
+cp LICENSE.LGPLv2+ %{buildroot}%{_hal_licensedir}/%{name}
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -delete
%files
%manifest nx-video-api.manifest
%defattr(-,root,root,-)
-%{_libdir}/libnx_video_api.so
-%{_libdir}/libnx_video_api.so.*
-%license LICENSE.LGPLv2+
+%{_hal_libdir}/libnx_video_api.so
+%{_hal_libdir}/libnx_video_api.so.*
+%{_hal_licensedir}/%{name}/*
%files devel
%{_includedir}/*
-%license LICENSE.LGPLv2+
+