From d186cd3bd5807da58203484ea389aafe3635201b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:47:10 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.6.0_639-1mamba;Sat Jan 08 2022] --- README.md | 2 ++ bento4.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 bento4.spec diff --git a/README.md b/README.md index b6cb8ed..81ba396 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # bento4 +Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools. + diff --git a/bento4.spec b/bento4.spec new file mode 100644 index 0000000..7386ac6 --- /dev/null +++ b/bento4.spec @@ -0,0 +1,59 @@ +Name: bento4 +Version: 1.6.0_639 +Release: 1mamba +Summary: Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.bento4.com/ +Source: https://github.com/axiomatic-systems/Bento4.git/v1.6.0-639/Bento4-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools. + +%debug_package + +%prep +%setup -q -n Bento4-%{version} +sed -i "s/ STATIC / SHARED /" CMakeLists.txt + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd build + +# prevent conflict with libmp4v2 +for conflicting_file in mp4extract mp4info; do + mv $conflicting_file $conflicting_file-bento4 +done + +# install manually (there's no install target) +mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_bindir} +find -iname '*.so' -exec mv --target-directory=%{buildroot}%{_libdir} {} \; +find -maxdepth 1 -executable -type f -exec mv --target-directory=%{buildroot}%{_bindir} {} \; + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_libdir}/libap4.so + +%changelog +* Sat Jan 08 2022 Silvan Calarco 1.6.0_639-1mamba +- package created using the webbuild interface