]>
Commit | Line | Data |
---|---|---|
7f36021f | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename quadprog | |
3 | Summary: Functions to solve Quadratic Programming Problems | |
287661c1 | 4 | Summary(pl.UTF-8): Funkcje do rozwiązywania problemów programowania kwadratowego |
7f36021f | 5 | Name: R-cran-%{modulename} |
7d115c4a | 6 | Version: 1.5r5 |
06e9a401 | 7 | Release: 3 |
b2b28252 | 8 | License: GPL v2+ |
7f36021f | 9 | Group: Applications/Math |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
7d115c4a | 11 | # Source0-md5: 8442f37afd8d0b19b12e77d63e6515ad |
52fe1194 | 12 | BuildRequires: R >= 2.8.1 |
d8491f2b | 13 | BuildRequires: blas-devel |
52fe1194 JR |
14 | BuildRequires: gcc-fortran |
15 | Requires(post,postun): R >= 2.8.1 | |
7f36021f | 16 | Requires(post,postun): perl-base |
17 | Requires(post,postun): textutils | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This package contains routines and documentation for solving quadratic | |
22 | programming problems. | |
23 | ||
7ee87c7c JR |
24 | %description -l pl.UTF-8 |
25 | Pakiet zawiera biblioteki i dokumentację do rozwiązywania problemów | |
7f36021f | 26 | programowania kwadratowego. |
27 | ||
28 | %prep | |
29 | %setup -q -c | |
30 | ||
31 | %build | |
32 | R CMD build %{modulename} | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
de24b920 | 36 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ |
7f36021f | 37 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
43 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
7eacf3e9 | 44 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7f36021f | 45 | |
46 | %postun | |
47 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
48 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
7eacf3e9 | 49 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7f36021f | 50 | fi |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc %{modulename}/{DESCRIPTION,ChangeLog,README} | |
55 | %{_libdir}/R/library/%{modulename} |