# # spec file for package libmpdclient # # Copyright (c) 2020 SUSE LLC # Copyright (c) 2020 Tejas Guruswamy # # 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/ # #v_version=$(/usr/bin/vala --version | cut -d ' ' -f2 | sed 's/\.[0-9]*$//g') %define so_name 2 %define vala_version %(/usr/bin/vala --version | cut -d ' ' -f2 | sed 's/\.[0-9]*$//g') Name: libmpdclient Version: 2.19 Release: 2.6 Summary: Library for interfacing the Music Player Daemon License: 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 >= 0.37 BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: vala %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 %setup -q %patch0 %build %meson -Ddocumentation=true -Dtest=true cp %{SOURCE1} %{_vpath_builddir}/doc/ %meson_build %install %meson_install mkdir -pv %{buildroot}%{_datadir}/vala-%{vala_version}/ mv %{buildroot}%{_datadir}/vala/* %{buildroot}%{_datadir}/vala-%{vala_version}/ rm -r %{buildroot}%{_datadir}/vala/ 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 COPYING %doc AUTHORS %{_libdir}/%{name}.so.* %files devel %doc %{_docdir}/%{name}/ %{_includedir}/mpd %{_libdir}/%{name}.so %{_libdir}/pkgconfig/libmpdclient.pc %dir %{_datadir}/vala-%{vala_version}/ %{_datadir}/vala-%{vala_version}/* %changelog * Mon Dec 14 2020 Tejas Guruswamy - Add patch libmpdclient-doxygen_nodatetime.patch. - Add file doxygen-nodatetime-footer.html. - Include documentation and place vala files in properly versioned subdirectory in devel package. * Fri Jul 3 2020 Илья Индиго - Update to 2.19 * https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/v2.19/NEWS * fix off-by-one bug in MPD_HOST parser * add function mpd_lookup_replay_gain_mode() * identify messages with length over the buffer limit * support MPD protocol 0.16: replay gain * support MPD protocol 0.19: idle events "neighbor" and "mount" * support MPD protocol 0.20: rangeid * support MPD protocol 0.21: command "tagtypes all" * Mon Jan 27 2020 Илья Индиго - Update to 2.18 * https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/v2.18/NEWS * more out-of-memory checks * partition: add mpd_recv_partition() * support MPD protocol 0.21 * "oneshot" single state * support MPD protocol 0.22 * status: add mpd_status_get_partition() * commands "delpartition", "moveoutput" * Thu Dec 5 2019 Илья Индиго - Update to 2.17 * https://raw.githubusercontent.com/MusicPlayerDaemon/libmpdclient/v2.17/NEWS * search: add mpd_search_add_db_songs_to_playlist() * idle: support event "partition" * support MPD protocol 0.19 - "listneighbors" * support MPD protocol 0.22 - "getfingerprint" * support tags "MPD_TAG_LABEL", "MPD_TAG_MUSICBRAINZ_WORKID", "Grouping", "Work", "Conductor" * support MPD partitions * mpd_async_set_keepalive() returns bool * mpd_connection_set_keepalive() returns bool * Thu Nov 8 2018 Luigi Baldoni - Update to version 2.16 * support MPD protocol 0.19 + "mount", "unmount", "listmounts" * support MPD protocol 0.17 + "load" with range * add mpd_output_get_attribute() * use UINX_MAX instead of `(unsigned)-1` to avoid undefined behavior * Thu Oct 4 2018 Tomáš Chvátal - Update to 2.15: * support MPD protocol 0.17 * Various compiler warning fixes - Use meson macros * Sat May 5 2018 tejas.guruswamy@opensuse.org - Update to 2.14 * support MPD protocol 0.21 - command "outputset" - mpd_output_get_plugin() - receive output attributes * MSVC compatibility * improved local and abstract socket support * Thu Jul 27 2017 olaf@aepfle.de - Update to 2.13 * fix build with meson > 0.38.1 * fix connect error "Operation now in progress" * support MPD protocol 0.21 - support tag "OriginalDate" - command "tagtypes" plus "disable", "enable", "clear" * support MPD protocol 0.20 - support "plchanges" and "plchangesposid" with range * support MPD protocol 0.19 - commands "addtagid", "cleartagid" - command "listfiles" - grouping for "list" and "count" - tag "AlbumSort" - "seekid" with float time * use relative #include paths to avoid clashes with other libmpdclient copies * build with Meson instead of autotools * Mon Apr 17 2017 olaf@aepfle.de - Update to 2.11 * fix heap corruption with mpd_connection_new_async() * add space before "window" search argument * detect getaddrinfo() at configure time * add support for ArtistSort and AlbumArtistSort tags * support MPD protocol 0.21 - audio format specifications "dsd64" etc. * Sun Nov 1 2015 rpm@fthiessen.de - Updated package to 2.10 * support abstract sockets with "@" prefix * support tag "MUSICBRAINZ_RELEASETRACKID" * add TCP keepalive internal and external APIs * support MPD protocol 0.19 and 0.20 * Sat Oct 31 2015 rpm@fthiessen.de - Initial version 2.9