- added more features to build
* X11_DRI3 * WAYLAND * TEXTLOG * STAT * TESTS * TOOLS - ITT and KERNELS features remain disabled for now since libITT and cm compiler is not available on (open)SUSE right now - gcc7 needed for building tests on sle12-sp5 - moved documentation and binaries to main package; let require the library subpackage the main package OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libmfx?expand=0&rev=11
This commit is contained in:
parent
6d8f4a78f2
commit
ccab3df85a
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 11 14:26:00 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
- added more features to build
|
||||||
|
* X11_DRI3
|
||||||
|
* WAYLAND
|
||||||
|
* TEXTLOG
|
||||||
|
* STAT
|
||||||
|
* TESTS
|
||||||
|
* TOOLS
|
||||||
|
- ITT and KERNELS features remain disabled for now since libITT
|
||||||
|
and cm compiler is not available on (open)SUSE right now
|
||||||
|
- gcc7 needed for building tests on sle12-sp5
|
||||||
|
- moved documentation and binaries to main package; let require
|
||||||
|
the library subpackage the main package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 7 14:26:01 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
|
Fri Jun 7 14:26:01 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
25
libmfx.spec
25
libmfx.spec
@ -26,9 +26,14 @@ Url: https://github.com/Intel-Media-SDK/MediaSDK
|
|||||||
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-%{version}.tar.gz
|
Source0: https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-%{version}.tar.gz
|
||||||
Patch0: cmake-sle12.patch
|
Patch0: cmake-sle12.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
%if 0%{?suse_version} < 1500
|
||||||
|
BuildRequires: gcc7-c++
|
||||||
|
%else
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libva)
|
BuildRequires: pkgconfig(libva)
|
||||||
|
BuildRequires: pkgconfig(wayland-client)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64
|
||||||
|
|
||||||
@ -41,6 +46,7 @@ platforms. Implementation written in C++ 11 with parts in C-for-Media
|
|||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: The Intel Media SDK
|
Summary: The Intel Media SDK
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Requires: %{name}
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
Intel Media SDK provides a plain C API to access hardware-accelerated
|
Intel Media SDK provides a plain C API to access hardware-accelerated
|
||||||
@ -66,8 +72,20 @@ the Intel Media SDK.
|
|||||||
%build
|
%build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
pushd build
|
pushd build
|
||||||
|
# libITT and cm compiler not available on openSUSE
|
||||||
cmake \
|
cmake \
|
||||||
|
%if 0%{?suse_version} < 1500
|
||||||
|
-DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \
|
||||||
|
%endif
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DENABLE_X11_DRI3:BOOL=ON \
|
||||||
|
-DENABLE_WAYLAND:BOOL=ON \
|
||||||
|
-DENABLE_TEXTLOG:BOOL=ON \
|
||||||
|
-DENABLE_STAT:BOOL=ON \
|
||||||
|
-DBUILD_TESTS:BOOL=ON \
|
||||||
|
-DBUILD_TOOLS:BOOL=ON \
|
||||||
|
-DENABLE_ITT:BOOL=OFF \
|
||||||
|
-DBUILD_KERNELS:BOOL=OFF \
|
||||||
..
|
..
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
@ -85,10 +103,15 @@ rmdir $RPM_BUILD_ROOT/usr/share/mfx/samples
|
|||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %lname
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGELOG.md CODEOWNERS README.md
|
%doc CHANGELOG.md CODEOWNERS README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
/usr/bin/asg-hevc
|
||||||
|
/usr/bin/hevc_fei_extractor
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libmfx.so.*
|
%{_libdir}/libmfx.so.*
|
||||||
%{_libdir}/libmfxhw64.so.*
|
%{_libdir}/libmfxhw64.so.*
|
||||||
%dir %{_libdir}/mfx
|
%dir %{_libdir}/mfx
|
||||||
|
Loading…
Reference in New Issue
Block a user