-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3592 we want at least one h264 decoder enabled
now that ffmpeg has been removed, build openh264 on RHEL and clones
- Loading branch information
Showing
10 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
%define _disable_source_fetch 0 | ||
|
||
Name: openh264 | ||
Version: 2.3.1 | ||
Release: 2 | ||
Summary: H.264 codec library | ||
License: BSD | ||
URL: https://www.openh264.org/ | ||
Source0: https://github.com/cisco/openh264/archive/v%{version}/openh264-%{version}.tar.gz | ||
|
||
BuildRequires: gcc-c++ | ||
BuildRequires: make | ||
BuildRequires: nasm | ||
|
||
%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 devel | ||
Summary: Development files for %{name} | ||
Requires: %{name}%{?_isa} = %{version}-%{release} | ||
|
||
%description devel | ||
The %{name}-devel package contains libraries and header files for | ||
developing applications that use %{name}. | ||
|
||
|
||
%prep | ||
sha256=`sha256sum %{SOURCE0} | awk '{print $1}'` | ||
if [ "${sha256}" != "453afa66dacb560bc5fd0468aabee90c483741571bca820a39a1c07f0362dc32" ]; then | ||
echo "invalid checksum for %{SOURCE0}" | ||
exit 1 | ||
fi | ||
%setup -q | ||
|
||
%build | ||
# Update the makefile with our build options | ||
# Must be done in %%build in order to pick up correct LDFLAGS. | ||
sed -i -e 's|^CFLAGS_OPT=.*$|CFLAGS_OPT=%{optflags}|' Makefile | ||
sed -i -e 's|^PREFIX=.*$|PREFIX=%{_prefix}|' Makefile | ||
sed -i -e 's|^LIBDIR_NAME=.*$|LIBDIR_NAME=%{_lib}|' Makefile | ||
sed -i -e 's|^SHAREDLIB_DIR=.*$|SHAREDLIB_DIR=%{_libdir}|' Makefile | ||
sed -i -e '/^CFLAGS_OPT=/i LDFLAGS=%{__global_ldflags}' Makefile | ||
|
||
make %{?_smp_mflags} | ||
|
||
|
||
%install | ||
%make_install | ||
|
||
# Remove static libraries | ||
rm $RPM_BUILD_ROOT%{_libdir}/*.a | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_libdir}/libopenh264.so.7 | ||
%{_libdir}/libopenh264.so.%{version} | ||
|
||
%files devel | ||
%{_includedir}/wels/ | ||
%{_libdir}/libopenh264.so | ||
%{_libdir}/pkgconfig/openh264.pc | ||
|
||
%changelog | ||
* Sun Sep 03 2023 Antoine Martin <antoine@xpra.org> - 2.3.1-2 | ||
- initial packaging for RHEL and clones |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters