|
Sergio Pascual |
649da9c |
# We keep track manually of the library version
|
|
Sergio Pascual |
649da9c |
%global liblongver 0.0.0
|
|
Sergio Pascual |
649da9c |
%global libshortver 0
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
Name: cmpfit
|
|
Sergio Pascual |
649da9c |
Version: 1.2
|
|
|
9f6483f |
Release: 10%{?dist}
|
|
Sergio Pascual |
649da9c |
Summary: A MINPACK-1 Least Squares Fitting Library in C
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
License: BSD
|
|
Sergio Pascual |
649da9c |
URL: http://cow.physics.wisc.edu/~craigm/idl/cmpfit.html
|
|
Sergio Pascual |
649da9c |
Source0: http://cow.physics.wisc.edu/~craigm/idl/down/%{name}-%{version}.zip
|
|
Sergio Pascual |
649da9c |
|
|
|
83109f7 |
# patches generated using the updated sources at fityk project
|
|
|
83109f7 |
# original author emailed updated package to fityk developer (Marcin Wojdyr)
|
|
|
83109f7 |
# sources can be seen here - https://github.com/wojdyr/fityk/tree/master/fityk/cmpfit
|
|
|
83109f7 |
Patch0: header_file.patch
|
|
|
83109f7 |
Patch1: source_file.patch
|
|
|
83109f7 |
|
|
Sergio Pascual |
649da9c |
%description
|
|
Sergio Pascual |
649da9c |
CMPFIT uses the Levenberg-Marquardt technique to solve the least-squares
|
|
Sergio Pascual |
649da9c |
problem. In its typical use, CMPFIT will be used to fit a user-supplied
|
|
Sergio Pascual |
649da9c |
function (the "model") to user-supplied data points (the "data") by adjusting
|
|
Sergio Pascual |
649da9c |
a set of parameters. CMPFIT is based upon MINPACK-1 (LMDIF.F) by More' and
|
|
Sergio Pascual |
649da9c |
collaborators.
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%package devel
|
|
Sergio Pascual |
649da9c |
Summary: Headers for developing programs that will use %{name}
|
|
Sergio Pascual |
649da9c |
Group: Development/Libraries
|
|
Sergio Pascual |
649da9c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%description devel
|
|
Sergio Pascual |
649da9c |
These are the header files and libraries needed to develop a %{name}
|
|
Sergio Pascual |
649da9c |
application.
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%prep
|
|
|
83109f7 |
%setup -q
|
|
|
83109f7 |
%patch0
|
|
|
83109f7 |
%patch1
|
|
|
6e706ac |
|
|
Sergio Pascual |
649da9c |
%build
|
|
Sergio Pascual |
649da9c |
# Manual build, makefile only does static library
|
|
Sergio Pascual |
649da9c |
gcc %{optflags} -fpic -c -o mpfit.o mpfit.c
|
|
Sergio Pascual |
649da9c |
gcc -shared -Wl,-soname,libmpfit.so.%{libshortver} -o libmpfit.so.%{liblongver} mpfit.o -lm
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%install
|
|
Sergio Pascual |
649da9c |
mkdir -p %{buildroot}/%{_includedir}
|
|
Sergio Pascual |
649da9c |
mkdir -p %{buildroot}/%{_libdir}
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
cp mpfit.h %{buildroot}/%{_includedir}
|
|
Sergio Pascual |
649da9c |
cp libmpfit.so.%{liblongver} %{buildroot}/%{_libdir}
|
|
Sergio Pascual |
649da9c |
pushd %{buildroot}/%{_libdir}
|
|
Sergio Pascual |
649da9c |
ln -s libmpfit.so.%{liblongver} libmpfit.so.%{libshortver}
|
|
Sergio Pascual |
649da9c |
ln -s libmpfit.so.%{liblongver} libmpfit.so
|
|
Sergio Pascual |
649da9c |
popd
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%post -p /sbin/ldconfig
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%postun -p /sbin/ldconfig
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%files
|
|
Sergio Pascual |
649da9c |
%doc README DISCLAIMER
|
|
Sergio Pascual |
649da9c |
%{_libdir}/libmpfit.so.%{liblongver}
|
|
Sergio Pascual |
649da9c |
%{_libdir}/libmpfit.so.%{libshortver}
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%files devel
|
|
Sergio Pascual |
649da9c |
%{_includedir}/mpfit.h
|
|
Sergio Pascual |
649da9c |
%{_libdir}/libmpfit.so
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
%changelog
|
|
|
9f6483f |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
|
|
|
9f6483f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
9f6483f |
|
|
|
790473d |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
|
|
|
790473d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
790473d |
|
|
|
9494afc |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-8
|
|
|
9494afc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
9494afc |
|
|
|
c9b3dbd |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
|
|
|
c9b3dbd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c9b3dbd |
|
|
|
7dd8630 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
|
|
7dd8630 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7dd8630 |
|
|
|
c1c9e46 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
|
|
|
c1c9e46 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
c1c9e46 |
|
|
|
cf202bf |
* Fri Jun 06 2014 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.2-5
|
|
|
cf202bf |
- Reverted patch
|
|
|
cf202bf |
|
|
|
6e706ac |
* Thu Jun 05 2014 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.2-4
|
|
|
6e706ac |
- Correct patch added
|
|
|
6e706ac |
|
|
|
83109f7 |
* Thu Jun 05 2014 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 1.2-3
|
|
|
83109f7 |
- Updating package to version available from fityk github repo
|
|
|
83109f7 |
- update obtained via email from original author of mpfit by fityk devel
|
|
|
83109f7 |
- Added patch from Marcin Wojdyr (fityk github repo)
|
|
|
83109f7 |
|
|
Sergio Pascual |
649da9c |
* Fri Mar 07 2014 Sergio Pascual <sergiopr at fedoraproject.org> - 1.2-2
|
|
Sergio Pascual |
649da9c |
- Add license in DISCLAIMER
|
|
Sergio Pascual |
649da9c |
- Update requires in cmpfit-devel
|
|
Sergio Pascual |
649da9c |
|
|
Sergio Pascual |
649da9c |
* Fri Aug 16 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 1.2-1
|
|
Sergio Pascual |
649da9c |
- Initial spec
|