commit 005a8f45f1e1e47427660eedfbca5351bdde56c8
Author: Gergely Gombos <gombosg(a)disroot.org>
Date: Thu Sep 23 09:27:59 2021 +0200
0.1.1 initial
libfreeaptx.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
---
diff --git a/libfreeaptx.spec b/libfreeaptx.spec
new file mode 100644
index 0000000..2f843b5
--- /dev/null
+++ b/libfreeaptx.spec
@@ -0,0 +1,67 @@
+%global sonamebase 0
+
+Name: libfreeaptx
+Version: %{sonamebase}.1.1
+Release: 2%{?dist}
+Summary: Open Source implementation of Audio Processing Technology codec (aptX)
+
+License: LGPLv2+
+URL:
https://github.com/iamthehorker/%{name}
+Source0: %{url}/archive/%{version}.tar.gz
+
+BuildRequires: gcc
+BuildRequires: make
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%package tools
+Summary: %{name} encoder and decoder utilities
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description
+This is Open Source implementation of Audio Processing Technology codec (aptX)
+derived from ffmpeg 4.0 project and licensed under LGPLv2.1+. This codec is
+mainly used in Bluetooth A2DP profile.
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%description tools
+The %{name}-tools package contains openaptxenc encoder and openaptxdec decoder
+command-line utilities.
+
+%prep
+%autosetup
+
+%build
+# Skip building static binaries
+# Environment variable CFLAGS are overridden in makefile so we override that
+%make_build STATIC_UTILITIES= LDFLAGS="%{build_ldflags}"
CFLAGS="%{optflags}"
+
+%install
+# Skip build in install phase
+%make_install PREFIX= LIBDIR="%{_libdir}" INCDIR="%{_includedir}"
BINDIR="%{_bindir}"
+
+%files
+%license COPYING
+%{_libdir}/%{name}.so.%{sonamebase}
+%{_libdir}/%{name}.so.%{version}
+
+%files devel
+%{_libdir}/%{name}.so
+%{_includedir}/freeaptx.h
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files tools
+%{_bindir}/freeaptxenc
+%{_bindir}/freeaptxdec
+
+%changelog
+* Wed Sep 22 2021 Gergely Gombos <gombosg(a)disroot.org> - 0.1.1-2
+- Review fixes
+
+* Tue Sep 21 2021 Gergely Gombos <gombosg(a)disroot.org> - 0.1.1-1
+- Initial packaging