File libsdr-gui.spec of Package libsdr-gui

#
# spec file for package libsdr-gui
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


%define sover   0_1_0
%define libname libsdr-gui%{sover}
Name:           libsdr-gui
Version:        0.1.0
Release:        0
Summary:        Software defined radio (SDR) library (graphical elements)
License:        GPL-2.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://hmatuschek.github.io/libsdr-gui
#Git-Clone:     https://github.com/hmatuschek/libsdr-gui.git
Source:         https://github.com/hmatuschek/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libsdr-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  pkgconfig(portaudio-2.0)

%description
A C++ library for software defined radio (graphical elements).

%package -n %{libname}
Summary:        Software defined radio (SDR) library (graphical elements)
Group:          System/Libraries

%description -n %{libname}
A C++ library for software defined radio (graphical elements).

%package devel
Summary:        Development files for libsdr-gui
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}
Requires:       libsdr-devel

%description devel
A C++ library for software defined radio (graphical elements).

This subpackage contains libraries and header files for developing
applications that want to make use of libsdr-gui.

%prep
%setup -q

%build
%cmake
%make_jobs

%install
%cmake_install

%post   -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname}
#%%license LICENSE
%{_libdir}/libsdr-gui.so.%{version}*

%files devel
%{_includedir}/libsdr/gui
%{_libdir}/libsdr-gui.so

%changelog
openSUSE Build Service is sponsored by