You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.5 KiB
71 lines
1.5 KiB
%global forgeurl https://gitlab.com/freedesktop-sdk/noopenh264
|
|
%global commit 6be12bafe243b6b848f5f32103a3cdcfd20ceb34
|
|
%forgemeta
|
|
|
|
%global openh264_version 2.3.1
|
|
%global openh264_soversion 7
|
|
|
|
Name: noopenh264
|
|
Version: 0.1
|
|
Release: %autorelease
|
|
Summary: Fake implementation of the OpenH264 library
|
|
|
|
License: BSD-2-Clause and LGPL-2.1-or-later
|
|
URL: %{forgeurl}
|
|
Source: %{forgesource}
|
|
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: meson
|
|
|
|
# Explicitly conflict with openh264 that ships the actual
|
|
# non-dummy version of the library.
|
|
Conflicts: openh264
|
|
|
|
%description
|
|
Fake implementation of the OpenH264 library we can link from
|
|
regardless of the actual library being available.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
# Explicitly conflict with openh264-devel that ships the actual
|
|
# non-dummy version of the library.
|
|
Conflicts: openh264-devel
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%forgeautosetup
|
|
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
# Remove static library
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
|
%files
|
|
%license COPYING*
|
|
%doc README
|
|
%{_libdir}/libopenh264.so.%{openh264_soversion}
|
|
%{_libdir}/libopenh264.so.%{openh264_version}
|
|
|
|
%files devel
|
|
%{_includedir}/wels/
|
|
%{_libdir}/libopenh264.so
|
|
%{_libdir}/pkgconfig/openh264.pc
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|