Fedora Account System
Red Hat Associate
Red Hat Customer
Spec Name or Url: http://www.cora.nwra.com/~orion/fedora/ftnchek.spec SRPM Name or Url: http://www.cora.nwra.com/~orion/fedora/ftnchek-3.3.1-1.src.rpm 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.
1. The RPM CFLAGS are not set. Here is a sed one-liner that solves that. You may prefer a patch, do what you prefer: sed -i -e 's/CFLAGS="-DUNIX.*"//' configure 2. you don't install the emacs stuff. Not a big deal. If you want to package it, you may want to have them in a subpackage ftncheck-emacs. Here is how I do to have the emacs files in the buildroot: mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp %makeinstall datadir=$RPM_BUILD_ROOT%{_datadir}/ftnchek \ lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp 3. I prefer something like %{_mandir}/man1/dcl2inc.1* instead of %{_mandir}/man1/dcl2inc.1.gz such that it works if man pages are no gzipped, or are bzip2ed and so on. It is my personal taste 4. you should add FAQ and PATCHES in %doc Please fix 1. and 4., and do whatever you like with 2. and 3.
Thanks for the review! (In reply to comment #1) > 1. The RPM CFLAGS are not set. Here is a sed one-liner that solves that. You may > prefer a patch, do what you prefer: > > sed -i -e 's/CFLAGS="-DUNIX.*"//' configure > I also did: export CFLAGS="$RPM_OPT_FLAGS -DUNIX" as it appears that the UNIX flag is still required. > 2. you don't install the emacs stuff. Not a big deal. If you want to package it, > you may want to have them in a subpackage ftncheck-emacs. Here is how I do to > have the emacs files in the buildroot: > > mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp > %makeinstall datadir=$RPM_BUILD_ROOT%{_datadir}/ftnchek \ > lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp Made an emacs sub-package. I also added a BR on emacs so the .elc file would be built. > 3. I prefer something like > %{_mandir}/man1/dcl2inc.1* > instead of > %{_mandir}/man1/dcl2inc.1.gz > such that it works if man pages are no gzipped, or are bzip2ed and so on. It is > my personal taste Good idea > 4. you should add FAQ and PATCHES in %doc done. New version: http://www.cora.nwra.com/~orion/fedora/ftnchek.spec http://www.cora.nwra.com/~orion/fedora/ftnchek-3.3.1-2.src.rpm
- one rpmlint warning that could be ignored W: ftnchek-emacs no-documentation - named according to the guidelines - open-source MIT licence, included - follow packaging guidelines - match upstream source - builds in fc5 mock Needswork + should own %{_datadir}/ftnchek/ Nitpick - It would be more consistent to have a dot (.) at the end of the description for the emacs subpackage. That could be fixed later, though.
(In reply to comment #3) > - one rpmlint warning that could be ignored > > W: ftnchek-emacs no-documentation > Ignored. > + should own %{_datadir}/ftnchek/ Oops, fixed. > Nitpick > > - It would be more consistent to have a dot (.) at the end of the description > for the emacs subpackage. That could be fixed later, though. Fixed. New version: http://www.cora.nwra.com/~orion/fedora/ftnchek.spec http://www.cora.nwra.com/~orion/fedora/ftnchek-3.3.1-3.src.rpm
Everything is in order, so APPROVED
Checked in. Added to owners.list Built on devel.