File unixcw.spec of Package unixcw
#
# spec file for package unixcw
#
# Copyright (c) 2013-2024 Walter Fey DL8FCL
#
# This file is under MIT license
%define soname 8
Name: unixcw
Version: 3.6.1
Release: 0
License: GPL-2.0-only
Summary: Libraries and programs for CW
Url: http://unixcw.sourceforge.net/
Group: Productivity/Hamradio/Other
Source: %{name}-%{version}.tar.gz
Source2: xcwcp.png
Patch0: unixcw-ncurses.diff
BuildRequires: alsa-devel
BuildRequires: ncurses-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libpulse-devel
BuildRequires: update-desktop-files
%description
Unixcw is a project providing libcw library and a set of programs using the
library: cw, cwgen, cwcp and xcwcp. The programs are intended for people who
want to learn receiving and sending Morse code. unixcw is developed and tested
on GNU/Linux system.
%package -n libcw%{soname}
Summary: Libraries for CW programs
Group: Development/Libraries/Other
%description -n libcw%{soname}
Unixcw is a project providing libcw library and a set of programs using the
library: cw, cwgen, cwcp and xcwcp. The programs are intended for people who
want to learn receiving and sending Morse code. unixcw is developed and tested
on GNU/Linux system.
%package devel
Summary: Libraries and programs for CW development
Group: Development/Libraries/Other
Requires: unixcw = %{version}
%description devel
UnixCW devel
Unixcw is a project providing libcw library and a set of programs using the
library: cw, cwgen, cwcp and xcwcp. The programs are intended for people who
want to learn receiving and sending Morse code. unixcw is developed and tested
on GNU/Linux system.
%prep
%setup -q
%patch -P 0 -p1
%build
%configure --disable-static
%make_build
%install
%make_install
%suse_update_desktop_file -c xcwcp Xcwcp "Morse tutor" xcwcp xcwcp "Network;HamRadio"
%post -n libcw%{soname} -p /sbin/ldconfig
%postun -n libcw%{soname} -p /sbin/ldconfig
%files
%{_bindir}/*
%{_datadir}/pixmaps/xcwcp.png
%{_datadir}/applications/xcwcp.desktop
%doc %{_mandir}/man1/*
%doc %{_mandir}/man7/*
%files -n libcw%{soname}
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libcw*.so.*
%doc %{_mandir}/man3/libcw.3.gz
%files devel
%{_libdir}/libcw*.so
%{_libdir}/libcw*.la
%{_libdir}/pkgconfig/*
%{_includedir}/*
%changelog