From d2fab7fb503562ac6ea42829b9c0db755936cf7b Mon Sep 17 00:00:00 2001 From: Robert 'Bob' Jensen Date: Feb 20 2008 01:38:20 +0000 Subject: Committing in demorse for devel/F9. Modified Files: devel/.cvsignore devel/sources Added Files: devel/demorse-0.8-makefile.patch devel/demorse.spec --- diff --git a/.cvsignore b/.cvsignore index e69de29..ecbf777 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +demorse-0.8.tar.gz diff --git a/demorse-0.8-makefile.patch b/demorse-0.8-makefile.patch new file mode 100644 index 0000000..fa3d746 --- /dev/null +++ b/demorse-0.8-makefile.patch @@ -0,0 +1,34 @@ +diff -up demorse-0.8/Makefile.orig demorse-0.8/Makefile +--- demorse-0.8/Makefile.orig 2007-11-21 22:26:26.000000000 +0100 ++++ demorse-0.8/Makefile 2007-11-21 22:50:35.000000000 +0100 +@@ -2,10 +2,12 @@ + + SHELL = /bin/sh + PROJECT = demorse +-BINDIR = /usr/local/bin +-DOCDIR = /usr/local/share/ ++BINDIR = /usr/bin/ ++DOCDIR = /usr/share/doc/ + CC = gcc -Wall -O2 + ++DESTDIR= ++ + objects = decode.o demorse.o detect.o sound.o + + $(PROJECT) : $(objects) +@@ -14,12 +16,11 @@ $(PROJECT) : $(objects) + $(objects) : $(PROJECT).h + + install : $(PROJECT) +- install -m 755 --strip $(PROJECT) $(BINDIR) +- install -m 644 doc/$(PROJECT).html $(DOCDIR) ++ install -D -m 755 $(PROJECT) $(DESTDIR)$(BINDIR)/$(PROJECT) + + uninstall : +- rm $(BINDIR)/$(PROJECT) +- rm $(DOCDIR)/$(PROJECT).html ++ rm $(DESTDIR)$(BINDIR)/$(PROJECT) ++ rm $(DESTDIR)$(DOCDIR)/$(PROJECT).html + + clean : + rm -f *.o *~ diff --git a/demorse.spec b/demorse.spec new file mode 100644 index 0000000..742ab87 --- /dev/null +++ b/demorse.spec @@ -0,0 +1,59 @@ +Name: demorse +Version: 0.8 +Release: 3%{?dist} +Summary: Command line tool for decoding Morse code signals + +Group: Applications/Communications +License: GPLv2+ +URL: http://5b4az.chronos.org.uk/pages/morse.html +Source0: http://5b4az.chronos.org.uk/pkg/morse/%{name}/%{name}-%{version}.tar.gz +Patch0: demorse-0.8-makefile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#BuildRequires: +#Requires: + +%description +demorse is a non-interactive command line tool for decoding Morse code signals +into text. demorse detects the "dihs" and "dahs" that make a Morse code +character via the computer's sound card, which can be connected to a radio +receiver tuned to a CW Morse code transmission or to a tone generator. + +The input signal is processed by a Goertzel tone detector which produces "mark" +or "space" (signal/no signal) outputs and the resulting stream of Morse code +"elements" is decoded into an ASCII character for printing to the screen. +Currently demorse is a non- interactive command line tool for the console and +decoded Morse signals are sent to stdout. + +%prep +%setup -q +%patch0 -p1 + + +%build +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +#doesn't contain a copy of GPLv2 License, queried upstream +%defattr(-,root,root,-) +%doc AUTHORS README doc/demorse.html doc/Morsecode.txt +%{_bindir}/%{name} + +%changelog +* Sun Feb 17 2008 Robert 'Bob' Jensen 0.8-3 +- Initial SPEC +* Wed Nov 21 2007 Sindre Pedersen Bjørdal 0.8-2 +- Update License tag +- Copy of GPL is missing form upstream tarball, make note of this +- Rewrite makefile Patch +- include doc files +* Tue May 15 2007 Robert 'Bob' Jensen 0.8-0 +- Initial SPEC diff --git a/sources b/sources index e69de29..83c2231 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d96d63ba6f43b9d22ae8e910d4544d95 demorse-0.8.tar.gz