rpms/lpsk31/F-7 lpsk31-1.1-makefile.patch, NONE, 1.1 lpsk31.spec, NONE, 1.1 sources, 1.1, 1.2

Robert 'Bob' Jensen (bjensen) fedora-extras-commits at redhat.com
Sun Mar 2 21:26:34 UTC 2008


Author: bjensen

Update of /cvs/pkgs/rpms/lpsk31/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18657

Modified Files:
	sources 
Added Files:
	lpsk31-1.1-makefile.patch lpsk31.spec 
Log Message:
* Sat Mar 01 2008 Robert 'Bob' Jensen <bob at bobjensen.com> 1.1-1
- Initial SPEC


lpsk31-1.1-makefile.patch:

--- NEW FILE lpsk31-1.1-makefile.patch ---
diff -up lpsk31/Makefile.orig lpsk31/Makefile
--- lpsk31/Makefile.orig	2008-02-29 23:13:25.000000000 -0600
+++ lpsk31/Makefile	2008-02-29 23:17:49.000000000 -0600
@@ -2,10 +2,12 @@
 
 SHELL   = /bin/sh
 PROJECT = lpsk31
-BINDIR  = /usr/local/bin
-DOCDIR  = /usr/local/share/
+BINDIR  = /usr/bin
+DOCDIR  = /usr/share/doc/
 CC      = gcc -Wall -O2 -march=native
 
+DESTDIR=
+
 objects = cat.o lpsk31.o phase.o pskcodec.o screen.o sound.o
 
 $(PROJECT) : $(objects)
@@ -14,15 +16,14 @@ $(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)
 	if test ! -d $(HOME)/$(PROJECT); then mkdir $(HOME)/$(PROJECT); fi
 	install -m 644 default/$(PROJECT)rc $(HOME)/$(PROJECT)
 
 uninstall :
 	if test -d $(HOME)/$(PROJECT); then rm -r $(HOME)/$(PROJECT); fi
-	rm $(BINDIR)/$(PROJECT)
-	rm $(DOCDIR)/$(PROJECT).html
+	rm $(DESTDIR)$(BINDIR)/$(PROJECT)
+	rm $(DESTDIR)$(DOCDIR)/$(PROJECT).html
 
 clean :
 	rm -f *.o *~


--- NEW FILE lpsk31.spec ---
Name:           lpsk31
Version:        1.1
Release:        1%{?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
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
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/*
%{_bindir}/%{name}

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



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/lpsk31/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Mar 2008 17:17:47 -0000	1.1
+++ sources	2 Mar 2008 21:25:56 -0000	1.2
@@ -0,0 +1 @@
+70a5461c9426f5d298c8a798a6436376  lpsk31-1.1.tar.gz




More information about the fedora-extras-commits mailing list