6f1f88b
%undefine __cmake_in_source_build
86afa6e
%global mfx_abi 1
c23e9d6
%global mfx_version %{mfx_abi}.35
86afa6e
86afa6e
Summary: Hardware-accelerated video processing on Intel integrated GPUs library
86afa6e
Name: intel-mediasdk
4cdab56
Version: 21.1.3
d88bd89
Release: 1%{?dist}
86afa6e
URL: http://mediasdk.intel.com
86afa6e
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/%{name}-%{version}.tar.gz
86afa6e
License: MIT
86afa6e
ExclusiveArch: x86_64
86afa6e
BuildRequires: cmake3
86afa6e
BuildRequires: gcc-c++
86afa6e
BuildRequires: gmock-devel
86afa6e
BuildRequires: libdrm-devel
86afa6e
BuildRequires: libpciaccess-devel
86afa6e
BuildRequires: libva-devel
86afa6e
BuildRequires: libX11-devel
86afa6e
BuildRequires: ocl-icd-devel
86afa6e
BuildRequires: wayland-devel
86afa6e
Obsoletes: libmfx < %{mfx_version}
86afa6e
Provides: libmfx = %{mfx_version}
86afa6e
Provides: libmfx%{_isa} = %{mfx_version}
86afa6e
86afa6e
%global __provides_exclude_from ^%{_libdir}/mfx/libmfx_.*\\.so$
86afa6e
86afa6e
%description
86afa6e
Intel Media SDK provides a plain C API to access hardware-accelerated video
86afa6e
decode, encode and filtering on Intel Gen graphics hardware platforms.
86afa6e
Implementation written in C++ 11 with parts in C-for-Media (CM).
86afa6e
86afa6e
Supported video encoders: HEVC, AVC, MPEG-2, JPEG, VP9 Supported video decoders:
86afa6e
HEVC, AVC, VP8, VP9, MPEG-2, VC1, JPEG Supported video pre-processing filters:
86afa6e
Color Conversion, Deinterlace, Denoise, Resize, Rotate, Composition
86afa6e
86afa6e
%package devel
86afa6e
Summary: SDK for hardware-accelerated video processing on Intel integrated GPUs
86afa6e
Provides: libmfx-devel = %{mfx_version}
86afa6e
Provides: libmfx%{_isa}-devel = %{mfx_version}
86afa6e
Requires: %{name}%{_isa} = %{version}-%{release}
86afa6e
86afa6e
%description devel
86afa6e
Intel Media SDK provides a plain C API to access hardware-accelerated video
86afa6e
decode, encode and filtering on Intel Gen graphics hardware platforms.
86afa6e
Implementation written in C++ 11 with parts in C-for-Media (CM).
86afa6e
86afa6e
Supported video encoders: HEVC, AVC, MPEG-2, JPEG, VP9 Supported video decoders:
86afa6e
HEVC, AVC, VP8, VP9, MPEG-2, VC1, JPEG Supported video pre-processing filters:
86afa6e
Color Conversion, Deinterlace, Denoise, Resize, Rotate, Composition
86afa6e
6f1f88b
%package tracer
6f1f88b
Summary: Dump the calls of an application to the Intel Media SDK library
6f1f88b
Requires: %{name}%{_isa} = %{version}-%{release}
6f1f88b
6f1f88b
%description tracer
6f1f88b
Media SDK Tracer is a tool which permits to dump logging information from the
6f1f88b
calls of the application to the Media SDK library. Trace log obtained from this
6f1f88b
tool is a recommended information to provide to Media SDK team on submitting
6f1f88b
questions and issues.
6f1f88b
86afa6e
%prep
86afa6e
%setup -q -n MediaSDK-%{name}-%{version}
86afa6e
86afa6e
%build
86afa6e
%cmake3 \
86afa6e
    -DBUILD_DISPATCHER=ON \
86afa6e
    -DBUILD_SAMPLES=OFF \
86afa6e
    -DBUILD_TESTS=ON \
86afa6e
    -DBUILD_TOOLS=OFF \
86afa6e
    -DENABLE_OPENCL=ON \
86afa6e
    -DENABLE_WAYLAND=ON \
86afa6e
    -DENABLE_X11=ON \
