[nec2c] Update to latest upstream release. Add man page for nec2c.

Richard Shaw hobbes1069 at fedoraproject.org
Sun Jan 20 01:19:25 UTC 2013


commit d10146f9a447f3607dcc774c9d4fe60d17328767
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date:   Sat Jan 19 19:19:20 2013 -0600

    Update to latest upstream release.
    Add man page for nec2c.

 .gitignore           |    1 +
 nec2c-Makefile.patch |    6 +++---
 nec2c.spec           |   32 +++++++++++++++++---------------
 sources              |    2 +-
 4 files changed, 22 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 550b989..c36dc00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 nec2c-0.8.tar.gz
+/nec2c-0.9.tar.bz2
diff --git a/nec2c-Makefile.patch b/nec2c-Makefile.patch
index de548f5..3394438 100644
--- a/nec2c-Makefile.patch
+++ b/nec2c-Makefile.patch
@@ -1,10 +1,10 @@
---- Makefile	2008-03-18 07:56:11.000000000 -0800
-+++ Makefile.new	2008-07-01 11:39:24.000000000 -0800
+--- Makefile.orig	2012-05-23 05:54:17.000000000 -0500
++++ Makefile	2013-01-03 11:10:33.748349724 -0600
 @@ -3,7 +3,6 @@
  SHELL = /bin/sh
  PROJECT = nec2c
  BINDIR  = /usr/local/bin
--CC = gcc -Wall -O2 -march=native
+-CC = gcc -Wall -O2 -march=native -D_FORTIFY_CODE=2
  
  objects = calculations.o fields.o geometry.o ground.o input.o \
  	  main.o matrix.o misc.o network.o radiation.o somnec.o
diff --git a/nec2c.spec b/nec2c.spec
index 4e8190a..7a0e927 100644
--- a/nec2c.spec
+++ b/nec2c.spec
@@ -1,17 +1,15 @@
 Name:           nec2c
-Version:        0.8
-Release:        6%{?dist}
+Version:        0.9
+Release:        1%{?dist}
 Summary:        Translation of NEC2 antenna modeling tool from FORTRAN to C
 
 Group:          Applications/Communications
 License:        Public Domain
 URL:            http://5b4az.chronos.org.uk/pages/nec2.html
-Source0:        http://5b4az.chronos.org.uk/pkg/nec2/nec2c/%{name}-%{version}.tar.gz
+Source0:        http://5b4az.chronos.org.uk/pkg/nec2/nec2c/%{name}-%{version}.tar.bz2
 Patch0:         nec2c-Makefile.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-#BuildRequires:  
-#Requires:       
+BuildRequires:  help2man
 
 %description
 nec2c is a translation of the Numerical Electromagnetics Code (NEC2)
@@ -21,34 +19,38 @@ Operationally nec2c differs from NEC2 by being a command line
 non-interactive program, taking as arguments the input file name
 and optionally the output file name.
 
+
 %prep
 %setup -q -n %{name}
 %patch0 -p0
 
+
 %build
 make CFLAGS="%{optflags}" %{?_smp_mflags}
 
 #fix permissions
 chmod 0644 README network.c
 
+
 %install
-rm -rf $RPM_BUILD_ROOT
 #skip make install and do manual install, it's just one file
-install -D -m 0755 nec2c $RPM_BUILD_ROOT%{_bindir}/nec2c
+install -D -m 0755 nec2c %{buildroot}%{_bindir}/nec2c
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+mkdir -p %{buildroot}%{_mandir}/man1
+help2man -o %{buildroot}%{_mandir}/man1/%{name}.1 -h -h -v -v --no-discard-stderr -N %{buildroot}%{_bindir}/%{name}
 
 
 %files
-%defattr(-,root,root,-)
-%doc AUTHORS README NEC2-bug.txt
-%{_bindir}/*
-
+%doc AUTHORS COPYING README NEC2-bug.txt
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1.*
 
 
 %changelog
+* Thu Jan 19 2013 Richard Shaw <hobbes1069 at gmail.com> - 0.9-1
+- Update to latest upstream release.
+- Add man page for nec2c.
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index f301635..60eccb0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e7b7d5cca7fe4b04b037ee7f59dae9ef  nec2c-0.8.tar.gz
+88f0614b58e7d9b5b7cd9ab752d91bba  nec2c-0.9.tar.bz2


More information about the scm-commits mailing list