2019-06-06 14:59:45 +02:00
|
|
|
#
|
2019-08-26 10:27:24 +02:00
|
|
|
# spec file for package libmfx
|
2019-06-06 14:59:45 +02:00
|
|
|
#
|
2024-02-03 12:43:52 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-06-06 14:59:45 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-26 10:27:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-06-06 14:59:45 +02:00
|
|
|
#
|
|
|
|
|
2019-08-26 10:27:24 +02:00
|
|
|
|
2020-08-22 22:34:36 +02:00
|
|
|
%global sover 1
|
2019-06-06 14:59:45 +02:00
|
|
|
Name: libmfx
|
2020-08-22 22:34:36 +02:00
|
|
|
%define lname libmfx%{sover}
|
2023-05-30 10:15:29 +02:00
|
|
|
Version: 23.2.2
|
2019-06-06 14:59:45 +02:00
|
|
|
Release: 0
|
2019-06-10 12:28:30 +02:00
|
|
|
Summary: The Intel Media SDK
|
2019-06-06 14:59:45 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/C and C++
|
2019-08-26 10:27:24 +02:00
|
|
|
URL: https://github.com/Intel-Media-SDK/MediaSDK
|
2021-11-29 17:42:42 +01:00
|
|
|
Source0: %{url}/archive/intel-mediasdk-%{version}.tar.gz
|
2024-02-03 12:43:52 +01:00
|
|
|
Source1: supplements.inc
|
|
|
|
Source2: generate-supplements.sh
|
2019-06-07 16:32:36 +02:00
|
|
|
Patch0: cmake-sle12.patch
|
2023-03-08 10:43:21 +01:00
|
|
|
Patch1: gcc13-fix.patch
|
2019-06-06 14:59:45 +02:00
|
|
|
BuildRequires: cmake
|
2019-06-11 17:17:17 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%else
|
2019-06-06 14:59:45 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-06-11 17:17:17 +02:00
|
|
|
%endif
|
2019-06-06 14:59:45 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libva)
|
2019-06-11 17:17:17 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
2019-06-06 15:20:10 +02:00
|
|
|
ExclusiveArch: x86_64
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%description
|
2019-08-26 10:27:24 +02:00
|
|
|
The Intel Media SDK provides a plain C API to access hardware-accelerated
|
2019-06-11 09:06:28 +02:00
|
|
|
video decode, encode and filtering on Intel Gen graphics hardware
|
2019-08-26 10:27:24 +02:00
|
|
|
platforms. The implementation is written in C++11, with parts in C-for-Media
|
2019-06-06 14:59:45 +02:00
|
|
|
(CM).
|
|
|
|
|
|
|
|
%package -n %lname
|
2019-06-11 09:06:28 +02:00
|
|
|
Summary: The Intel Media SDK
|
2019-06-06 14:59:45 +02:00
|
|
|
Group: System/Libraries
|
2024-02-03 12:43:52 +01:00
|
|
|
%include %{S:1}
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
2019-08-26 10:27:24 +02:00
|
|
|
The Intel Media SDK provides a plain C API to access hardware-accelerated
|
2019-06-11 09:06:28 +02:00
|
|
|
video decode, encode and filtering on Intel Gen graphics hardware
|
2019-08-26 10:27:24 +02:00
|
|
|
platforms. The implementation is written in C++11, with parts in C-for-Media
|
2019-06-06 14:59:45 +02:00
|
|
|
(CM).
|
|
|
|
|
|
|
|
%package devel
|
2019-08-26 10:27:24 +02:00
|
|
|
Summary: Development files Intel Media SDK
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %lname = %version
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the development headers and pkgconfig files for
|
2019-06-11 09:06:28 +02:00
|
|
|
the Intel Media SDK.
|
2019-06-06 14:59:45 +02:00
|
|
|
|
2020-08-22 22:34:36 +02:00
|
|
|
%package samples
|
|
|
|
Summary: Examples for the Intel Media SDK
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
|
|
|
%description samples
|
|
|
|
This package contains example applications for the Intel Media SDK.
|
|
|
|
|
2019-06-06 14:59:45 +02:00
|
|
|
%prep
|
2020-08-22 22:34:36 +02:00
|
|
|
%autosetup -p1 -n MediaSDK-intel-mediasdk-%{version}
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%build
|
2021-11-29 17:42:42 +01:00
|
|
|
mkdir -p build
|
2019-06-06 14:59:45 +02:00
|
|
|
pushd build
|
2019-06-11 17:17:17 +02:00
|
|
|
# libITT and cm compiler not available on openSUSE
|
2019-06-10 12:40:42 +02:00
|
|
|
cmake \
|
2019-06-11 17:17:17 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
2019-08-26 10:27:24 +02:00
|
|
|
-DCMAKE_CXX_COMPILER="%{_bindir}/g++-7" \
|
2019-06-11 17:17:17 +02:00
|
|
|
%endif
|
2019-08-26 10:27:24 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
2019-06-11 17:17:17 +02:00
|
|
|
-DENABLE_X11_DRI3:BOOL=ON \
|
|
|
|
-DENABLE_WAYLAND:BOOL=ON \
|
|
|
|
-DENABLE_TEXTLOG:BOOL=ON \
|
|
|
|
-DENABLE_STAT:BOOL=ON \
|
2020-08-22 22:34:36 +02:00
|
|
|
-DBUILD_TESTS:BOOL=OFF \
|
2024-02-05 10:17:07 +01:00
|
|
|
-DBUILD_TOOLS:BOOL=OFF \
|
2019-06-11 17:17:17 +02:00
|
|
|
-DENABLE_ITT:BOOL=OFF \
|
|
|
|
-DBUILD_KERNELS:BOOL=OFF \
|
2024-02-05 10:17:07 +01:00
|
|
|
-DBUILD_TUTORIALS:BOOL=OFF \
|
|
|
|
-DBUILD_SAMPLES:BOOL=OFF \
|
2019-06-07 16:32:36 +02:00
|
|
|
..
|
2019-06-06 14:59:45 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
|
|
|
%make_install
|
|
|
|
popd
|
2024-02-05 10:17:07 +01:00
|
|
|
#mkdir -p %{buildroot}/%{_libdir}/mfx/samples
|
|
|
|
#mv %{buildroot}/%{_datadir}/mfx/samples/* \
|
|
|
|
# %{buildroot}/%{_libdir}/mfx/samples
|
|
|
|
#rmdir %{buildroot}/%{_datadir}/mfx/samples
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2019-06-11 17:17:17 +02:00
|
|
|
%files
|
2021-09-22 13:07:33 +02:00
|
|
|
%doc CHANGELOG.md CODEOWNERS README.rst
|
2024-02-03 20:20:24 +01:00
|
|
|
%exclude %{_bindir}/asg-hevc
|
|
|
|
%exclude %{_bindir}/hevc_fei_extractor
|
|
|
|
%exclude %{_bindir}/mfx-tracer-config
|
2019-06-11 17:17:17 +02:00
|
|
|
|
|
|
|
%files -n %lname
|
2021-11-29 17:42:42 +01:00
|
|
|
%license LICENSE
|
2024-02-03 20:20:24 +01:00
|
|
|
%exclude %{_libdir}/libmfx.so.%{sover}
|
|
|
|
%exclude %{_libdir}/libmfx.so.%{sover}.*
|
2020-08-22 22:34:36 +02:00
|
|
|
%{_libdir}/libmfxhw64.so.%{sover}
|
|
|
|
%{_libdir}/libmfxhw64.so.%{sover}.*
|
2024-02-03 20:20:24 +01:00
|
|
|
%exclude %{_libdir}/libmfx-tracer.so.%{sover}
|
|
|
|
%exclude %{_libdir}/libmfx-tracer.so.%{sover}.*
|
2019-06-06 14:59:45 +02:00
|
|
|
%dir %{_libdir}/mfx
|
|
|
|
%{_libdir}/mfx/libmfx_*_hw64.so
|
2019-08-26 10:27:24 +02:00
|
|
|
%dir %{_datadir}/mfx
|
|
|
|
%{_datadir}/mfx/plugins.cfg
|
2019-06-06 14:59:45 +02:00
|
|
|
|
2024-02-03 20:20:24 +01:00
|
|
|
#%files samples
|
|
|
|
%exclude %{_libdir}/mfx/samples/
|
2020-08-22 22:34:36 +02:00
|
|
|
|
2024-02-03 20:20:24 +01:00
|
|
|
#%files devel
|
|
|
|
%exclude %{_includedir}/mfx/
|
|
|
|
%exclude %{_libdir}/libmfx.so
|
|
|
|
%exclude %{_libdir}/libmfxhw64.so
|
|
|
|
%exclude %{_libdir}/libmfx-tracer.so
|
|
|
|
%exclude %{_libdir}/pkgconfig/*.pc
|
2019-06-06 14:59:45 +02:00
|
|
|
|
|
|
|
%changelog
|