Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Mark-4158:branches:multimedia:libs
openh264
openh264.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openh264.spec of Package openh264
# # spec file for package openh264 # # Copyright (c) 2021 Red Hat, Inc. # Copyright (c) 2022 Neal Gompa <ngompa@opensuse.org>. # Copyright (c) 2024 Mark Williams, Jr. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global somajor 7 %global libname lib%{name}.so Name: openh264 Version: 2.3.1 Release: 0 Summary: AVC/H.264 library download Group: Productivity/Multimedia/Other License: Cisco’s AVC/H.264 Patent Portfolio License from MPEG LA URL: https://www.openh264.org/ Source0: BINARY_LICENSE.txt Requires: curl Requires: coreutils %description This package downloads and installs the Cisco-provided binary of OpenH264 - a codec library which supports H.264 encoding and decoding. OpenH264 is suitable for use in real time applications such as WebRTC. %prep case '%{_arch}' in 'i586') %global libarch linux32 %global libhash 22ed8a28a3b815181c2362f08ff7c79b ;; 'aarch64') %global libarch linux-arm64 %global libhash c236e0ea99314176999b7ae38f18aed6 ;; 'armv7l') %global libarch linux-arm %global libhash 4e7be2b49a44113f209b3d4ca5afd53f ;; *) %global libarch linux64 %global libhash 49e10a523a32e9a070c63366fc50b6af ;; esac %global bz2lib lib%{name}-%{version}-%{libarch}.%{somajor}.so %global bz2url http://ciscobinary.openh264.org/%{bz2lib}.bz2 cp %{SOURCE0} . %install install -d %{buildroot}%{_libdir} cd %{buildroot}%{_libdir} touch %{libname}.%{version} ln -s %{libname}.%{version} %{libname}.%{somajor} %post cd /tmp if curl -sI %{bz2url}; then curl --progress-bar -O %{bz2url} bzip2 -dsf %{bz2lib}.bz2 printf '%{libhash} %{bz2lib}' | md5sum -c install -s %{bz2lib} %{_libdir}/%{libname}.%{version} rm -f %{bz2lib} fi %ldconfig %files %license BINARY_LICENSE.txt %{_libdir}/%{libname}.%{somajor} %{_libdir}/%{libname}.%{version} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor