File tqsl.spec of Package tqsl

#
# spec file for package TrustedQSL
#
# Copyright (c) 2013-2025 Walter Fey DL8FCL
#
# This file is under MIT license

Name:           tqsl
Version:        2.8.3~git20251027
Release:        0
License:        MIT
Summary:        TrustedQSL ham-radio applications
Url:            https://sourceforge.net/projects/trustedqsl/
Group:          Productivity/Hamradio/Other
Source:         %{name}-%{version}.tar.gz
Patch0:         %{name}-desktop.diff

BuildRequires:  cmake
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  wxWidgets-3_2-devel
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(lmdb)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(zlib)

%description
The TrustedQSL applications are used for generating digitally signed
QSO records (records of Amateur Radio contacts).

%package devel
Summary:        The TrustedQSL Library development files
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description devel
Header files needed to build TrustedQSL applications.

%prep
%autosetup -p1
dos2unix README

%build
%cmake
%cmake_build

%install
%cmake_install
%fdupes -s %{buildroot}%{_datadir}
%find_lang tqslapp

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f tqslapp.lang
%license LICENSE.txt 
%doc AUTHORS.txt README apps/ChangeLog.txt
%{_bindir}/*
%{_libdir}/libtqsllib.so
%{_datadir}/TrustedQSL
%{_mandir}/man5/*
%{_datadir}/applications/org.arrl.trustedqsl.desktop
%{_datadir}/icons/*
%exclude %{_datadir}/pixmaps/TrustedQSL.png

%files devel
%{_includedir}/*.h

%changelog
openSUSE Build Service is sponsored by