nv-codec-headers/nv-codec-headers.spec

43 lines
1.2 KiB
RPMSpec
Raw Permalink Normal View History

2021-05-08 10:06:35 +08:00
Name: nv-codec-headers
2023-12-29 13:56:11 +08:00
Version: 12.1.14.0
Release: 1
2021-05-08 10:06:35 +08:00
Summary: FFmpeg version of Nvidia Codec SDK headers
License: MIT
URL: https://github.com/FFmpeg/nv-codec-headers
2023-12-29 13:56:11 +08:00
Source0: https://github.com/FFmpeg/nv-codec-headers/archive/n%{version}/%{name}-%{version}.tar.gz
2021-05-08 10:06:35 +08:00
BuildArch: noarch
%description
FFmpeg version of headers required to interface with Nvidias codec APIs.
%prep
2023-12-29 13:56:11 +08:00
%autosetup -n %{name}-%{version}
2021-05-08 10:06:35 +08:00
sed -i -e 's@/include@/include/ffnvcodec@g' ffnvcodec.pc.in
2022-04-13 13:51:59 +08:00
sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE
sed -i '1,22s/^.\{,3\}//' LICENSE
2021-05-08 10:06:35 +08:00
%build
%make_build PREFIX=%{_prefix} LIBDIR=/share
%install
%make_install PREFIX=%{_prefix} LIBDIR=/share
%files
%doc README
2022-04-13 13:51:59 +08:00
%license LICENSE
2021-05-08 10:06:35 +08:00
%{_includedir}/ffnvcodec/
%{_datadir}/pkgconfig/ffnvcodec.pc
%changelog
2023-12-29 13:56:11 +08:00
* Fri Dec 29 2023 wangqia <wangqia@uniontech.com> - 12.1.14.0-1
- Update to 12.1.14.0
2022-04-13 17:28:13 +08:00
* 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
2022-04-13 13:51:59 +08:00
- Update to 11.1.5.1
2021-05-08 10:06:35 +08:00
* Fri May 07 2021 weidong <weidong@unionetch.com> - 9.1.23.1-1
- Initial package.