Bug 772499

Summary: Review Request: python-anfft - ANFFT is an FFT package for Python, based on FFTW
Product: [Fedora] Fedora Reporter: Thibault North <thibault.north>
Component: Package ReviewAssignee: Orcan Ogetbil <oget.fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: notting, oget.fedora, package-review
Target Milestone: ---Flags: oget.fedora: fedora-review+
gwync: fedora-cvs+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-anfft-0.1-3.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-12 22:53:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Thibault North 2012-01-08 22:15:12 UTC
Spec URL: http://tnorth.fedorapeople.org/python-anfft.spec
SRPM URL: http://tnorth.fedorapeople.org/python-anfft-0.1-1.fc15.src.rpm
Description: 
ANFFT is intended to be used in situations where large numbers
of expensive FFTs must be performed, and for which the speed 
of the built-in NumPy or SciPy functions has been found insufficient.

Comment 1 Orcan Ogetbil 2012-01-24 00:54:17 UTC
I reviewed this package and have some remarks about minor issues:

* rpmlint says
   python-anfft.src: W: spelling-error %description -l en_US Accummulated -> Accumulated, Accumulate, Acculturated
   python-anfft.src: W: spelling-error %description -l en_US dotfile -> dot file, dot-file, docile
Please fix the first one. I don't know what a 'dotfile' is. If you do please fix this if necessary.

! The license can be marked as GPLv3+ since the source files have the "or later" clause but this is not a blocker since there is no GPLv4 for the time being.

- During the build, I get a warning during %check:
    + python test.py
    /builddir/build/BUILD/anfft-0.1/anfft/_fftw.py:260: UserWarning: Can't load wisdom from "/builddir/.anfft"
      warn("Can't load wisdom from \"%s\"" % basedir)
But looking through the source code, this warning seems unimportant.

*   BuildRequires: numpy fftw-devel python-devel
    BuildRequires: python-devel
is too much. Instead
    BuildRequires: numpy fftw python2
is sufficient. Note that python-devel was listed twice. Also note that we specify the python version.

! rm -rf %{buildroot}
is not required in %install. Does no harm though.

! You can probably use
   libdir=build/lib
in %check (build/lib is what I have on x86_64 too).

Comment 2 Thibault North 2012-01-31 01:58:26 UTC
Thanks for these remarks. Here is a corrected version:
Spec URL: http://tnorth.fedorapeople.org/python-anfft.spec
SRPM URL: http://tnorth.fedorapeople.org/python-anfft-0.1-2.fc15.src.rpm

>- During the build, I get a warning during %check:
>    + python test.py
>    /builddir/build/BUILD/anfft-0.1/anfft/_fftw.py:260: UserWarning: Can't load
>wisdom from "/builddir/.anfft"
>      warn("Can't load wisdom from \"%s\"" % basedir)
>But looking through the source code, this warning seems unimportant.

Indeed, that is fftw trying to read a file created at the first run only, specifying which method runs faster on the machine.

Comment 3 Orcan Ogetbil 2012-02-01 01:17:05 UTC
Hi Thibault, thank you for the update.

The Requires list is fine now, but you accidentally removed BuildRequires too. As far as I can tell, Requires and BuildRequires should be the same. Moreover they can be further simplified (sorry I missed this in the first pass). "fftw" package itself is not required, but its dependencies "fftw-libs" "fftw-libs-threads" are required. Therefore we can do

   BuildRequires:  numpy fftw-libs fftw-libs-threads python2
   Requires:       numpy fftw-libs fftw-libs-threads python2

Since this is an easy fix, I am approving the package. Please consider the above before you import.


-----------------------------------------------
This package (python-anfft) is APPROVED by oget
-----------------------------------------------

Comment 4 Thibault North 2012-02-03 02:56:50 UTC
Hi Orcan, 

Thanks for your review. I haven't had much time these days, and indeed I accidentally removed the buildrequires!

I will import an updated version, corresponding to the spec:
Spec URL: http://tnorth.fedorapeople.org/python-anfft.spec

Comment 5 Gwyn Ciesla 2012-02-03 13:00:57 UTC
Please include an SCM request: 

https://fedoraproject.org/wiki/Package_SCM_admin_requests

Comment 6 Thibault North 2012-02-03 13:12:22 UTC
Definitely not my day :(
Sorry for that.

New Package SCM Request
=======================
Package Name: python-anfft
Short Description: ANFFT is an FFT package for Python, based on FFTW
Owners: tnorth
Branches: f15 f16

Comment 7 Gwyn Ciesla 2012-02-03 14:23:58 UTC
Git done (by process-git-requests).

Comment 8 Fedora Update System 2012-02-04 00:55:35 UTC
python-anfft-0.1-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/python-anfft-0.1-3.fc15

Comment 9 Fedora Update System 2012-02-04 00:55:43 UTC
python-anfft-0.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-anfft-0.1-3.fc16

Comment 10 Fedora Update System 2012-02-04 23:50:50 UTC
python-anfft-0.1-3.fc16 has been pushed to the Fedora 16 testing repository.

Comment 11 Fedora Update System 2012-02-12 22:53:41 UTC
python-anfft-0.1-3.fc16 has been pushed to the Fedora 16 stable repository.

Comment 12 Fedora Update System 2012-02-12 22:54:32 UTC
python-anfft-0.1-3.fc15 has been pushed to the Fedora 15 stable repository.