This commit is contained in:
Elliott Sales de Andrade 2020-09-30 15:14:37 -04:00
parent 426324388c
commit 5235d802bb
4 changed files with 1094 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/lpSolve_5.6.15.tar.gz

File diff suppressed because it is too large Load Diff

70
R-lpSolve.spec Normal file
View File

@ -0,0 +1,70 @@
%global packname lpSolve
%global packver 5.6.15
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 5.6.15
Release: 1%{?dist}
Summary: Interface to Lp_solve to Solve Linear/Integer Programs
License: LGPLv2
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
# https://github.com/gaborcsardi/lpSolve/pull/5
Patch0001: 0001-Use-R-provided-BLAS-routines.patch
# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests:
# LinkingTo:
# Enhances:
BuildRequires: R-devel
BuildRequires: tex(latex)
%description
Lp_solve is freely available (under LGPL 2) software for solving linear,
integer and mixed integer programs. In this implementation we supply a
"wrapper" function in C and some R functions that solve general
linear/integer problems, assignment problems, and transportation problems.
This version calls lp_solve version 5.5.
%prep
%setup -q -c -n %{packname}
pushd %{packname}
%patch0001 -p1
popd
%build
%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
* Sun Sep 27 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 5.6.15-1
- initial package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (lpSolve_5.6.15.tar.gz) = 68a71654cf405890028f32b6764446a0a82842a529cf060190d14fa2dcb114613bafff44235cbb156cbcfb0a8a9e0982051189aa9d6f65ea1721e09d35d118e1