forked from pool/libmpdclient
- Updated to 2.22 * https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/v2.22/NEWS * Changed license to BSD-2-Clause AND BSD-3-Clause. * Removed the unmaintained Vala bindings. * Added mpd_recv_replay_gain_status() * Added support MPD protocol 0.24.0: * tag "Mood", "TitleSort" * "oneshot" consume state * allow range in "playlistmove" * commands "searchcount", "stickernames" * added attribute for songs * search: support constraint "added-since" * command "save [create|replace|append]" OBS-URL: https://build.opensuse.org/request/show/1167952 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmpdclient?expand=0&rev=22
89 lines
2.7 KiB
RPMSpec
89 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package libmpdclient
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2020 Tejas Guruswamy <tejas.guruswamy@opensuse.org>
|
|
#
|
|
# 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 so_name 2
|
|
Name: libmpdclient
|
|
Version: 2.22
|
|
Release: 0
|
|
Summary: Library for interfacing the Music Player Daemon
|
|
License: BSD-2-Clause AND BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://musicpd.org/libs/libmpdclient
|
|
Source0: https://musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz
|
|
Source1: doxygen-nodatetime-footer.html
|
|
Patch0: libmpdclient-doxygen_nodatetime.patch
|
|
BuildRequires: check-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: meson
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
A stable, documented, asynchronous API library for interfacing MPD (Music Player Daemon)
|
|
in the C, C++ & Objective C languages.
|
|
|
|
%package -n %{name}%{so_name}
|
|
Summary: Library for interfacing the Music Player Daemon
|
|
Group: System/Libraries
|
|
|
|
%description -n %{name}%{so_name}
|
|
A stable, documented, asynchronous API library for interfacing MPD (Music Player Daemon).
|
|
|
|
%package devel
|
|
Summary: Development files for libmpdclient
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{name}%{so_name} = %{version}
|
|
|
|
%description devel
|
|
This package contains the development files, e.g. header-files, for
|
|
libmpdclient - a stable, documented and asynchronous API library for
|
|
MPD (Music Player Daemon).
|
|
|
|
%prep
|
|
%autosetup -p0
|
|
|
|
%build
|
|
%meson -Ddocumentation=true -Dtest=true
|
|
cp %{SOURCE1} %{_vpath_builddir}/doc/
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/
|
|
mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}%{_docdir}/%{name}/
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%post -n %{name}%{so_name} -p /sbin/ldconfig
|
|
%postun -n %{name}%{so_name} -p /sbin/ldconfig
|
|
|
|
%files -n %{name}%{so_name}
|
|
%license LICENSES/BSD-2-Clause.txt LICENSES/BSD-3-Clause.txt
|
|
%doc AUTHORS
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%doc %{_docdir}/%{name}/
|
|
%{_includedir}/mpd
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/libmpdclient.pc
|
|
|
|
%changelog
|