]> git.pld-linux.org Git - packages/R-cran-oz.git/blame - R-cran-oz.spec
- fixed install
[packages/R-cran-oz.git] / R-cran-oz.spec
CommitLineData
2797d2e4 1%define fversion %(echo %{version} |tr r -)
2%define modulename oz
3Summary: Plot the Australian coastline and states
813c60c0 4Summary(pl.UTF-8): Rysowanie australijskiej linii brzegowej i stanów
2797d2e4 5Name: R-cran-%{modulename}
1969c163 6Version: 1.0r19
b220f3dd 7Release: 2
2797d2e4 8License: GPL
9Group: Applications/Math
10Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
1969c163 11# Source0-md5: 9a05f3152e456412d0cc649309f52ff6
6a6a3432
JR
12BuildRequires: R >= 2.8.1
13Requires(post,postun): R >= 2.8.1
2797d2e4 14Requires(post,postun): perl-base
15Requires(post,postun): textutils
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Plot the Australian coastline and states.
20
de39fb6f
JR
21%description -l pl.UTF-8
22Rysowanie australijskiej linii brzegowej i stanów.
2797d2e4 23
24%prep
25%setup -q -c
26
27%build
28R CMD build %{modulename}
29
30%install
31rm -rf $RPM_BUILD_ROOT
b220f3dd 32install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
2797d2e4 33R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
34
35%clean
36rm -rf $RPM_BUILD_ROOT
37
38%post
39(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
3811a7d4 40 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
2797d2e4 41
42%postun
43if [ -f %{_libdir}/R/bin/Rcmd ];then
44 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
3811a7d4 45 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
2797d2e4 46fi
47
48%files
49%defattr(644,root,root,755)
50%doc %{modulename}/{DESCRIPTION,ChangeLog,README}
51%{_libdir}/R/library/%{modulename}
This page took 0.08198 seconds and 5 git commands to generate.