Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
openh264
openh264.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openh264.spec of Package openh264
%define realname openh264 %define srcext tar.bz2 %define so_ver 6 # Common info Name: lib%{realname}%{?so_ver:-%{so_ver}} Version: 1.0 Release: wiz%{?extraver:0.}1 License: BSD-2-Clause Group: Productivity/Multimedia/Video/Editors and Convertors URL: https://github.com/cisco/openh264 Summary: Open Source H.264 Codec # Install-time parameters Provides: %{realname} = %{version} lib%{realname} = %{version} Obsoletes: lib%{realname} < %{version} # Build-time parameters BuildRequires: gcc-c++ nasm pkg-config BuildRequires: meson >= 0.52 ninja BuildRoot: %{_tmppath}/%{name}-root Source: %{realname}-%{version}.%{srcext} %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%{realname}-devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Provides: %{realname}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Requires: %{name} = %{version}-%{release} %description -n lib%{realname}-devel Development files for %{name}. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version} %build _CFLAGS='%{optflags}' _LDFLAGS='-Wl,--strip-all -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro' meson setup build \ --buildtype=release \ --strip \ \ --prefix=%{_prefix} \ --libexecdir=%{_libexecdir} \ --default-library=shared \ \ -Db_lto=true \ -Db_ndebug=if-release \ -Dc_args="$_CFLAGS" \ -Dc_link_args="$_LDFLAGS" \ -Dcpp_args="$_CFLAGS" \ -Dcpp_link_args="$_LDFLAGS" ninja -v -C build %{?_smp_mflags} %install DESTDIR=%{buildroot} ninja -C build install %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %license LICENSE %doc CONTRIBUTORS README.md RELEASES %{_libdir}/libopenh264.so.%{?so_ver}* %{_libdir}/libopenh264.so.%{version} # Development stuff %files -n lib%{realname}-devel %defattr(-,root,root) %{_libdir}/pkgconfig/openh264.pc %{_libdir}/libopenh264.so %{_includedir}/wels/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %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