File tlf.spec of Package tlf

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

Name:           tlf
Version:        1.4.1+git20251201
Release:        0
Summary:        Contest logging program
License:        GPL-2.0
Group:          Productivity/Hamradio/Logging
Url:            https://tlf.github.io
Source:         %{name}-%{version}.tar.xz
%if 0%{?sle_version} == 150600 && 0%{?is_opensuse}
Patch0:         tlf-python_ver.diff
Patch1:         tlf-autocq.c.diff
%endif

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  python3-pexpect
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(hamlib)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(xmlrpc)

%description
TLF is a curses based console mode general logging and contest program for
amateur radio.
It supports the CQWW, the WPX, the ARRL-DX, the ARRL-FD, the PACC and the EU
SPRINT shortwave contests (single operator) as well as a LOT MORE basic
contests, general QSO and DXpedition mode.

%prep
%autosetup -p1

%build
autoreconf -i -f
%if 0%{?sle_version} == 150600 && 0%{?is_opensuse}
%configure --enable-hamlib \
           --enable-fldigi-xmlrpc \
           --with-ncurses
%else
%configure --enable-hamlib \
           --enable-fldigi-xmlrpc \
           --enable-python-plugin \
           --with-ncurses
%endif

%make_build

%install
%make_install

%files
%doc AUTHORS ChangeLog NEWS
%license COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/doc/%{name}
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by