- 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>
|
||||
|
||||
|
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
|
||||
Patch0: cmake-sle12.patch
|
||||
BuildRequires: cmake
|
||||
%if 0%{?suse_version} < 1500
|
||||
BuildRequires: gcc7-c++
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(wayland-client)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
@ -41,6 +46,7 @@ platforms. Implementation written in C++ 11 with parts in C-for-Media
|
||||
%package -n %lname
|
||||
Summary: The Intel Media SDK
|
||||
Group: System/Libraries
|
||||
Requires: %{name}
|
||||
|
||||
%description -n %lname
|
||||
Intel Media SDK provides a plain C API to access hardware-accelerated
|
||||
@ -66,8 +72,20 @@ the Intel Media SDK.
|
||||
%build
|
||||
mkdir -p build
|
||||
pushd build
|
||||
# libITT and cm compiler not available on openSUSE
|
||||
cmake \
|
||||
%if 0%{?suse_version} < 1500
|
||||
-DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \
|
||||
%endif
|
||||
-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}
|
||||
popd
|
||||
@ -85,10 +103,15 @@ rmdir $RPM_BUILD_ROOT/usr/share/mfx/samples
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files -n %lname
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.md CODEOWNERS README.md
|
||||
%license LICENSE
|
||||
/usr/bin/asg-hevc
|
||||
/usr/bin/hevc_fei_extractor
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmfx.so.*
|
||||
%{_libdir}/libmfxhw64.so.*
|
||||
%dir %{_libdir}/mfx
|
||||
|
Loading…
Reference in New Issue
Block a user