From cb930c7b4a7ecec0eb263724827494dad009a76c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:57:57 +0100 Subject: [PATCH] fix install libdir [release 2.0.2.3-2mamba;Thu Sep 01 2022] --- README.md | 2 ++ libldac.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 libldac.spec diff --git a/README.md b/README.md index f8ace6a..45d80a4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libldac +A lossy audio codec for Bluetooth connections. + diff --git a/libldac.spec b/libldac.spec new file mode 100644 index 0000000..25292a9 --- /dev/null +++ b/libldac.spec @@ -0,0 +1,71 @@ +Name: libldac +Version: 2.0.2.3 +Release: 2mamba +Summary: A lossy audio codec for Bluetooth connections +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/EHfive/ldacBT +Source: https://github.com/EHfive/ldacBT.git/v%{version}/ldacBT-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +A lossy audio codec for Bluetooth connections. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n ldacBT-%{version} + +%build +%cmake -d build \ + -DINSTALL_LIBDIR=%{_libdir} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libldacBT_abr.so.* +%{_libdir}/libldacBT_enc.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/ldac/ldacBT.h +%{_includedir}/ldac/ldacBT_abr.h +%{_libdir}/libldacBT_abr.so +%{_libdir}/libldacBT_enc.so +%{_libdir}/pkgconfig/ldacBT-abr.pc +%{_libdir}/pkgconfig/ldacBT-enc.pc +%doc README.md + +%changelog +* Thu Sep 01 2022 Silvan Calarco 2.0.2.3-2mamba +- fix install libdir + +* Thu Sep 01 2022 Silvan Calarco 2.0.2.3-1mamba +- package created using the webbuild interface