diff --git a/lmfit-v8.2.tar.gz b/lmfit-v8.2.tar.gz new file mode 100644 index 0000000..9a00f7e Binary files /dev/null and b/lmfit-v8.2.tar.gz differ diff --git a/lmfit.spec b/lmfit.spec new file mode 100644 index 0000000..4294e4f --- /dev/null +++ b/lmfit.spec @@ -0,0 +1,60 @@ +Name: lmfit +Version: 8.2 +Release: 1 +Summary: Levenberg-Marquardt least-squares minimization and curve fitting +License: BSD and CC-BY +URL: https://jugit.fz-juelich.de/mlz/%{name} +Source0: https://jugit.fz-juelich.de/mlz/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz +BuildRequires: cmake gcc-c++ %{_bindir}/pod2man %{_bindir}/pod2html +%description +C/C++ library for Levenberg-Marquardt least-squares minimization and curve +fitting + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +Development files for %{name}. + +%prep +%autosetup -n %{name}-v%{version} -p1 +cp -ra demo _demo +sed -i 's@${destination}/lib@${destination}/%{_lib}@' lib/CMakeLists.txt CMakeLists.txt +sed -i 's@${CMAKE_INSTALL_PREFIX}/man@%{_mandir}@' man/CMakeLists.txt + +%build +mkdir build && pushd build +%{cmake} .. +make %{?_smp_mflags} +popd + +%install +pushd build +make install DESTDIR=%{buildroot} +popd +rm -rf %{buildroot}%{_mandir}/html %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/*.la +rm -rf demo +mv -f _demo demo + +%check +pushd build +make %{?_smp_mflags} test +popd + +%files +%doc COPYING CHANGELOG +%{_libdir}/lib%{name}.so.8 +%{_libdir}/lib%{name}.so.8.2 + +%files devel +%doc demo +%doc %{_datadir}/doc/lmfit/ +%{_includedir}/* +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/* +%{_mandir}/man3/* +%{_mandir}/man7/* + +%changelog +* Mon Jul 27 2020 zhanghua - 8.2-1 +- package init diff --git a/lmfit.yaml b/lmfit.yaml new file mode 100644 index 0000000..38a6f8a --- /dev/null +++ b/lmfit.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://jugit.fz-juelich.de/mlz/lmfit.git +tag_pattern: "^v" +seperator: "."