rpms/gridloc/F-8 gridloc-0.6-makefile.patch, NONE, 1.1 gridloc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lucian Langa lucilanga at fedoraproject.org
Sun Aug 24 13:28:37 UTC 2008


Author: lucilanga

Update of /cvs/pkgs/rpms/gridloc/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2866

Modified Files:
	.cvsignore sources 
Added Files:
	gridloc-0.6-makefile.patch gridloc.spec 
Log Message:
initial import

gridloc-0.6-makefile.patch:

--- NEW FILE gridloc-0.6-makefile.patch ---
--- gridloc/Makefile	2007-11-23 09:21:17.000000000 +0200
+++ gridloc-mod/Makefile	2008-07-16 08:28:15.000000000 +0300
@@ -2,10 +2,12 @@
 
 SHELL   = /bin/sh
 PROJECT = gridloc
-BINDIR  = /usr/local/bin
-DOCDIR  = /usr/local/share/doc/
+BINDIR  = /usr/bin
+DOCDIR  = /usr/share/doc/
 CC      = gcc -Wall -O2 -march=native
 
+DESTDIR= 
+
 objects = calculate.o gridloc.o screen.o
 
 $(PROJECT) : $(objects)
@@ -14,13 +16,11 @@
 $(objects) : $(PROJECT).h
 
 install : $(PROJECT)
-	install -m 755 --strip $(PROJECT) $(BINDIR)
-	install -m 644 doc/$(PROJECT).html $(DOCDIR)
-	install -m 644 default/.$(PROJECT)rc $(HOME)
+	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
 	rm $(HOME)/.$(PROJECT)rc
 
 clean :


--- NEW FILE gridloc.spec ---
Name:           gridloc
Version:        0.6
Release:        5%{?dist}
Summary:        A ncurses console application for the calculation of Maidenhead QRA Locators

Group:          Applications/Communications
License:        GPLv2+
URL:            http://5b4az.chronos.org.uk/pages/locator.html
Source0:        http://5b4az.chronos.org.uk/pkg/locator/%{name}/%{name}-%{version}.tar.gz
Patch0:         gridloc-0.6-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ncurses-devel
#Requires:       

%description
gridloc is a ncurses console application for the calculation of Maidenhead QRA 
Locators for ham radio operators from location co-ordinates, and vice-versa. 
gridloc also calculates distance and direction (long-path or short-path) from a 
"home" location to another (DX) location.

%prep
%setup -qn %{name}
%patch0 -p1
#fix CFLAG silly from upstream
sed -i -e 's/-march=native//g' Makefile

%build
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
mkdir -p $RPM_BUILD_ROOT%{_docdir}
cp default/.gridlocrc $RPM_BUILD_ROOT/%{_docdir}/gridlocrc.sample


%clean
rm -rf $RPM_BUILD_ROOT


%files
#doesn't contain a copy of GPLv2 License, queried upstream
%defattr(-,root,root,-)
%doc AUTHORS README doc/%{name}.html
%{_bindir}/%{name}
%{_docdir}/gridlocrc.sample


%changelog
* Mon Aug 11 2008 Lucian Langa <cooly at gnome.eu.org> - 0.6-5
- Update source package (apparently changed upstream)

* Wed Jul 16 2008 Lucian Langa <cooly at gnome.eu.org> - 0.6-4
- add sample rc file

* Sat Mar 01 2008 Robert 'Bob' Jensen <bob at bobjensen.com> - 0.6-3
- use sed to Fix make per -devel

* Sat Mar 01 2008 Robert 'Bob' Jensen <bob at bobjensen.com> - 0.6-2
- Fix make per review

* Sat Mar 01 2008 Robert 'Bob' Jensen <bob at bobjensen.com> - 0.6-1
- Initial spec


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gridloc/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Aug 2008 17:49:01 -0000	1.1
+++ .cvsignore	24 Aug 2008 13:28:06 -0000	1.2
@@ -0,0 +1 @@
+gridloc-0.6.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gridloc/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Aug 2008 17:49:01 -0000	1.1
+++ sources	24 Aug 2008 13:28:06 -0000	1.2
@@ -0,0 +1 @@
+6b16ebeb4895e81a2d64efcb5992563c  gridloc-0.6.tar.gz




More information about the fedora-extras-commits mailing list