]> git.pld-linux.org Git - packages/R-cran-oz.git/blame - R-cran-oz.spec
- tabs in preamble
[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}
6Version: 1.0r10
3811a7d4 7Release: 2
2797d2e4 8License: GPL
9Group: Applications/Math
10Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11# Source0-md5: 6a5a128dd37ba36a59246e00ece159d5
3811a7d4
JR
12BuildRequires: R-base >= 2.4.0
13Requires(post,postun): R-base >= 2.4.0
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
32R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
33
34%clean
35rm -rf $RPM_BUILD_ROOT
36
37%post
38(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
3811a7d4 39 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
2797d2e4 40
41%postun
42if [ -f %{_libdir}/R/bin/Rcmd ];then
43 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
3811a7d4 44 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
2797d2e4 45fi
46
47%files
48%defattr(644,root,root,755)
49%doc %{modulename}/{DESCRIPTION,ChangeLog,README}
50%{_libdir}/R/library/%{modulename}
This page took 0.066719 seconds and 4 git commands to generate.