91 lines
3.0 KiB
RPMSpec
91 lines
3.0 KiB
RPMSpec
|
Name: harminv
|
||
|
Version: 1.3.1
|
||
|
Release: 1mamba
|
||
|
Summary: A free program (and accompanying library) to solve the problem of harmonic inversion
|
||
|
Group: Applications/Scientific
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://ab-initio.mit.edu/wiki/index.php/Harminv
|
||
|
Source: http://ab-initio.mit.edu/harminv/harminv-%{version}.tar.gz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: gcc-fortran
|
||
|
BuildRequires: glibc-devel
|
||
|
%ifarch %{ix86}
|
||
|
BuildRequires: libatlas-3dnow-devel
|
||
|
%endif
|
||
|
BuildRequires: libblas-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libquadmath-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Harminv is a free program (and accompanying library) to solve the problem of harmonic inversion — given a discrete-time, finite-length signal that consists of a sum of finitely-many sinusoids (possibly exponentially decaying) in a given bandwidth, it determines the frequencies, decay constants, amplitudes, and phases of those sinusoids.
|
||
|
It can, in principle, provide much better accuracy than straightforwardly extracting FFT peaks, essentially because it assumes a specific form for the signal. (Fourier transforms, in contrast, attempt to represent any data as a sum of sinusoidal components, and are thus limited by the uncertainty principle.) It is also often more robust than directly least-squares fitting the data (which can have problematic convergence), since it re-expresses the problem in terms of simply finding the eigenvalues of a small matrix.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: Shared libraries for %{name}
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
This package contains shared libraries for %{name}.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
## note: you can add this requirement if .pc files are provided by this package
|
||
|
#Requires: pkg-config
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--enable-shared
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/harminv
|
||
|
%{_mandir}/man1/harminv.1.gz
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libharminv.so.*
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/harminv.h
|
||
|
%{_libdir}/libharminv.a
|
||
|
%{_libdir}/libharminv.la
|
||
|
%{_libdir}/libharminv.so
|
||
|
%{_libdir}/pkgconfig/harminv.pc
|
||
|
%doc ChangeLog NEWS README
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Sun Nov 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
|
||
|
- package created by silvan using the webbuild interface
|