%define libname %mklibname freeaptx %{major} %define develname %mklibname freeaptx -d %define oname freeaptx %define major 0 Name: libfreeaptx Version: 0.2.2 Release: %mkrel 0 Summary: Free (open source) implementation of Audio Processing Technology codec (aptX) Group: System/Libraries License: LGPL-2.1-or-later Url: https://github.com/iamthehorker/libfreeaptx Source0: https://github.com/iamthehorker/libfreeaptx/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz %package -n %{oname} Summary: Library for Open Source implementation of aptX codec Group: System/Libraries %description -n %{oname} 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. libfreeaptx is based on version 0.2.0 of libopenaptx with the intent of continuing under a free license without the additional license restriction added to 0.2.1. %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. libfreeaptx is based on version 0.2.0 of libopenaptx with the intent of continuing under a free license without the additional license restriction added to 0.2.1. %package -n %{libname} Summary: Library for Open Source implementation of aptX codec Group: System/Libraries %description -n %{libname} 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. libfreeaptx is based on version 0.2.0 of libopenaptx with the intent of continuing under a free license without the additional license restriction added to 0.2.1. %package -n %{develname} Summary: aptX header files Group: Development/C Requires: %{libname} = %{version}-%{release} %description -n %{develname} This package provides files needed to develop programms which use %name. %prep %autosetup -p1 %build %make_build CC=gcc CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %install %make_install PREFIX=%_prefix LIBDIR=%_lib %files -n %{oname} %{_bindir}/freeaptxdec %{_bindir}/freeaptxenc %files -n %{libname} %{_libdir}/libfreeaptx.so.%{major}{,.*} %doc README %files -n %{develname} %{_includedir}/freeaptx.h %{_libdir}/libfreeaptx.so %{_libdir}/pkgconfig/libfreeaptx.pc