diff --git a/README.md b/README.md index 7be2bc2..f3363a8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nv-codec-headers +FFmpeg version of headers required to interface with Nvidias codec APIs. + diff --git a/nv-codec-headers.spec b/nv-codec-headers.spec new file mode 100644 index 0000000..cfded13 --- /dev/null +++ b/nv-codec-headers.spec @@ -0,0 +1,43 @@ +Name: nv-codec-headers +Version: 12.2.72.0 +Release: 1mamba +Summary: FFmpeg version of headers required to interface with Nvidias codec APIs +Group: Development/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git +Source: https://git.videolan.org/git/ffmpeg/nv-codec-headers.git/n%{version}/nv-codec-headers-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +FFmpeg version of headers required to interface with Nvidias codec APIs. + +%prep +%setup -q +# Extract license +sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE +sed -i '1,22s/^.\{,3\}//' LICENSE # Delete C comments + +%build +%make PREFIX=%{_prefix} LIBDIR=%{_lib} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall PREFIX=%{_prefix} LIBDIR=%{_lib} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_includedir}/ffnvcodec +%{_includedir}/ffnvcodec/*.h +%{_libdir}/pkgconfig/ffnvcodec.pc +%doc LICENSE + +%changelog +* Thu Oct 24 2024 Silvan Calarco 12.2.72.0-1mamba +- package created using the webbuild interface