nv-codec-headers/nv-codec-headers.spec
2022-04-13 17:28:13 +08:00

40 lines
1.1 KiB
RPMSpec

Name: nv-codec-headers
Version: 11.1.5.1
Release: 2
Summary: FFmpeg version of Nvidia Codec SDK headers
License: MIT
URL: https://github.com/FFmpeg/nv-codec-headers
Source0: https://github.com/FFmpeg/nv-codec-headers/archive/n%{version}/%{name}-n%{version}.tar.gz
BuildArch: noarch
%description
FFmpeg version of headers required to interface with Nvidias codec APIs.
%prep
%autosetup -n %{name}-n%{version}
sed -i -e 's@/include@/include/ffnvcodec@g' ffnvcodec.pc.in
sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE
sed -i '1,22s/^.\{,3\}//' LICENSE
%build
%make_build PREFIX=%{_prefix} LIBDIR=/share
%install
%make_install PREFIX=%{_prefix} LIBDIR=/share
%files
%doc README
%license LICENSE
%{_includedir}/ffnvcodec/
%{_datadir}/pkgconfig/ffnvcodec.pc
%changelog
* Mon Apr 11 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 11.1.5.1-2
- Add nv-codec-headers.yaml
* Wed Jan 12 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 11.1.5.1-1
- Update to 11.1.5.1
* Fri May 07 2021 weidong <weidong@unionetch.com> - 9.1.23.1-1
- Initial package.