[packages/mpeghdec] Initial

arekm arekm at pld-linux.org
Fri Jun 12 19:46:35 CEST 2026


commit 8e8ab1b21704492464532d772c6d3c67d1d90662
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jun 12 19:45:52 2026 +0200

    Initial

 mpeghdec-soname.patch | 12 +++++++
 mpeghdec.spec         | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)
---
diff --git a/mpeghdec.spec b/mpeghdec.spec
new file mode 100644
index 0000000..960c3c0
--- /dev/null
+++ b/mpeghdec.spec
@@ -0,0 +1,86 @@
+# ilo and mmtisobmff are upstream static-only helper libraries pulled in via
+# CMake FetchContent (no network at build time in PLD), with no standalone
+# shared library or other consumer - so they are vendored here as Source1/Source2
+# and linked statically into libmpeghdec.so rather than packaged separately.
+%define		ilover		2.0.2
+%define		mmtver		1.0.4
+Summary:	Fraunhofer MPEG-H 3D Audio decoder library
+Summary(pl.UTF-8):	Biblioteka dekodera dźwięku Fraunhofer MPEG-H 3D Audio
+Name:		mpeghdec
+Version:	3.0.3
+Release:	1
+# Fraunhofer FDK MPEG-H Software License (source-redistributable; no patent grant)
+License:	distributable, patent license required in some countries
+Group:		Libraries
+Source0:	https://github.com/Fraunhofer-IIS/mpeghdec/archive/r%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	b7b51dedd99aeefb0d72eb5cc5e3ba7d
+Source1:	https://github.com/Fraunhofer-IIS/ilo/archive/r%{ilover}/ilo-%{ilover}.tar.gz
+# Source1-md5:	cbff75a47b407df6d469b4b682d0c906
+Source2:	https://github.com/Fraunhofer-IIS/mmtisobmff/archive/r%{mmtver}/mmtisobmff-%{mmtver}.tar.gz
+# Source2-md5:	ba89ae2bcbb98b94651415502deba5e9
+Patch0:		%{name}-soname.patch
+URL:		https://github.com/Fraunhofer-IIS/mpeghdec
+BuildRequires:	cmake >= 3.16
+BuildRequires:	libstdc++-devel
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Fraunhofer MPEG-H decoder (mpeghdec) is a decoder library for the
+MPEG-H 3D Audio standard (ISO/IEC 23008-3), the audio system used by
+ATSC 3.0 and other next-generation broadcast and streaming services.
+
+%description -l pl.UTF-8
+Dekoder Fraunhofera MPEG-H (mpeghdec) to biblioteka dekodera standardu
+MPEG-H 3D Audio (ISO/IEC 23008-3) - systemu dźwięku używanego przez ATSC
+3.0 oraz inne systemy nadawcze i streamingowe nowej generacji.
+
+%package devel
+Summary:	Header files for Fraunhofer MPEG-H decoder library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki dekodera Fraunhofer MPEG-H
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for Fraunhofer MPEG-H decoder library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki dekodera Fraunhofer MPEG-H.
+
+%prep
+%setup -q -n %{name}-r%{version} -a1 -a2
+%patch -P0 -p1
+
+%build
+%cmake -B build \
+	-DBUILD_SHARED_LIBS=ON \
+	-Dmpeghdec_BUILD_BINARIES=OFF \
+	-DFETCHCONTENT_SOURCE_DIR_ILO=$(pwd)/ilo-r%{ilover} \
+	-DFETCHCONTENT_SOURCE_DIR_MMTISOBMFF=$(pwd)/mmtisobmff-r%{mmtver}
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%attr(755,root,root) %{_libdir}/libmpeghdec.so.*.*.*
+%ghost %{_libdir}/libmpeghdec.so.3
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libmpeghdec.so
+%dir %{_includedir}/mpeghdec
+%{_includedir}/mpeghdec/*.h
+%{_datadir}/pkgconfig/mpeghdec.pc
diff --git a/mpeghdec-soname.patch b/mpeghdec-soname.patch
new file mode 100644
index 0000000..b38f0a2
--- /dev/null
+++ b/mpeghdec-soname.patch
@@ -0,0 +1,12 @@
+--- mpeghdec-r3.0.3/src/CMakeLists.txt.orig
++++ mpeghdec-r3.0.3/src/CMakeLists.txt
+@@ -9,6 +9,9 @@
+ 
+ add_library(mpeghdec)
+ install(TARGETS mpeghdec)
++set_target_properties(mpeghdec PROPERTIES
++  VERSION ${PROJECT_VERSION}
++  SOVERSION ${PROJECT_VERSION_MAJOR})
+ target_include_directories(mpeghdec PUBLIC "${PROJECT_SOURCE_DIR}/include")
+ target_include_directories(mpeghdec PRIVATE "${PROJECT_SOURCE_DIR}/include/sys")
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpeghdec.git/commitdiff/8e8ab1b21704492464532d772c6d3c67d1d90662



More information about the pld-cvs-commit mailing list