--- nec2c-0.8.orig/Makefile +++ nec2c-0.8/Makefile @@ -2,14 +2,14 @@ SHELL = /bin/sh PROJECT = nec2c -BINDIR = /usr/local/bin -CC = gcc -Wall -O2 -march=native +BINDIR = $(DESTDIR)/usr/bin +CC = gcc objects = calculations.o fields.o geometry.o ground.o input.o \ main.o matrix.o misc.o network.o radiation.o somnec.o $(PROJECT) : $(objects) - $(CC) -lm -o $(PROJECT) $(objects) + $(CC) -o $(PROJECT) $(objects) -lm $(objects) : nec2c.h --- nec2c-0.8.orig/debian/copyright +++ nec2c-0.8/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Joop Stakenborg on +Thu, 30 Nov 2006 17:13:03 +0100. + +It was downloaded from http://5b4az.chronos.org.uk/pages/nec2.html + +Upstream Author: Neoklis Kyriazis + +From the README included with the package: + + nec2c is Public Domain, same as the original FORTRAN source. + Please keep any software you write incorporating nec2c in Public Domain + or at least use an open license like GPL or BSD. + +The file file main.c in this package contains the license included with +the original fortran code: +--------------------------------------------------------------------- + Numerical Electromagnetics Code (NEC2) developed at Lawrence + Livermore lab., Livermore, CA. (contact G. Burke at 415-422-8414 + for problems with the NEC code. For problems with the vax implem- + entation, contact J. Breakall at 415-422-8196 or E. Domning at 415 + 422-5936) + file created 4/11/80. + + ***********Notice********** + This computer code material was prepared as an account of work + sponsored by the United States government. Neither the United + States nor the United States Department Of Energy, nor any of + their employees, nor any of their contractors, subcontractors, + or their employees, makes any warranty, express or implied, or + assumes any legal liability or responsibility for the accuracy, + completeness or usefulness of any information, apparatus, product + or process disclosed, or represents that its use would not infringe + privately-owned rights. +---------------------------------------------------------------------- + +The Debian packaging is (C) 2006, Joop Stakenborg and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- nec2c-0.8.orig/debian/docs +++ nec2c-0.8/debian/docs @@ -0,0 +1,2 @@ +NEC2-bug.txt +README --- nec2c-0.8.orig/debian/changelog +++ nec2c-0.8/debian/changelog @@ -0,0 +1,44 @@ +nec2c (0.8-2ubuntu1) oneiric; urgency=low + + * Makefile: Move -lm to end of gcc command, resolving FTBFS. + Patch courtesy of John T. Nogatch. (LP: #770919) + + -- Dave Walker (Daviey) Tue, 06 Sep 2011 20:56:09 +0100 + +nec2c (0.8-2) unstable; urgency=low + + * Retiring - set the package maintainer to Debian QA Group. + + -- Joop Stakenborg Mon, 02 Nov 2009 15:52:25 +0000 + +nec2c (0.8-1) unstable; urgency=low + + * New upstream. + + -- Joop Stakenborg Mon, 24 Nov 2008 12:19:10 +0100 + +nec2c (0.6-4) unstable; urgency=low + + * Another upstream revision of the previous patch. + + -- Joop Stakenborg Thu, 20 Nov 2008 19:15:28 +0100 + +nec2c (0.6-3) unstable; urgency=low + + * Upstream patch to better fix the previous bug. + + -- Joop Stakenborg Wed, 19 Nov 2008 21:22:06 +0100 + +nec2c (0.6-2) unstable; urgency=low + + * Fixed a segfault, thanks Jeffrey Hundstad. Closes: #498676. + Upstream notified. + + -- Joop Stakenborg Tue, 18 Nov 2008 19:53:30 +0100 + +nec2c (0.6-1) unstable; urgency=low + + * Initial release. + + -- Joop Stakenborg Thu, 30 Nov 2006 17:13:03 +0100 + --- nec2c-0.8.orig/debian/control +++ nec2c-0.8/debian/control @@ -0,0 +1,17 @@ +Source: nec2c +Section: hamradio +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian QA Group +Build-Depends: debhelper (>= 5) +Standards-Version: 3.8.0 + +Package: nec2c +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: translation of the NEC2 FORTRAN source code to the C language + The translation was performed mostly "by hand" and a lot of modifications + to the original program were introduced in order to modernize the NEC2 + and to remove as many built-in limitations as possible. The attendant + SOMNEC program was also translated to C and incorporated in nec2c as a + function so that Sommerfeld ground solutions are a part of the program. --- nec2c-0.8.orig/debian/rules +++ nec2c-0.8/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/nec2c.sgml > nec2c.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp *.o nec2c + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/nec2c. + $(MAKE) DESTDIR=$(CURDIR)/debian/nec2c install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- nec2c-0.8.orig/debian/dirs +++ nec2c-0.8/debian/dirs @@ -0,0 +1 @@ +usr/bin --- nec2c-0.8.orig/debian/compat +++ nec2c-0.8/debian/compat @@ -0,0 +1 @@ +5