File suwidgets.spec of Package suwidgets
#
# spec file for package suwidgets
#
# Copyright (c) 2020-2024, 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/
#
%global sover 0
%global libname lib%{name}%{sover}
Name: suwidgets
Version: 0.3.0+git20240818
Release: 0
Summary: Sigutils-related widgets library
License: GPL-3.0-or-later
Group: Productivity/Hamradio/Other
URL: https://batchdrake.github.io/SigDigger/
#Git-Clone: https://github.com/BatchDrake/SuWidgets.git
#Source: https://github.com/BatchDrake/SuWidgets/archive/v%%{version}.tar.gz#/SuWidgets-%%{version}.tar.gz
Source: SuWidgets-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: git-core
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(sigutils) >= 0.3.0
%description
Sigutils-related widgets library.
%package -n %{libname}
Summary: Sigutils-related widgets library
Group: System/Libraries
%description -n %{libname}
Sigutils-related widgets library.
This subpackage contains shared library part of suwidgets.
%package devel
Summary: Development files for suwidgets
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: pkgconfig(Qt5Widgets)
%description devel
Sigutils-related widgets library.
This subpackage contains libraries and header files for developing
applications that want to make use of suwidgets.
%prep
%setup -q -n SuWidgets-%{version}
%build
%qmake5 SuWidgetsLib.pro
%make_jobs
%install
%qmake5_install
%ldconfig_scriptlets -n %{libname}
%files -n %{libname}
%license LICENSE LICENSE.ctkRangeSlider LICENSE.Waterfall
# !!! README missing
#%%doc README
%{_libdir}/libsuwidgets.so.%{sover}*
%files devel
%{_includedir}/qt5/SuWidgets
%{_libdir}/libsuwidgets.so
# !!! FIXME: pkgconfig-file missing
#%%{_libdir}/pkgconfig/libsuwidgets.pc
%changelog