Blob Blame History Raw
Name:           lpsk31
Version:        1.1
Release:        6%{?dist}
Summary:        A ncurses application for ham radio communications using PSK31 digital mode

Group:          Applications/Communications
License:        GPLv2+
URL:            http://5b4az.chronos.org.uk/pages/digital.html
Source0:        http://5b4az.chronos.org.uk/pkg/psk31/lpsk31/%{name}-%{version}.tar.gz
Source1:        lpsk31-1.1-wrapper.in
Patch0:         lpsk31-1.1-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ncurses-devel
#Requires:       

%description
lpsk31 is a ncurses console application for ham radio communications in the 
popular PSK31 digital mode. lpsk31 uses only integer arithmetic for both signal 
detection and audio tone synthesis, so that it needs no floating point 
calculations for its operation. lpsk31 can keep a log of QSO's in text and ADIF 
format as well as a raw log of all that is typed in the transmit window or 
displayed in the receive window. 

%prep
%setup -q -n %{name}
%patch0 -p1

%build
make CC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
#manual install

#install binary too libexec for use in wrapper script
install lpsk31 -D -p $RPM_BUILD_ROOT%{_libexecdir}/lpsk31-bin

#install wrapper script
install -m 0755 -D -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/lpsk31

#include sample user configuration
install -D -p -m 0644 default/lpsk31rc $RPM_BUILD_ROOT%{_datadir}/%{name}/lpsk31rc

%clean
rm -rf $RPM_BUILD_ROOT


%files
#doesn't contain a copy of GPLv2 License, queried upstream
%defattr(-,root,root,-)
%doc AUTHORS README doc/*
%{_bindir}/*
%{_datadir}/%{name}
%{_libexecdir}/*

%changelog
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Thu Dec 11 2008 Sindre Pedersen Bjørdal <sindrepb@fedoraproject.org> - 1.1-4
- Add wrapper script to ensure user configuration is present, #474835
- Install sample user configuration

* Sat Mar 01 2008 Robert 'Bob' Jensen <bob@bobjensen.com> 1.1-1
- Initial SPEC