File tinyalsa.spec of Package tinyalsa
#
# spec file for package tinyalsa
#
# Copyright (c) 2022 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/
#
%define _soname libtinyalsa2
Name: tinyalsa
Version: 2.0.0
Release: 0
Summary: TinyALSA is a small library to interface with ALSA in the Linux kernel.
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: BSD-3-Clause
URL: https://github.com/tinyalsa/tinyalsa
Source: %{name}-%{version}.tar.xz
BuildRequires: kernel-sdm845-devel
%description
TinyALSA is a small library to interface with ALSA in the Linux kernel.
%package -n %{_soname}
Summary: Library for %{name}
Group: System/Libraries
%description -n %{_soname}
This package contains the library for %{name}.
%package -n %{name}-devel
Summary: Development library for %{name}
Requires: %{name} = %{version}
Requires: pkgconfig
%description -n %{name}-devel
This package contains the development library for %{name}.
%package docs
Summary: Doc files for %{name}
Requires: %{name} = %{version}
%description docs
This package contains the docs for %{name}
%prep
%setup -q
%build
%make_build PREFIX=%{_prefix} BINDIR=%{_bindir} LIBDIR=%{_libdir} INCDIR=%{_includedir}/tinyalsa/
%install
%make_install PREFIX=%{_prefix} BINDIR=%{_bindir} LIBDIR=%{_libdir} INCDIR=%{_includedir}/tinyalsa/
%post -n %{_soname} -p /sbin/ldconfig
%postun -n %{_soname} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/*
%files docs
%{_mandir}/*
%files -n %{_soname}
%{_libdir}/*.so.*
%{_libdir}/libtinyalsa.a
%files -n %{name}-devel
%{_libdir}/libtinyalsa.so
%dir %{_includedir}/tinyalsa/
%{_includedir}/tinyalsa/*
%changelog