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   %{_libdir}/R/library

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

Group:          Development/Libraries/Other
License:        GPL-2
URL:            None
Source0:        SII_1.0.3.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       R-base

# Package suggestions
#Requires:         R-splines R-gdata R-xtable 
BuildRequires:  texlive
BuildRequires:  texinfo
BuildRequires:  fdupes
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires:  texlive-fonts-extra

BuildRequires:    R-base-devel 
# Package suggestions, not required to build
#BuildRequires: R-splines R-gdata R-xtable

 This package calculates ANSI S3.5-1997 Speech Intelligibility Index
(SII), a standard method for computing the intelligibility of speech from
acoustical measurements of speech, noise, and hearing thresholds. This
package includes data frames corresponding to Tables 1 - 4 in the ANSI
standard as well as a function utilizing these tables and user-provided
hearing threshold and noise level measurements to compute the SII score. 
The methods implemented here extend the standard computations to allow
calculation of SII when the measured frequencies do not match those
required by the standard by applying interpolation to obtain values for
the required frequencies -- Development of this package was funded by the
Center for Bioscience Education and Technology (CBET) of the Rochester
Institute of Technology (RIT).

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


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

rm -rf %{buildroot}

%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS