# # spec file for package libmpdclient # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %if 0%{?is_opensuse} %bcond_with vala %else # SLE has no vala %bcond_with vala %endif %define so_name 2 Name: libmpdclient Version: 2.15 Release: 1.11 Summary: Library for interfacing the Music Player Daemon License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: http://www.musicpd.org/libs/libmpdclient/ Source: http://www.musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc BuildRequires: pkg-config %if %{with vala} BuildRequires: vala %define vala_version %(rpm -q --queryformat='%{VERSION}' vala | sed 's/\.[0-9]*$//g') %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 %build %meson \ -Ddocumentation=true \ %{nil} %meson_build %install %meson_install # Vala stuff %if %{with vala} mkdir -pv %{buildroot}%{_datadir}/vala-%{vala_version}/ mv %{buildroot}%{_datadir}/vala/* %{buildroot}%{_datadir}/vala-%{vala_version}/ %endif rm -rf %{buildroot}%{_datadir}/vala/ # Documentation is installed in the wrong location rm -rf %{buildroot}/usr/share/doc/%{name}/ # Remove unneeded development files rm -f %{buildroot}%{_libdir}/%{name}.la # File duplicates %fdupes %{buildroot}%{_prefix} %fdupes -s ./doc/api %post -n %{name}%{so_name} /sbin/ldconfig %postun -n %{name}%{so_name} /sbin/ldconfig %files -n %{name}%{so_name} %defattr(-,root,root) %doc AUTHORS COPYING %{_libdir}/%{name}.so.* %files devel %defattr(644, root, root) %doc build/doc/html/* README.rst NEWS %{_includedir}/mpd %{_libdir}/%{name}.so %{_libdir}/pkgconfig/libmpdclient.pc %if %{with vala} %{_datadir}/vala-%{vala_version}/* %endif %changelog * 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