rpms/ftnchek/devel ftnchek-3.3.1-datadir.patch, NONE, 1.1 ftnchek.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orion Poplawski (orion) fedora-extras-commits at redhat.com
Wed Mar 8 22:20:00 UTC 2006


Author: orion

Update of /cvs/extras/rpms/ftnchek/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28952/devel

Modified Files:
	.cvsignore sources 
Added Files:
	ftnchek-3.3.1-datadir.patch ftnchek.spec 
Log Message:
auto-import ftnchek-3.3.1-3 on branch devel from ftnchek-3.3.1-3.src.rpm

ftnchek-3.3.1-datadir.patch:

--- NEW FILE ftnchek-3.3.1-datadir.patch ---
--- ftnchek-3.3.1/dcl2inc.in.orig	1999-11-02 17:23:36.000000000 -0700
+++ ftnchek-3.3.1/dcl2inc.in	2006-03-07 14:45:33.000000000 -0700
@@ -24,5 +24,5 @@
 # The following lines are edited by configure when it builds dcl2inc.
 prefix=@prefix@
 exec_prefix=@exec_prefix@  
-libdir=@libdir@/ftnchek 
-exec @AWK@ -f ${libdir}/dcl2inc.awk "$@"
+datadir=@datadir@/ftnchek 
+exec @AWK@ -f ${datadir}/dcl2inc.awk "$@"
--- ftnchek-3.3.1/Makefile.in.orig	2006-03-07 14:45:46.000000000 -0700
+++ ftnchek-3.3.1/Makefile.in	2006-03-07 14:47:00.000000000 -0700
@@ -99,7 +99,7 @@
 prefix		= @prefix@
 exec_prefix	= @exec_prefix@
 bindir		= @bindir@
-datadir		= @datadir@
+datadir		= @datadir@/ftnchek
 mandir		= @mandir@
 manext		= .1
 sgimansubdir	= @sgimansubdir@
@@ -496,9 +496,9 @@
 	$(CP) ftnchek$(EXE) $(bindir)
 	-$(STRIP) $(bindir)/ftnchek$(EXE)
 	$(CHMOD) 755 $(bindir)/ftnchek$(EXE)
-	-$(MKDIR) -p $(libdir)
-	$(CP) dcl2inc.awk $(libdir)/dcl2inc.awk
-	$(CHMOD) 644 $(libdir)/dcl2inc.awk
+	-$(MKDIR) -p $(datadir)
+	$(CP) dcl2inc.awk $(datadir)/dcl2inc.awk
+	$(CHMOD) 644 $(datadir)/dcl2inc.awk
 	$(CP) dcl2inc$(CMD) $(bindir)/dcl2inc$(CMD)
 	$(CHMOD) 755 $(bindir)/dcl2inc$(CMD)
 	-$(RM) $(bindir)/fcl2vcg
@@ -580,14 +580,14 @@
 uninstall:
 	-$(RM) $(bindir)/dcl2inc$(CMD)
 	-$(RM) $(bindir)/ftnchek$(CMD)
-	-$(RM) $(libdir)/dcl2inc.awk
+	-$(RM) $(datadir)/dcl2inc.awk
 	-$(RM) $(mandir)/cat1/dcl2inc$(manext)
 	-$(RM) $(mandir)/cat1/ftnchek$(manext)
 	-$(RM) $(mandir)/dcl2inc.z $(mandir)/ftnchek.z # SGI
 	-$(RM) $(mandir)/man1/dcl2inc$(manext)
 	-$(RM) $(mandir)/man1/ftnchek$(manext)
 	-$(RM) $(lispdir)/ftnchek.el
-	-$(RMDIR) $(libdir)
+	-$(RMDIR) $(datadir)
 
 # WARNING: do NOT execute this target, unless you have nroff/troff or groff
 # to recreate the formatted documentation files.


--- NEW FILE ftnchek.spec ---
Name:           ftnchek
Version:        3.3.1
Release:        3
Summary:        Static analyzer for Fortran 77 programs

Group:          Development/Tools
License:        MIT
URL:            http://www.dsm.fordham.edu/~ftnchek/
Source0:        http://www.dsm.fordham.edu/~ftnchek/download/ftnchek-3.3.1.tar.gz
Patch0:         ftnchek-3.3.1-datadir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  groff, emacs

%description
ftnchek is a static analyzer for Fortran 77 programs. It is designed to
detect certain errors in a Fortran program that a compiler usually does
not. ftnchek is not primarily intended to detect syntax errors. Its
purpose is to assist the user in finding semantic errors. Semantic
errors are legal in the Fortran language but are wasteful or may cause
incorrect operation. For example, variables which are never used may
indicate some omission in the program; uninitialized variables contain
garbage which may cause incorrect results to be calculated; and variables
which are not declared may not have the intended type. ftnchek is
intended to assist users in the debugging of their Fortran program. It is
not intended to catch all syntax errors. This is the function of the
compiler. Prior to using ftnchek, the user should verify that the program
compiles correctly.


%package        emacs
Summary:        Emacs support for ftnchek
Group:          Development/Tools
Requires:       %{name} = %{version}-%{release}
Requires:       %{_datadir}/emacs/site-lisp

%description    emacs
%{summary}.


%prep
%setup -q
%patch -p1 -b .datadir
#Stop configure from overriding CFLAGS
sed -i -e 's/CFLAGS="-DUNIX.*"//' configure


%build
export CFLAGS="$RPM_OPT_FLAGS -DUNIX"
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
%makeinstall datadir=$RPM_BUILD_ROOT%{_datadir}/ftnchek \
             lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE README FAQ PATCHES
%{_bindir}/dcl2inc
%{_bindir}/ftnchek
%{_datadir}/ftnchek/
%{_mandir}/man1/dcl2inc.1*
%{_mandir}/man1/ftnchek.1*

%files emacs
%{_datadir}/emacs/site-lisp/ftnchek.el
%{_datadir}/emacs/site-lisp/ftnchek.elc


%changelog
* Wed Mar 08 2006 Orion Poplawki <orion at cora.nwra.com> 3.3.1-3
- Own %{_datadir}/ftnchek/
- Add period to end of emacs package description

* Wed Mar 08 2006 Orion Poplawki <orion at cora.nwra.com> 3.3.1-2
- Add emacs sub-package for emacs support
- Fix up CFLAGS to use RPM CFLAGS
- Add FAQ and PATCHES to %doc

* Tue Mar 07 2006 Orion Poplawki <orion at cora.nwra.com> 3.3.1-1
- Initial Fedora Extras submission


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ftnchek/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	8 Mar 2006 22:19:06 -0000	1.1
+++ .cvsignore	8 Mar 2006 22:20:00 -0000	1.2
@@ -0,0 +1 @@
+ftnchek-3.3.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ftnchek/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Mar 2006 22:19:06 -0000	1.1
+++ sources	8 Mar 2006 22:20:00 -0000	1.2
@@ -0,0 +1 @@
+e1f4ce51ea1a85e7b080ab5d23013f97  ftnchek-3.3.1.tar.gz




More information about the fedora-extras-commits mailing list