]> git.pld-linux.org Git - packages/R-cran-oz.git/commitdiff
- initital
authorundefine <undefine@pld-linux.org>
Tue, 16 Nov 2004 23:06:55 +0000 (23:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    R-cran-oz.spec -> 1.1

R-cran-oz.spec [new file with mode: 0644]

diff --git a/R-cran-oz.spec b/R-cran-oz.spec
new file mode 100644 (file)
index 0000000..2a6a0b1
--- /dev/null
@@ -0,0 +1,50 @@
+%define                fversion        %(echo %{version} |tr r -)
+%define                modulename      oz
+Summary:       Plot the Australian coastline and states
+Summary(pl):   Rysuje Australijsk± liniê brzegow± oraz stany
+Name:          R-cran-%{modulename}
+Version:       1.0r10
+Release:       0.1
+License:       GPL
+Group:         Applications/Math
+Source0:       ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: 6a5a128dd37ba36a59246e00ece159d5
+BuildRequires: R-base >= 2.0.0
+Requires(post,postun): R-base >= 2.0.0
+Requires(post,postun): perl-base
+Requires(post,postun): textutils
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Plot the Australian coastline and states.
+
+%description -l pl
+Rysuje Australijsk± liniê brzegow± oraz stany.
+
+%prep
+%setup -q -c
+
+%build
+R CMD build %{modulename}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+ R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+
+%postun
+if [ -f %{_libdir}/R/bin/Rcmd ];then
+       (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+       R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/{DESCRIPTION,ChangeLog,README}
+%{_libdir}/R/library/%{modulename}
This page took 0.702959 seconds and 4 git commands to generate.