import #1882999
This commit is contained in:
parent
426324388c
commit
5235d802bb
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/lpSolve_5.6.15.tar.gz
|
1022
0001-Use-R-provided-BLAS-routines.patch
Normal file
1022
0001-Use-R-provided-BLAS-routines.patch
Normal file
File diff suppressed because it is too large
Load Diff
70
R-lpSolve.spec
Normal file
70
R-lpSolve.spec
Normal 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
|
Loading…
Reference in New Issue
Block a user