Accepting request 726087 from home:jengelh:branches:X11:XOrg

- More consistent macro usage throughout.
- Grammar fixes to description.

OBS-URL: https://build.opensuse.org/request/show/726087
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libmfx?expand=0&rev=13
This commit is contained in:
Stefan Dirsch 2019-08-26 08:27:24 +00:00 committed by Git OBS Bridge
parent 280b50a48b
commit 1facbe0adc
2 changed files with 29 additions and 25 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 26 08:12:32 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- More consistent macro usage throughout.
- Grammar fixes to description.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 11 14:26:00 UTC 2019 - Stefan Dirsch <sndirsch@suse.com> Tue Jun 11 14:26:00 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package MediaSDK # spec file for package libmfx
# #
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,9 +12,10 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: libmfx Name: libmfx
%define lname libmfx1 %define lname libmfx1
Version: 19.1.0 Version: 19.1.0
@ -22,7 +23,7 @@ Release: 0
Summary: The Intel Media SDK Summary: The Intel Media SDK
License: MIT License: MIT
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Url: https://github.com/Intel-Media-SDK/MediaSDK 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
@ -34,13 +35,12 @@ BuildRequires: gcc-c++
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(libva) BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-client)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%description %description
Intel Media SDK provides a plain C API to access hardware-accelerated The Intel Media SDK provides a plain C API to access hardware-accelerated
video decode, encode and filtering on Intel Gen graphics hardware video decode, encode and filtering on Intel Gen graphics hardware
platforms. Implementation written in C++ 11 with parts in C-for-Media platforms. The implementation is written in C++11, with parts in C-for-Media
(CM). (CM).
%package -n %lname %package -n %lname
@ -49,15 +49,15 @@ Group: System/Libraries
Requires: %{name} Requires: %{name}
%description -n %lname %description -n %lname
Intel Media SDK provides a plain C API to access hardware-accelerated The Intel Media SDK provides a plain C API to access hardware-accelerated
video decode, encode and filtering on Intel Gen graphics hardware video decode, encode and filtering on Intel Gen graphics hardware
platforms. Implementation written in C++ 11 with parts in C-for-Media platforms. The implementation is written in C++11, with parts in C-for-Media
(CM). (CM).
%package devel %package devel
Summary: Development files Intel Media SDK Summary: Development files Intel Media SDK
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: %lname = %version Requires: %lname = %version
%description devel %description devel
This package contains the development headers and pkgconfig files for This package contains the development headers and pkgconfig files for
@ -75,9 +75,9 @@ pushd build
# libITT and cm compiler not available on openSUSE # libITT and cm compiler not available on openSUSE
cmake \ cmake \
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
-DCMAKE_CXX_COMPILER=/usr/bin/g++-7 \ -DCMAKE_CXX_COMPILER="%{_bindir}/g++-7" \
%endif %endif
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
-DENABLE_X11_DRI3:BOOL=ON \ -DENABLE_X11_DRI3:BOOL=ON \
-DENABLE_WAYLAND:BOOL=ON \ -DENABLE_WAYLAND:BOOL=ON \
-DENABLE_TEXTLOG:BOOL=ON \ -DENABLE_TEXTLOG:BOOL=ON \
@ -94,24 +94,22 @@ popd
pushd build pushd build
%make_install %make_install
popd popd
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/mfx/samples mkdir -p %{buildroot}/%{_libdir}/mfx/samples
mv $RPM_BUILD_ROOT/usr/share/mfx/samples/* \ mv %{buildroot}/%{_datadir}/mfx/samples/* \
$RPM_BUILD_ROOT/%{_libdir}/mfx/samples %{buildroot}/%{_libdir}/mfx/samples
rmdir $RPM_BUILD_ROOT/usr/share/mfx/samples rmdir %{buildroot}/%{_datadir}/mfx/samples
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files %files
%defattr(-,root,root)
%doc CHANGELOG.md CODEOWNERS README.md %doc CHANGELOG.md CODEOWNERS README.md
%license LICENSE %license LICENSE
/usr/bin/asg-hevc %{_bindir}/asg-hevc
/usr/bin/hevc_fei_extractor %{_bindir}/hevc_fei_extractor
%files -n %lname %files -n %lname
%defattr(-,root,root)
%{_libdir}/libmfx.so.* %{_libdir}/libmfx.so.*
%{_libdir}/libmfxhw64.so.* %{_libdir}/libmfxhw64.so.*
%dir %{_libdir}/mfx %dir %{_libdir}/mfx
@ -119,11 +117,11 @@ rmdir $RPM_BUILD_ROOT/usr/share/mfx/samples
%dir %{_libdir}/mfx/samples/ %dir %{_libdir}/mfx/samples/
%{_libdir}/mfx/samples/* %{_libdir}/mfx/samples/*
%exclude %{_libdir}/mfx/samples/libvpp_plugin.a %exclude %{_libdir}/mfx/samples/libvpp_plugin.a
%dir /usr/share/mfx %dir %{_datadir}/mfx
/usr/share/mfx/plugins.cfg %{_datadir}/mfx/plugins.cfg
%files devel %files devel
/usr/include/mfx/ %{_includedir}/mfx/
%{_libdir}/libmfx.so %{_libdir}/libmfx.so
%{_libdir}/libmfxhw64.so %{_libdir}/libmfxhw64.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc