[packages/alac] - new

qboosh qboosh at pld-linux.org
Tue Feb 28 21:03:36 CET 2023


commit 98639fd5165211597b0e641cd18d10d3343400f2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Feb 28 21:05:17 2023 +0100

    - new

 alac-unbreak-conversion-utility.patch |  22 +++++++
 alac.spec                             | 104 ++++++++++++++++++++++++++++++++++
 2 files changed, 126 insertions(+)
---
diff --git a/alac.spec b/alac.spec
new file mode 100644
index 0000000..8c7b734
--- /dev/null
+++ b/alac.spec
@@ -0,0 +1,104 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+#
+Summary:	Apple Lossless Audio Codec library
+Summary(pl.UTF-8):	Biblioteka kodeka ALAC (Apple Lossless Audio Codec)
+Name:		alac
+Version:	0.0.7
+Release:	1
+License:	Apache v2.0
+Group:		Libraries
+# original project: https://github.com/macosforge/alac (last commit 2016)
+# here is maintained (last commit 2022) fork with autotools support
+#Source0Download: https://github.com/mikebrady/alac/tags
+Source0:	https://github.com/mikebrady/alac/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	782f2752e9a8ef99d4c4a913e850e741
+# https://github.com/mikebrady/alac/commit/5d6d836ee5b025a5e538cfa62c88bc5bced506ed
+Patch0:		%{name}-unbreak-conversion-utility.patch
+URL:		https://github.com/mikebrady/alac
+BuildRequires:	autoconf >= 2.68
+BuildRequires:	automake
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool >= 2:2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Apple Lossless Audio Codec library.
+
+%description -l pl.UTF-8
+Biblioteka kodeka ALAC (Apple Lossless Audio Codec).
+
+%package devel
+Summary:	Header files for ALAC library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki ALAC
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for ALAC library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki ALAC.
+
+%package static
+Summary:	Static ALAC library
+Summary(pl.UTF-8):	Statyczna biblioteka ALAC
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static ALAC library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka ALAC.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--enable-example \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libalac.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ReadMe.txt codec/APPLE_LICENSE.txt
+%attr(755,root,root) %{_bindir}/alacconvert
+%attr(755,root,root) %{_libdir}/libalac.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libalac.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%doc ALACMagicCookieDescription.txt
+%attr(755,root,root) %{_libdir}/libalac.so
+%{_includedir}/alac
+%{_pkgconfigdir}/alac.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libalac.a
+%endif
diff --git a/alac-unbreak-conversion-utility.patch b/alac-unbreak-conversion-utility.patch
new file mode 100644
index 0000000..efdff10
--- /dev/null
+++ b/alac-unbreak-conversion-utility.patch
@@ -0,0 +1,22 @@
+From c86990a99949f526a4a4036e6147107c1248ae0d Mon Sep 17 00:00:00 2001
+From: olgeni <olgeni at olgeni.com>
+Date: Mon, 11 Feb 2019 17:46:55 +0100
+Subject: [PATCH] Unbreak build of sample conversion utility.
+
+---
+ convert-utility/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/convert-utility/Makefile.am b/convert-utility/Makefile.am
+index c4fcc13..8b49219 100644
+--- a/convert-utility/Makefile.am
++++ b/convert-utility/Makefile.am
+@@ -14,7 +14,7 @@
+ 
+ bin_PROGRAMS = alacconvert$(EXEEXT)
+ 
+-alacconvert_CPPFLAGS = -Wno-multichar
++alacconvert_CPPFLAGS = -Wno-multichar -I../codec
+ alacconvert_LDADD = ../codec/libalac.la
+ alacconvert_SOURCES = \
+     main.cpp \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/alac.git/commitdiff/98639fd5165211597b0e641cd18d10d3343400f2



More information about the pld-cvs-commit mailing list