File tinycompress.spec of Package tinycompress
#
# spec file for package tinycompress
#
# Copyright (c) 2020 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 http://bugs.opensuse.org/
#
%define so_ver 0
Name: tinycompress
Version: 1.2.13
Release: 0
Summary: A library for ALSA compressed API
License: BSD-3-Clause and LGPL-2.1
Group: System/Libraries
Url: http://www.alsa-project.org
Source: %{url}/files/pub/tinycompress/tinycompress-%{version}.tar.bz2
Source1: %{url}/files/pub/tinycompress/tinycompress-%{version}.tar.bz2.sig
# from https://www.alsa-project.org/files/pub/gpg-release-key-v1.txt
Source2: tinycompress.keyring
BuildRequires: libtool
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
tinycompress is a userspace library for anyone who wants to use the ALSA
compressed APIs. This library provides the APIs to open a ALSA
compressed device and read/write compressed data like MP3 etc to it.
%package utils
Summary: Utility programs for ALSA compressed API
Group: System/Libraries
%description utils
This package includes utility programs to demonstrate the usage of
ALSA compressed API.
%package -n libtinycompress%{so_ver}
Summary: A library for ALSA compressed API
Group: System/Libraries
%description -n libtinycompress%{so_ver}
tinycompress is a userspace library for anyone who wants to use the ALSA
compressed APIs. This library provides the APIs to open a ALSA
compressed device and read/write compressed data like MP3 etc to it.
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: libtinycompress%{so_ver} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q
%build
%configure --disable-static
make V=1 %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_libdir}/*.la
%post -n libtinycompress%{so_ver} -p /sbin/ldconfig
%postun -n libtinycompress%{so_ver} -p /sbin/ldconfig
%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/tinycompress
%doc README
%license COPYING
%files utils
%defattr(-, root, root)
%{_bindir}/*
%files -n libtinycompress%{so_ver}
%defattr(-, root, root)
%{_libdir}/lib*.so.*
%changelog