Cleanup and build the last packages for Fedora 37

This commit is contained in:
2022-11-25 11:36:16 +01:00
parent 9754e4d04a
commit cee9ca5ba4
44 changed files with 1284 additions and 1878 deletions

View File

@@ -0,0 +1,84 @@
#
# spec file for package noson
#
# 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 https://bugs.opensuse.org/
#
Name: noson
Version: 2.3.1
Release: 1%{?dist}
Summary: C++ library for accessing sonos devices
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/janbar/noson/
Source0: https://github.com/janbar/noson/archive/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: flac-devel
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: zlib-devel
%description
C++ library for accessing sonos devices
The API supports basic features to browse music index and control playback
in any zones.
%package -n libnoson2
Summary: C++ library for accessing sonos devices
Group: System/Libraries
%description -n libnoson2
C++ library for accessing sonos devices
The API supports basic features to browse music index and control playback
in any zones.
%package devel
Summary: Development files for noson library
Group: Development/Libraries/C and C++
Requires: libnoson2 = %{version}
%description devel
Development files for noson library. The noson library supports basic features
to browse music index and control playback in any zones.
%prep
%setup -q
%build
%cmake \
-DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir}
%cmake_build
%install
%cmake_install
%post -n libnoson2 -p /sbin/ldconfig
%postun -n libnoson2 -p /sbin/ldconfig
%files -n libnoson2
%license LICENSE
%doc README.md
%{_libdir}/libnoson.so.%{version}
%{_libdir}/libnoson.so.2
%files devel
%{_includedir}/noson
%{_libdir}/pkgconfig/noson.pc
%{_libdir}/cmake/noson/
%{_libdir}/libnoson.so
%changelog