File xdx.spec of Package xdx

#
# spec file for package xdx
#
# Copyright (c) 2023 Walter Fey DL8FCL
#
# This file is under MIT license

Name:           xdx
Version:        2.92~git20220911
Release:        0
License:        GPL-2.0
Summary:        Dx-cluster telnet client
Url:            https://github.com/N0NB/xdx/wiki
Group:          Productivity/Hamradio/Other
Source0:        %{name}-%{version}.tar.xz
Source1:        http://www.country-files.com/cty/cty.dat

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gettext-tools
BuildRequires:  libicu-devel
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  update-desktop-files
Recommends:     hamlib

%description
Xdx is a dedicated network client for amateur radio operators who want 
to exchange DX (long distance) radio information. After connection 
to a DX-cluster, xdx will show DX-spots in a list and other messages 
('To all' and WWV/WCY messages) in a text widget.

%prep
%setup -q

%build
gettextize --force --copy --no-changelog
autoreconf --force --install
%configure
%make_build

%install
%make_install
rm %{buildroot}%{_datadir}/applications/Xdx.desktop
cp %{buildroot}%{_datadir}/xdx/pixmaps/xdx-logo.png %_sourcedir/xdx.png
%suse_update_desktop_file -c xdx Xdx "Dx-cluster telnet client" xdx xdx "Network;HamRadio"
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/cty.dat
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%license COPYING
%{_bindir}/*
%{_datadir}/%{name}/
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by