From d160e961ececc02aa8522f71f85343d90dcec821 Mon Sep 17 00:00:00 2001 From: undefine Date: Tue, 16 Nov 2004 22:50:41 +0000 Subject: [PATCH 1/1] - initital Changed files: R-cran-fracdiff.spec -> 1.1 --- R-cran-fracdiff.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 R-cran-fracdiff.spec diff --git a/R-cran-fracdiff.spec b/R-cran-fracdiff.spec new file mode 100644 index 0000000..15b9b43 --- /dev/null +++ b/R-cran-fracdiff.spec @@ -0,0 +1,49 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename fracdiff +Summary: Fractionally differenced ARIMA (p,d,q) models +Summary(pl): Frakcyjnie ró¿ni±ce modele ARIMA (p,d,q) +Name: R-cran-%{modulename} +Version: 1.1r1 +Release: 1 +License: GPL version 2 or later +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: e1f624b063789f21c74d85ebaeda60fa +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 +Maximum likelihood estimation of the parameters of a fractionally +differenced ARIMA(p,d,q) model (Haslett and Raftery, Appl.Statistics, +1989). + +%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,README,ChangeLog} +%{_libdir}/R/library/%{modulename} -- 2.44.0