The package rpms/roc-toolkit.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/roc-toolkit.git/commit/?id=40450a34c....
Change: +%ifnarch i686
Thanks.
Full change: ============
commit 40450a34c224cda610113ae0948db87f925f6d9b Author: Jaroslav Škarvada jskarvad@redhat.com Date: Mon Oct 10 16:11:02 2022 +0200
Fixed build on aarch64
Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com
diff --git a/roc-toolkit-0.1.5-no-explicit-cpp98.patch b/roc-toolkit-0.1.5-no-explicit-cpp98.patch new file mode 100644 index 0000000..e702063 --- /dev/null +++ b/roc-toolkit-0.1.5-no-explicit-cpp98.patch @@ -0,0 +1,16 @@ +diff --git a/SConstruct b/SConstruct +index 7e02af7..224f1f8 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1069,11 +1069,6 @@ if platform in ['linux']: + env.AppendUnique(LIBS=['rt', 'dl', 'm']) + + if compiler in ['gcc', 'clang']: +- if not platform in ['android']: +- env.Append(CXXFLAGS=[ +- '-std=c++98', +- ]) +- + env.Append(CXXFLAGS=[ + '-fno-exceptions', + ]) diff --git a/roc-toolkit.spec b/roc-toolkit.spec index af69990..8a9522d 100644 --- a/roc-toolkit.spec +++ b/roc-toolkit.spec @@ -31,6 +31,8 @@ BuildRequires: cpputest-devel BuildRequires: sphinx BuildRequires: python3-sphinx BuildRequires: python3-breathe +# https://github.com/roc-streaming/roc-toolkit/issues/481 +Patch0: roc-toolkit-0.1.5-no-explicit-cpp98.patch
%description Roc is a toolkit for real-time audio streaming over the network. @@ -69,7 +71,10 @@ scons install --with-openfec-includes=%{_includedir}/openfec --prefix=%{buildroo --libdir=%{buildroot}%{_libdir}
%check +# https://github.com/roc-streaming/roc-toolkit/issues/480 +%ifnarch i686 scons test --with-openfec-includes=%{_includedir}/openfec +%endif
%files %license LICENSE
commit d49e7cc1f16a60992d92587efd8dbbc37d06b1a5 Author: Jaroslav Škarvada jskarvad@redhat.com Date: Mon Oct 10 12:43:51 2022 +0200
Initial import (fedora#2122395)
Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c99d51 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/roc-toolkit-*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0286378..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# roc-toolkit - -The roc-toolkit package diff --git a/roc-toolkit.spec b/roc-toolkit.spec new file mode 100644 index 0000000..af69990 --- /dev/null +++ b/roc-toolkit.spec @@ -0,0 +1,97 @@ +# git ls-remote https://github.com/roc-streaming/roc-toolkit.git +%global git_commit 863a0227b78464c3a56fc0484bec73c891e4b7a8 +%global git_date 20220829 + +%global git_short_commit %(echo %{git_commit} | cut -c -8) +%global git_suffix %{git_date}git%{git_short_commit} + +Name: roc-toolkit +Version: 0.1.5^%{git_suffix} +Release: 2%{?dist} +Summary: Real-time audio streaming +License: MPL-2.0 AND LGPL-2.1-or-later AND CECILL-C +URL: https://github.com/roc-streaming/roc-toolkit +#Source0: %%{URL}/archive/v%%{version}/%%{name}-%%{version}.tar.gz +Source0: %{url}/archive/%{git_commit}/%{name}-%{git_suffix}.tar.gz +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: python3-devel +BuildRequires: python3-scons +BuildRequires: automake +BuildRequires: autoconf +BuildRequires: pkgconf-pkg-config +BuildRequires: gengetopt +BuildRequires: ragel-devel +BuildRequires: libuv-devel +BuildRequires: libunwind-devel +BuildRequires: sox-devel +BuildRequires: pulseaudio-libs-devel +BuildRequires: openfec-devel +BuildRequires: cpputest-devel +BuildRequires: sphinx +BuildRequires: python3-sphinx +BuildRequires: python3-breathe + +%description +Roc is a toolkit for real-time audio streaming over the network. + +%package devel +Summary: Development libraries for roc-toolkit +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The roc-toolkit-devel package contains header files necessary for +developing programs using roc-toolkit. + +%package utils +Summary: Utilities for roc-toolkit +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description utils +Utilities for roc-toolkit. + +%package doc +Summary: Documentation for roc-toolkit + +%description doc +Documentation for roc-toolkit. + +%prep +%autosetup -p1 -n %{name}-%{git_commit} + +%build +scons %{?_smp_mflags} --with-openfec-includes=%{_includedir}/openfec \ + CFLAGS="%{build_cflags}" CXXFLAGS="%{build_cxxflags}" LDFLAGS="%{build_ldflags}" +scons docs + +%install +scons install --with-openfec-includes=%{_includedir}/openfec --prefix=%{buildroot}%{_prefix} \ + --libdir=%{buildroot}%{_libdir} + +%check +scons test --with-openfec-includes=%{_includedir}/openfec + +%files +%license LICENSE +%doc README.md CONTRIBUTING.md +%{_libdir}/libroc.so.0* + +%files devel +%{_includedir}/roc +%{_libdir}/libroc.so + +%files utils +%{_bindir}/roc-conv +%{_bindir}/roc-recv +%{_bindir}/roc-send +%{_mandir}/man1/*.1.gz + +%files doc +%doc html + +%changelog +* Mon Oct 10 2022 Jaroslav Škarvada jskarvad@redhat.com - 0.1.5^20220829git863a0227-2 +- Switched license tag to SPDX format + +* Sat Aug 20 2022 Jaroslav Škarvada jskarvad@redhat.com - 0.1.5^20220829git863a0227-1 +- Initial version diff --git a/sources b/sources new file mode 100644 index 0000000..47cb15b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (roc-toolkit-20220829git863a0227.tar.gz) = e02f4b868b2aaff860d34dc190439120fa46fbff34a829a9aadf1aff5d4c3cd3c72694a504981c52e92dbdaed9778a0c4f09e2e77e43ebeb9daae17acb128605
arch-excludes@lists.fedoraproject.org