commit d39b390b7ff01bd337b08f526b7640b697b3d65e Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Sun Mar 17 21:55:06 2024 +0100
- updated to 2023.4.0; preevailing preview python3 bindings are gone oneVPL.spec | 71 +++++++++++++++++-------------------------------------------- 1 file changed, 20 insertions(+), 51 deletions(-) --- diff --git a/oneVPL.spec b/oneVPL.spec index df11187..444cc64 100644 --- a/oneVPL.spec +++ b/oneVPL.spec @@ -1,30 +1,24 @@ -# -# Conditional build: -%bcond_without python3 # Python binding -# Summary: oneAPI Video Processing Library Summary(pl.UTF-8): Biblioteka przetwarzania obrazu oneAPI VPL Name: oneVPL -Version: 2022.0.0 +Version: 2023.4.0 Release: 1 License: MIT Group: Libraries -#Source0Download: https://github.com/oneapi-src/onevpl/releases -Source0: https://github.com/oneapi-src/oneVPL/archive/v%{version}/%{name}-%{version}.tar.gz -# Source0-md5: f812597060cfca4462071dc10fa37aa2 +#Source0Download: https://github.com/intel/libvpl/releases +Source0: https://github.com/intel/libvpl/archive/v%{version}/libvpl-%{version}.tar.gz +# Source0-md5: a3543cebb39823cbfd8b30193bb99e1c URL: https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html -BuildRequires: cmake >= 3.10.2 +BuildRequires: cmake >= 3.13.0 BuildRequires: libdrm-devel BuildRequires: libstdc++-devel >= 6:4.7 -%{?with_python3:BuildRequires: libstdc++-devel >= 6:7} BuildRequires: libva-devel >= 1.2 BuildRequires: libva-drm-devel >= 1.2 BuildRequires: pkgconfig -%{?with_python3:BuildRequires: python3-devel >= 1:3.2} -%{?with_python3:BuildRequires: python3-pybind11} BuildRequires: rpmbuild(macros) >= 1.605 BuildRequires: wayland-devel BuildRequires: xorg-lib-libpciaccess-devel +Obsoletes: python3-oneVPL < 2023 ExclusiveArch: %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -64,31 +58,13 @@ Example programs for oneVPL library. %description examples -l pl.UTF-8 Przykładowe programy do biblioteki oneVPL. -%package -n python3-oneVPL -Summary: Python binding for oneVPL library -Summary(pl.UTF-8): Wiązania Pythona do biblioteki oneVPL -Group: Libraries/Python -Requires: %{name} = %{version}-%{release} -Requires: libva >= 1.2 -Requires: libva-drm >= 1.2 - -%description -n python3-oneVPL -Python binding for oneVPL library. - -%description -n python3-oneVPL -l pl.UTF-8 -Wiązania Pythona do biblioteki oneVPL. - %prep -%setup -q +%setup -q -n libvpl-%{version} %build -install -d build -cd build -%cmake .. \ - %{?with_python3:-DBUILD_PYTHON_BINDING:BOOL=ON} \ - -DPYTHON_INSTALL_DIR:STRING=%{py3_sitedir} +%cmake -B build -%{__make} +%{__make} -C build %install rm -rf $RPM_BUILD_ROOT @@ -96,8 +72,11 @@ rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_examplesdir} +%{__mv} $RPM_BUILD_ROOT%{_datadir}/vpl/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + # packaged as %doc -%{__rm} $RPM_BUILD_ROOT%{_docdir}/*.txt +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vpl/licensing %clean rm -rf $RPM_BUILD_ROOT @@ -107,16 +86,14 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc LICENSE README.md third-party-programs.txt -%attr(755,root,root) %{_bindir}/decvpp_tool +%doc CHANGELOG.md LICENSE README.md SECURITY.md third-party-programs.txt %attr(755,root,root) %{_bindir}/vpl-inspect %attr(755,root,root) %{_libdir}/libvpl.so.*.* %attr(755,root,root) %ghost %{_libdir}/libvpl.so.2 -%dir %{_libdir}/oneVPL -%attr(755,root,root) %{_libdir}/oneVPL/libvpl_wayland.so -%dir %{_datadir}/oneVPL -%{_datadir}/oneVPL/env -%{_datadir}/oneVPL/modulefiles +%dir %{_libdir}/vpl +%attr(755,root,root) %{_libdir}/vpl/libvpl_wayland.so +%dir %{_sysconfdir}/vpl +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vpl/vars.sh %files devel %defattr(644,root,root,755) @@ -127,17 +104,9 @@ rm -rf $RPM_BUILD_ROOT %files examples %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/hello-decode -%attr(755,root,root) %{_bindir}/hello-encode -%attr(755,root,root) %{_bindir}/hello-vpp %attr(755,root,root) %{_bindir}/sample_decode %attr(755,root,root) %{_bindir}/sample_encode %attr(755,root,root) %{_bindir}/sample_multi_transcode %attr(755,root,root) %{_bindir}/sample_vpp -%{_datadir}/oneVPL/examples - -%if %{with python3} -%files -n python3-oneVPL -%defattr(644,root,root,755) -%attr(755,root,root) %{py3_sitedir}/pyvpl.cpython-*.so -%endif +%attr(755,root,root) %{_bindir}/system_analyzer +%{_examplesdir}/%{name}-%{version} ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/oneVPL.git/commitdiff/d39b390b7ff01bd337b08f526b7640b697b3d65e _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit