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.
mediastreamer2/SPECS/mediastreamer2.spec

372 lines
9.5 KiB

%define libname %{name}-libs
%define develname %{name}-devel
Summary: Audio/video real-time streaming library
Name: mediastreamer2
# mediastreamer was broken out from linphone which provided lib[64]mediastreamer4-3.8.1-1.mga5
Epoch: 1
Version: 5.3.84
Release: 1%{?dist}.inferit
License: GPLv2+
URL: https://linphone.org/technical-corner/mediastreamer2
Source0: https://gitlab.linphone.org/BC/public/mediastreamer2/-/archive/%{version}/mediastreamer2-%{version}.tar.gz
Patch3: mediastreamer-cmake-config-location.patch
Patch4: mediastreamer-system-OpenGL.patch
Patch5: mediastreamer-soname.patch
Patch6: mediastreamer2-5.0.66-ffmpeg-6.0.patch
Patch7: 0001-Find-BCG729.patch
BuildRequires: libmatroska-devel
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: ffmpeg-devel
BuildRequires: gsm-devel
BuildRequires: libpcap-devel
BuildRequires: libv4l-devel
BuildRequires: cmake(BCToolbox) >= %{version}
BuildRequires: cmake(BZRTP) >= 5.3.79
BuildRequires: cmake(Ortp) >= %{version}
BuildRequires: cmake(BCMatroska2)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(dri)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libbcg729)
BuildRequires: pkgconfig(libglvnd)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libturbojpeg)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsrtp2)
BuildRequires: pkgconfig(libupnp)
BuildRequires: pkgconfig(libyuv)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(spandsp)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(speexdsp)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(zxing) = 2.2.1
BuildRequires: sqlite-devel
BuildRequires: vim-common
BuildRequires: gcc
BuildRequires: gcc-c++
Obsoletes: mediastreamer < 1:4.3.1-2
Provides: mediastreamer = %{epoch}:%{version}-%{release}
%description
Mediastreamer2 is a powerful lightweight streaming engine for voice/video
telephony applications.
%package libs
Summary: Audio/video real-time streaming library
%description libs
Mediastreamer2 is a powerful lightweight streaming engine for voice/video
telephony applications.
%package devel
Summary: Headers, libraries and docs for the mediastreamer2 library
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
Provides: %{name}-devel = %{epoch}:%{version}-%{release}
%description devel
This package contains header files and development libraries needed to
develop programs using the mediastreamer2 library.
%prep
%autosetup -p1 -n mediastreamer2-%{version}
# fix version
sed -i -e '/project/s/\(VERSION\)\s\+[0-9]\+\(\.[0-9]\+\)\+/\1 %{version}/' CMakeLists.txt
# drop bundled OpenGL includes
rm -rf include/OpenGL
%build
export CXXFLAGS="%{optflags} -I%{_includedir}/bcmatroska2/"
%cmake -GNinja \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
-DENABLE_STATIC:BOOL=NO \
-DENABLE_STRICT:BOOL=NO \
-DENABLE_UNIT_TESTS:BOOL=NO \
-DENABLE_FFMPEG:BOOL=YES \
-DOpenGL_GL_PREFERENCE=GLVND \
-DENABLE_G729:BOOL=OFF \
-DENABLE_BV16:BOOL=OFF
%cmake_build
%install
%cmake_install
# for plugins
mkdir -p %{buildroot}%{_libdir}/mediastreamer/plugins/
# remove unwanted docs, generated if doxygen is installed
rm -rf %{buildroot}%{_docdir}/mediastreamer*
%files
%license LICENSE*
%doc CHANGELOG* README*
%{_bindir}/%{name}-mediastream
%{_bindir}/%{name}-mkvstream
#{_bindir}/msaudiocmp
%dir %{_datadir}/images/
%{_datadir}/images/nowebcamCIF.jpg
%files -n %{libname}
%{_libdir}/libmediastreamer2.so.*
%dir %{_libdir}/mediastreamer/plugins/
%files -n %{develname}
%{_includedir}/mediastreamer2/
%{_libdir}/libmediastreamer2.so
%{_libdir}/cmake/Mediastreamer2/
%changelog
* Fri Sep 20 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 5.3.84-1.inferit
- Update to 5.3.84-1.inferit
* Fri May 31 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 5.3.54-1.inferit
- Update to 5.3.54
- Clean up spec
- Build with FFmpeg support
* Thu May 30 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> 1:5.3.5-2.inferit
- Rebuilt for MSVSphere 9.4
* Mon Jan 01 2024 wally <wally> 1:5.3.5-2.mga10
+ Revision: 2024945
- drop unmaintained pkg-conf .pc file
* Sat Dec 30 2023 wally <wally> 1:5.3.5-1.mga10
+ Revision: 2024684
- new version 5.3.5
- add soversion patch
- udpate lib and dvel pkg names
* Tue Oct 10 2023 danf <danf> 1:5.2.70-3.mga10
+ Revision: 1994012
- Rebuild for new libvpx
* Fri Sep 01 2023 daviddavid <daviddavid> 1:5.2.70-2.mga10
+ Revision: 1983068
- rebuild for new zxing-cpp 2.1.0
* Fri Jun 09 2023 wally <wally> 1:5.2.70-1.mga9
+ Revision: 1961528
- new version 5.2.70
* Mon Dec 26 2022 wally <wally> 1:5.2.4-3.mga9
+ Revision: 1926939
- rebuild for zxing-cpp with bumped lib major
* Sat Dec 24 2022 wally <wally> 1:5.2.4-2.mga9
+ Revision: 1926351
- build with ZXing support
* Sat Dec 24 2022 wally <wally> 1:5.2.4-1.mga9
+ Revision: 1926323
- new version 5.2.4
* Sun Dec 04 2022 wally <wally> 1:5.1.72-1.mga9
+ Revision: 1917535
- new version 5.1.72
- build using ninja
* Tue Oct 11 2022 ghibo <ghibo> 1:5.1.55-2.mga9
+ Revision: 1896290
- Rebuild against libvpx 1.12.0 (changed major from 6 to 7)
* Tue Aug 23 2022 wally <wally> 1:5.1.55-1.mga9
+ Revision: 1879631
- new version 5.1.55
* Wed May 04 2022 wally <wally> 1:5.1.20-2.mga9
+ Revision: 1856172
- rebuild to core/release
* Tue May 03 2022 wally <wally> 1:5.1.20-1.mga9
+ Revision: 1855946
- new version 5.1.20
+ luigiwalser <luigiwalser>
- disable ffmpeg support, ffmpeg 5.0 not supported upstream
+ umeabot <umeabot>
- Mageia 9 Mass Rebuild
* Sun Nov 21 2021 wally <wally> 1:5.0.53-1.mga9
+ Revision: 1758372
- new version 5.0.53
* Sat Jul 31 2021 wally <wally> 1:5.0.3-1.mga9
+ Revision: 1738401
- new version 5.0.3
* Sun May 30 2021 wally <wally> 1:4.5.15-1.mga9
+ Revision: 1728851
- new version 4.5.15
* Sat Apr 10 2021 wally <wally> 1:4.5.1-1.mga9
+ Revision: 1714620
- new version 4.5.1
* Sun Mar 21 2021 wally <wally> 1:4.4.35-1.mga9
+ Revision: 1706534
- new version 4.4.35
* Sun Dec 27 2020 wally <wally> 1:4.4.21-1.mga8
+ Revision: 1664111
- new version 4.4.21
* Sat Dec 19 2020 wally <wally> 1:4.4.19-1.mga8
+ Revision: 1661358
- new version 4.4.19
* Thu Dec 10 2020 wally <wally> 1:4.4.13-1.mga8
+ Revision: 1655182
- new version 4.4.13
* Wed Dec 02 2020 luigiwalser <luigiwalser> 1:4.4.9-2.mga8
+ Revision: 1651356
- rebuild for glew
* Mon Nov 23 2020 wally <wally> 1:4.4.9-1.mga8
+ Revision: 1648767
- new version 4.4.9
* Sun Oct 25 2020 wally <wally> 1:4.4.6-2.mga8
+ Revision: 1639338
- rebuild with new libsrtp2
* Sun Oct 25 2020 wally <wally> 1:4.4.6-1.mga8
+ Revision: 1639259
- new version 4.4.6
* Wed Oct 21 2020 wally <wally> 1:4.4.2-3.mga8
+ Revision: 1637570
- fix mediastreamer obsoletes and provides to include epoch
- update descriptions
* Tue Oct 20 2020 eatdirt <eatdirt> 1:4.4.2-2.mga8
+ Revision: 1637380
- Obsolete and Provide mediastream
* Sat Oct 03 2020 wally <wally> 1:4.4.2-1.mga8
+ Revision: 1632075
- new version 4.4.2
- new lib major 11
- udpate URL
* Mon Apr 20 2020 wally <wally> 1:4.3.1-2.mga8
+ Revision: 1570094
- rename as mediastreamer2
- fix pkg-config .pc file
* Sat Mar 28 2020 wally <wally> 1:4.3.1-1.mga8
+ Revision: 1561411
- new version 4.3.1
* Sat Feb 15 2020 umeabot <umeabot> 1:2.16.1-9.mga8
+ Revision: 1524830
- Mageia 8 Mass Rebuild
+ wally <wally>
- build with new cmake macros
* Sun Mar 31 2019 daviddavid <daviddavid> 1:2.16.1-8.mga7
+ Revision: 1383391
- rebuild for arm
* Sun Feb 10 2019 zezinho <zezinho> 1:2.16.1-7.mga7
+ Revision: 1365073
- rebuild for libvpx 1.8.0
* Sun Sep 23 2018 umeabot <umeabot> 1:2.16.1-6.mga7
+ Revision: 1299510
- Mageia 7 Mass Rebuild
* Mon May 21 2018 daviddavid <daviddavid> 1:2.16.1-5.mga7
+ Revision: 1230928
- rebuild against latest libvpx (mga#23059)
* Thu Apr 26 2018 daviddavid <daviddavid> 1:2.16.1-4.mga7
+ Revision: 1222639
- rebuild for new ffmpeg 4.0
* Fri Feb 02 2018 daviddavid <daviddavid> 1:2.16.1-3.mga7
+ Revision: 1198551
- rebuild for new libvpx 1.7.0
* Mon Jan 01 2018 wally <wally> 1:2.16.1-2.mga7
+ Revision: 1188539
- fix devel pkg requires
- add more general provides to devel pkg
* Sun Dec 31 2017 wally <wally> 1:2.16.1-1.mga7
+ Revision: 1188376
- new version 2.16.1
- switch to cmake build
* Sat Dec 30 2017 wally <wally> 1:2.14.0-8.mga7
+ Revision: 1188093
- add patch to fix build with new bctoolbox
- rebuild for new libbctoolbox
+ tv <tv>
- rebuild for new libbctoolbox
* Wed Jul 19 2017 cjw <cjw> 1:2.14.0-6.mga7
+ Revision: 1125323
- rebuild for new libvpx
* Tue May 02 2017 akien <akien> 1:2.14.0-5.mga6
+ Revision: 1098305
- Rebuild for ffmpeg 3.3
* Fri Mar 10 2017 akien <akien> 1:2.14.0-4.mga6
+ Revision: 1091626
- Rebuild for v4l-utils 1.12.3
* Thu Mar 09 2017 neoclust <neoclust> 1:2.14.0-3.mga6
+ Revision: 1090741
- Rebuild for armv5
* Wed Mar 08 2017 akien <akien> 1:2.14.0-2.mga6
+ Revision: 1089877
- Rebuild for ffmpeg 3.2.4
* Fri Dec 02 2016 daviddavid <daviddavid> 1:2.14.0-1.mga6
+ Revision: 1071700
- new version: 2.14.0
- now libmajor is 7
- rename and rediff linkage_fix patch
- add BR pkgconfig(bctoolbox)
- pass NOCONFIGURE=1 to autogen
+ tmb <tmb>
- rebuild for new ortp
* Fri Jan 15 2016 luigiwalser <luigiwalser> 1:2.12.0-2.mga6
+ Revision: 923164
- rebuild to regenerate devel deps
* Mon Nov 16 2015 oden <oden> 1:2.12.0-1.mga6
+ Revision: 903588
- soname bump to 6
- 2.12.0
* Mon Aug 24 2015 sander85 <sander85> 1:2.11.2-2.mga6
+ Revision: 869124
- Rebuild for glew 1.13.0
* Sun Aug 02 2015 oden <oden> 1:2.11.2-1.mga6
+ Revision: 860701
- fix br: vim-common
- imported package mediastreamer