diff --git a/README.md b/README.md index 08192dc..7bf822f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # svt-av1 +Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder). + diff --git a/svt-av1.spec b/svt-av1.spec new file mode 100644 index 0000000..ba0a973 --- /dev/null +++ b/svt-av1.spec @@ -0,0 +1,79 @@ +Name: svt-av1 +Version: 0.9.1 +Release: 1mamba +Summary: Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.com/AOMediaCodec/SVT-AV1 +Source: https://gitlab.com/AOMediaCodec/SVT-AV1.git/v%{version}/SVT-AV1-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder). + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n SVT-AV1-%{version} + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/SvtAv1DecApp +%{_bindir}/SvtAv1EncApp + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libSvtAv1Dec.so.* +%{_libdir}/libSvtAv1Enc.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/svt-av1 +%{_includedir}/svt-av1/*.h +%{_libdir}/libSvtAv1Dec.so +%{_libdir}/libSvtAv1Enc.so +%{_libdir}/pkgconfig/SvtAv1Dec.pc +%{_libdir}/pkgconfig/SvtAv1Enc.pc +%doc README.md + +%changelog +* Thu Mar 24 2022 Silvan Calarco 0.9.1-1mamba +- package created using the webbuild interface