LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File R-SII.spec of Package R-SII (Project devel:languages:R:CRAN-packages)

%global packname  SII
%global rlibdir  %{_datadir}/R/library


Name:             R-%{packname}
Version:          1.0.3
Release:          1%{?dist}
Summary:          Calculate ANSI S3.5-1997 Speech Intelligibility Index

Group:            Development/Libraries/Other
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0.3.tar.gz
BuildRoot:        %{_tmppath}/%{name}-%{version}-build
BuildArch:        noarch
Requires:         R-core


Requires:         R-splines R-gdata R-xtable 
%if %suse_version <=1020
BuildRequires:  te_latex tetex
%endif
%if %suse_version > 1020
BuildRequires:  texlive-bin texlive-bin-latex texlive-latex
BuildRequires:  fdupes
%endif
%if %suse_version > 1120 
BuildRequires:  texlive-fonts-extra
%endif
BuildRequires:    R-base-devel  R-splines R-gdata R-xtable

%description
This package calculates ANSI S3.5-1997 SpeechThis package calculates ANSI
S3.5-1997 SpeechThis package calculates ANSI S3.5-1997 SpeechThis package
calculates ANSI S3.5-1997 SpeechThis package calculates ANSI S3.5-1997
SpeechThis package calculates ANSI S3.5-1997 SpeechThis package calculates
ANSI S3.5-1997 SpeechThis package calculates ANSI S3.5-1997 SpeechThis
package calculates ANSI S3.5-1997 SpeechThis package calculates ANSI
S3.5-1997 SpeechThis package calculates ANSI S3.5-1997 SpeechThis package
calculates ANSI S3.5-1997 SpeechThis package calculates ANSI S3.5-1997
SpeechThis package calculates ANSI S3.5-1997 Speech

%prep
%setup -q -c -n %{packname}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help


%changelog