]>
Commit | Line | Data |
---|---|---|
25aa6223 | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename polynom | |
3 | Summary: A collection of functions to implement a class for univariate polynomial manipulations | |
0e04b1c8 | 4 | Summary(pl.UTF-8): Kolekcja funkcji do implementacji klas do operacji na wielomianach jednowymiarowych |
25aa6223 | 5 | Name: R-cran-%{modulename} |
9f75cae4 | 6 | Version: 1.3r7 |
88bf982c | 7 | Release: 2 |
25aa6223 | 8 | License: GPL |
9 | Group: Applications/Math | |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
9f75cae4 | 11 | # Source0-md5: 51f74356b6a9a5b00df2f12d0c6e9d85 |
d7db7804 JR |
12 | BuildRequires: R >= 2.8.1 |
13 | Requires(post,postun): R >= 2.8.1 | |
25aa6223 | 14 | Requires(post,postun): perl-base |
15 | Requires(post,postun): textutils | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | A collection of functions to implement a class for univariate | |
20 | polynomial manipulations. | |
21 | ||
0f08c4e8 | 22 | %description -l pl.UTF-8 |
537c6e71 JB |
23 | Kolekcja funkcji do implementacji klas do operacji na wielomianach |
24 | jednowymiarowych. | |
25aa6223 | 25 | |
26 | %prep | |
27 | %setup -q -c | |
28 | ||
29 | %build | |
30 | R CMD build %{modulename} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
88bf982c | 34 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ |
25aa6223 | 35 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %post | |
41 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
a80180ba | 42 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
25aa6223 | 43 | |
44 | %postun | |
45 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
46 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
a80180ba | 47 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
25aa6223 | 48 | fi |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
88bf982c | 52 | %doc %{modulename}/{DESCRIPTION,README,ChangeLog} |
25aa6223 | 53 | %{_libdir}/R/library/%{modulename} |