]> git.pld-linux.org Git - packages/R-cran-princurve.git/blob - R-cran-princurve.spec
- pl fix
[packages/R-cran-princurve.git] / R-cran-princurve.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      princurve
3 Summary:        Fits a Principal Curve in Arbitrary Dimension
4 Summary(pl):    Dopasowywanie krzywej g³ównej w dowolnym wymiarze
5 Name:           R-cran-%{modulename}
6 Version:        1.1r7
7 Release:        1
8 License:        GPL version 2 or newer
9 Group:          Applications/Math
10 Source0:        ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5:  705919e7815e9fc00945030035ab96a5
12 BuildRequires:  R-base >= 2.0.0
13 Requires(post,postun):  R-base >= 2.0.0
14 Requires(post,postun):  perl-base
15 Requires(post,postun):  textutils
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Fits a principal curve to a data matrix in arbitrary dimensions.
20
21 %description -l pl
22 Dopasowywanie krzywej g³ównej w dowolnym wymiarze.
23
24 %prep
25 %setup -q -c
26
27 %build
28 R CMD build %{modulename}
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %post
38 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
39  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
40
41 %postun
42 if [ -f %{_libdir}/R/bin/Rcmd ];then
43         (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
44         R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %doc %{modulename}/{DESCRIPTION,README,ChangeLog}
50 %{_libdir}/R/library/%{modulename}
This page took 0.034033 seconds and 3 git commands to generate.