File FA_clthreads.spec of Package FA_clthreads
#
# spec file for package FA_clthreads
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: clthreads
Version: 2.4.2
Release: 0
Summary: Library Required for AEOLUS and JAAA
License: LGPL-2.1-or-later
Group: Development/Libraries/Other
URL: http://kokkinizita.linuxaudio.org/linuxaudio/index.html
Source: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2
Patch1: %{name}-makefile.patch
BuildRequires: gcc-c++
%description
Library required for AEOLUS and JAAA.
%package -n libclthreads2
Summary: Library Required for AEOLUS and JAAA
%description -n libclthreads2
...
%package -n clthreads-devel
Summary: Library Required for AEOLUS build
Requires: libclthreads2
%description -n clthreads-devel
...
%prep
%setup -q -n clthreads-%{version}
%patch -P 1 -p1
%build
%make_build -C source SUSE_CXXFLAGS="%{optflags}"
%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
%make_install -C source DESTDIR=%{buildroot} \
PREFIX=%{_prefix} SUFFIX=`echo %{_libdir} | sed -e 's,.*lib,,;'`
rm -f %{buildroot}%{_libdir}/libclthreads.so.?
%post -n libclthreads2 -p /sbin/ldconfig
%postun -n libclthreads2 -p /sbin/ldconfig
%files -n libclthreads2
%{_libdir}/lib*.so.*.*
%files -n clthreads-devel
%{_libdir}/lib*.so
%{_includedir}/*
%changelog