File cqrlog.spec of Package cqrlog
#
# spec file for package cqrlog
#
# Copyright (c) 2017 Walter Fey DL8FCL
#
# This file is under MIT license
Name: cqrlog
Version: 2.5.2
Release: 0
Summary: Advanced ham radio log program
License: GPL-2.0-only
Group: Productivity/Hamradio/Logging
URL: https://www.cqrlog.com/
Source: cqrlog-%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: lazarus
BuildRequires: libopenssl-devel
BuildRequires: update-desktop-files
Requires: libmariadb-devel
Requires: hamlib
Recommends: tqsl
Recommends: xplanet
%description
CQRLOG is an advanced ham radio logger based on MySQL database. Provides radio
control based on hamlib libraries, DX cluster connection, online callbook,
a grayliner, internal QSL manager database support and a most accurate country
resolution algorithm based on country tables developed by OK1RR. CQRLOG is
intended for daily general logging of HF, CW & SSB contacts and strongly
focused on easy operation and maintenance.
%prep
%setup -q
dos2unix members/*
dos2unix ctyfiles/*
%build
export CFLAGS="%{optflags}"
export LDFLAGS="%{?__global_ldflags}"
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}/%{_datadir}/applications/cqrlog.desktop
mv %{buildroot}/%{_datadir}/pixmaps/cqrlog/cqrlog.png %{buildroot}/%{_datadir}/pixmaps
rm -rf %{buildroot}/%{_datadir}/icons/cqrlog
rm -rf %{buildroot}/%{_datadir}/pixmaps/cqrlog
iconv -f iso8859-1 -t utf-8 %{buildroot}%{_datadir}/%{name}/ctyfiles/eqsl.txt > %{buildroot}%{_datadir}/%{name}/ctyfiles/eqsl.txt.conv && mv -f %{buildroot}%{_datadir}/%{name}/ctyfiles/eqsl.txt.conv %{buildroot}%{_datadir}/%{name}/ctyfiles/eqsl.txt
%fdupes -s %{buildroot}/%{_datadir}
%suse_update_desktop_file -c cqrlog CQRLOG "Hamradio logging program" cqrlog cqrlog "Network;HamRadio"
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.gz
%exclude %{_datadir}/icons/%{name}.png
%changelog