File librm.spec of Package librm

#
# spec file for package librm
#
# Copyright (c) 2020 SUSE LLC
#
# 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 sover 0
Name:           librm
Version:        2.2.3
Release:        0
Summary:        Offers FRITZ!Box related core functionality for Roger Router
License:        LGPL-2.0-only
Group:          Productivity/Networking/Other
URL:            https://tabos.gitlab.io/
Source0:        https://gitlab.com/tabos/librm/-/archive/%{version}/%{name}-%{version}.tar.gz
###Patch0: spandsp2.patch
Patch1: spandsp3.patch
###
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  unzip
###BuildRequires:  pkgconfig(capi20)
BuildRequires: libcapi20-devel
###
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-app-1.0)
BuildRequires:  pkgconfig(gupnp-1.2)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libsecret-1)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libtiff-4)
BuildRequires:  pkgconfig(sndfile)
###%%if 0%%{?suse_version} > 1500
BuildRequires:  pkgconfig(spandsp) >= 3.0
###BuildRequires: spandsp-devel > 3.0
###%%else
###BuildRequires:  pkgconfig(spandsp-2.0)
###%%endif
BuildRequires:  pkgconfig(speex)

%description
Router Manager Library

Offers FRITZ!Box related core functionality for Roger Router (GUI),
Roger CLI (CLI) and Roger Rabbit (ncurses) interfaces.

%package -n %{name}%{sover}
Summary:       Offers FRITZ!Box related core functionality for Roger Router
Group:         System/Libraries

%description -n %{name}%{sover}
Router Manager Library

Offers FRITZ!Box related core functionality for Roger Router (GUI),
Roger CLI (CLI) and Roger Rabbit (ncurses) interfaces.

%package devel
Summary:        Development libraries and header files for %{name}
Group:          Development/Libraries/Other
Requires:       %{name}%{sover} = %{version}

%description devel
Router Manager Library - Development

Offers FRITZ!Box related core functionality for Roger Router (GUI),
Roger CLI (CLI) and Roger Rabbit (ncurses) interfaces.


%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
%find_lang rm

%check
%meson_test

%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig


%files -n %{name}%{sover} -f rm.lang
%{_libdir}/%{name}*.so.%{sover}
%{_libdir}/%{name}*.so.%{version}
%dir %{_libdir}/rm
%dir %{_datadir}/sounds/rm
%{_libdir}/rm/*
%{_datarootdir}/glib-2.0/schemas/*
%{_datadir}/sounds/rm/call_in.wav

%files devel
%dir %{_includedir}/rm
%{_includedir}/rm/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/librm.pc

%changelog
openSUSE Build Service is sponsored by