diff --git a/README.md b/README.md index c34edca..6e61c51 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # openh264 +OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. + diff --git a/openh264.spec b/openh264.spec new file mode 100644 index 0000000..d695c53 --- /dev/null +++ b/openh264.spec @@ -0,0 +1,71 @@ +Name: openh264 +Version: 2.4.1 +Release: 1mamba +Summary: A codec library which supports H.264 encoding and decoding +Group: Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.openh264.org/ +Source: https://github.com/cisco/openh264.git/v%{version}/openh264-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: meson +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. + +%package -n lib%{name} +Group: System/Libraries +Summary: A codec library which supports H.264 encoding and decoding + +%description -n lib%{name} +OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. +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} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libopenh264.so.* +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/wels +%{_includedir}/wels/*.h +%{_libdir}/libopenh264.so +%{_libdir}/pkgconfig/openh264.pc +%doc README.md + + +%changelog +* Wed Oct 09 2024 Silvan Calarco 2.4.1-1mamba +- package created using the webbuild interface