Package dleyna-server: Specfile

%def_disable snapshot
%define _libexecdir %_prefix/libexec

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

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

Summary: Service for interacting with Digital Media Servers
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-server.git
Source: %name-%version.tar
%endif

Requires: %_name-connector-dbus

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

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

%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
%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
%doc AUTHORS ChangeLog README*

%files devel
%_includedir/%_name-%api_ver/lib%_name/server/
%_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)

* Mon Dec 30 2019 Yuri N. Sedunov <aris@altlinux.org> 0.6.0-alt2
- updated to 0.6.0-2-geb895ae (ported to (gssdp/gupnp)-1.2)

* 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