LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File wsjtx.spec of Package wsjtx (Project home:dl8fcl:test)

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

%define svnrev 8507

Name:           wsjtx
Version:        1.8.9+r%{svnrev}
Release:        0
Summary:        Weak-signal amateur radio communications
License:        GPL-3.0
Group:          Productivity/Hamradio/Other
Url:            http://www.physics.princeton.edu/pulsar/K1JT/wsjtx.html
Source0:        %{name}-%{version}.tar.xz
#Patch0:         wsjtx-enable_devel_for_all.diff
#Patch0:         wsjtx-enable_devel_for_me.diff

BuildRequires:  asciidoc
BuildRequires:  cmake
BuildRequires:  fftw3-threads-devel
BuildRequires:  gcc-fortran
BuildRequires:  libxslt
BuildRequires:  pkgconfig
%if 0%{?suse_version} == 1315
BuildRequires:  ruby2.1-rubygem-asciidoctor
%else
BuildRequires:  ruby2.5-rubygem-asciidoctor
%endif
BuildRequires:  subversion
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5SerialPort)
BuildRequires:  pkgconfig(hamlib)
BuildRequires:  pkgconfig(libudev)
Recommends:     %{name}-doc

%description
WSJT-X is a computer program designed to facilitate basic amateur radio
communication using very weak signals. It offers nine different protocols 
or modes: FT8, JT4, JT9, JT65, QRA64, ISCAT, MSK144, WSPR, Echo

%package        doc
Summary:        WSJTX documentation
Group:          Documentation/HTML
Requires:       %{name} = %{version}
BuildArch:      noarch

%description    doc
WSJT-X is a computer program designed to facilitate basic amateur radio 
communication using very weak signals. It offers nine different protocols
or modes: FT8, JT4, JT9, JT65, QRA64, ISCAT, MSK144, WSPR, Echo

The documentation of WSJTX

%prep
%setup -q
#%patch0 -p1

%build
# cmake finds hamlib devel files only when installed in /usr/local
%cmake -Dhamlib_INCLUDE_DIRS=%{_includedir} \
       -Dhamlib_LIBRARIES=%{_libdir}/libhamlib.so \
       -Dhamlib_LIBRARY_DIRS=%{_libdir}

make %{?_smp_mflags}

%install
%cmake_install

rm %{buildroot}%{_datadir}/doc/WSJT-X/INSTALL
rm %{buildroot}%{_datadir}/doc/WSJT-X/changelog.Debian.gz

%suse_update_desktop_file -i -r wsjtx "Network;HamRadio"
%suse_update_desktop_file -i -r message_aggregator "Network;HamRadio"

%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/wsjtx_icon.png

%files doc
%defattr(-,root,root)
%{_datadir}/doc/WSJT-X

%changelog