Package dleyna-renderer: Specfile

%def_disable snapshot
%define _libexecdir %_prefix/libexec

%define _name dleyna
%define api_ver 1.0
%define gupnp_api_ver 1.2

%def_enable man_pages

Name: %_name-renderer
Version: 0.7.2
Release: alt1

Summary: Service for interacting with Digital Media Renderers
Group: System/Servers
License: LGPL-2.1
Url: https://github.com/phako/%name

%if_disabled snapshot
Source: %url/archive/v%version/%name-%version.tar.gz
%else
Vcs: https://github.com/phako/dleyna-renderer.git
Source: %name-%version.tar
%endif

BuildRequires(pre): rpm-macros-meson
BuildRequires: meson libgio-devel libgssdp%gupnp_api_ver-devel libgupnp%gupnp_api_ver-devel
BuildRequires: libgupnp-av-devel libgupnp-dlna-devel libsoup-devel
BuildRequires: libdleyna-core-devel >= 0.7
%{?_enable_man_pages:BuildRequires: docbook-style-xsl xsltproc}

%description
This package contains shared %name libraries and D-Bus service to
discover and manipulate DLNA Digital Media Renderers.

%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
The lib%name-devel package contains libraries and header files for
developing applications that use %name-service.

%prep
%setup

%build
%meson \
    %{?_disable_man_pages:-Dman_pages=false}
%meson_build

%install
%meson_install

%files
%_libexecdir/%name-service
%dir %_libdir/%name/
%_libdir/%name/lib%name-%api_ver.so.*
%_datadir/dbus-1/services/com.intel.%name.service
%_sysconfdir/%name-service.conf
%{?_enable_man_pages:%_man5dir/%name-service.conf.*}
%doc AUTHORS ChangeLog README*

%files devel
%_includedir/%_name-%api_ver/lib%_name/renderer
%_libdir/%name/lib%name-%api_ver.so
%_pkgconfigdir/%name-service-%api_ver.pc


%changelog
* Tue Nov 02 2021 Yuri N. Sedunov <aris@altlinux.org> 0.7.2-alt1
- 0.7.2

* Mon Sep 27 2021 Yuri N. Sedunov <aris@altlinux.org> 0.7.1-alt1
- 0.7.1 (new upstream, ported to Meson build system)

* Sat Mar 28 2020 Yuri N. Sedunov <aris@altlinux.org> 0.6.0-alt3
- ported to gupnp-1.2 (
  see https://github.com/intel/dleyna-renderer/pull/167)

* Mon Dec 30 2019 Yuri N. Sedunov <aris@altlinux.org> 0.6.0-alt2
- updated BR

* Wed Oct 18 2017 Yuri N. Sedunov <aris@altlinux.org> 0.6.0-alt1
- 0.6.0

* Wed Feb 22 2017 Yuri N. Sedunov <aris@altlinux.org> 0.5.0-alt1
- first build for Sisyphus