File openh264.spec of Package openh264

# spec file for package openh264

# Remember to bump in baselibs.conf too!
%define sover 7

Name:           openh264
Version:        2.3.1
Release:        0
Summary:        H.264 codec library
Group:          Productivity/Multimedia/Other
License:        BSD-2-Clause
Source99:       baselibs.conf

BuildRequires:  c++_compiler
BuildRequires:  meson
BuildRequires:  nasm
BuildRequires:  pkgconfig

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}-%{sover}
Summary:        Shared library package for %{name}
Group:          System/Libraries

%description -n lib%{name}-%{sover}
This package contains the shared libraries of %{name}

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries/Other
Requires:       lib%{name}-%{sover} = %{version}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%autosetup -p1

%meson \
	--default-library=shared \
	-Dtests=disabled \


%post -n lib%{name}-%{sover} -p /sbin/ldconfig
%postun -n lib%{name}-%{sover} -p /sbin/ldconfig

%files -n lib%{name}-%{sover}
%license LICENSE

%files devel
%dir %{_includedir}/wels