86afa6e
    -DENABLE_X11_DRI3=ON \
86afa6e
    -DUSE_SYSTEM_GTEST=ON \
6f1f88b
6f1f88b
%cmake3_build
86afa6e
86afa6e
%install
6f1f88b
%cmake3_install
86afa6e
86afa6e
%check
6f1f88b
%cmake3_build -- test
86afa6e
86afa6e
%files
86afa6e
%license LICENSE
86afa6e
%doc CHANGELOG.md CONTRIBUTING.md README.md
86afa6e
%{_libdir}/libmfx.so.%{mfx_abi}
86afa6e
%{_libdir}/libmfx.so.%{mfx_version}
86afa6e
%{_libdir}/libmfxhw64.so.%{mfx_abi}
86afa6e
%{_libdir}/libmfxhw64.so.%{mfx_version}
86afa6e
%{_libdir}/mfx/libmfx_*_hw64.so
86afa6e
%{_datadir}/mfx/plugins.cfg
86afa6e
86afa6e
%files devel
86afa6e
%dir %{_includedir}/mfx
86afa6e
%{_includedir}/mfx/mfx*.h
86afa6e
%{_libdir}/libmfx.so
86afa6e
%{_libdir}/libmfxhw64.so
86afa6e
%{_libdir}/pkgconfig/libmfx.pc
86afa6e
%{_libdir}/pkgconfig/libmfxhw64.pc
86afa6e
%{_libdir}/pkgconfig/mfx.pc
86afa6e
6f1f88b
%files tracer
6f1f88b
%{_bindir}/mfx-tracer-config
6f1f88b
%{_libdir}/libmfx-tracer.so
6f1f88b
%{_libdir}/libmfx-tracer.so.%{mfx_abi}
6f1f88b
%{_libdir}/libmfx-tracer.so.%{mfx_version}
6f1f88b
86afa6e
%changelog
4cdab56
* Sun Apr 04 2021 Nicolas Chauvet <kwizart@gmail.com> - 21.1.3-1
4cdab56
- Update to 21.1.3
4cdab56
d88bd89
* Thu Feb 18 2021 Dominik Mierzejewski <rpm@greysector.net> - 20.5.1-1
d88bd89
- update to 20.5.1
d88bd89
- drop obsolete patch
d88bd89
bf8fcdc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.1-2
bf8fcdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bf8fcdc
60604b1
* Fri Oct 30 2020 Dominik Mierzejewski <rpm@greysector.net> - 20.3.1-1
60604b1
- update to 20.3.1 (#1891948)
60604b1
3ea94e5
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 20.3.0-2
3ea94e5
- Add missing #includes for gcc-11
3ea94e5
9792bc0
* Fri Oct 02 2020 Dominik Mierzejewski <rpm@greysector.net> - 20.3.0-1
9792bc0
- update to 20.3.0 (#1884321)
9792bc0
6f1f88b
* Fri Aug 07 2020 Dominik Mierzejewski <rpm@greysector.net> - 20.2.1-1
6f1f88b
- update to 20.2.1 (#1827296)
6f1f88b
- fix build with recent cmake macro changes
6f1f88b
- put the new Media SDK Tracer in a separate subpackage
6f1f88b
8f631ab
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.1-3
8f631ab
- Second attempt - Rebuilt for
8f631ab
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8f631ab
d8fdc24
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.1.1-2
d8fdc24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d8fdc24
3533e4a
* Wed Jul 08 2020 Dominik Mierzejewski <rpm@greysector.net> 20.1.1-1
3533e4a
- update to 20.1.1
3533e4a
bef0ffe
* Fri Apr 10 2020 Dominik Mierzejewski <rpm@greysector.net> 20.1.0-1
bef0ffe
- update to 20.1.0 (#1786892)
bef0ffe
15ff043
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 19.3.0-3
15ff043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
15ff043
86afa6e
* Sat Nov 09 2019 Dominik Mierzejewski <rpm@greysector.net> 19.3.0-2
86afa6e
- Add missing Obsoletes: and Requires:
86afa6e
- Add license text and docs
86afa6e
86afa6e
* Fri Oct 11 2019 Dominik Mierzejewski <rpm@greysector.net> 19.3.0-1
86afa6e
- initial build