File R-SnowballC.spec of Package R-SnowballC

%global packname  SnowballC
%global rlibdir   %{_libdir}/R/library

Name:           R-%{packname}
Version:        0.5.1
Release:        1
Summary:        Snowball stemmers based on the C libstemmer UTF-8 library

Group:          Development/Libraries/Other
License:        BSD
URL:            http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:        SnowballC_%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       R-base

# Package suggestions

BuildRequires:  texlive
BuildRequires:  texinfo
BuildRequires:  fdupes
#
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires:  texlive-fonts-extra
%endif

BuildRequires:    R-base-devel 
BuildRequires:    gcc-c++
# Package suggestions, not required to build
#BuildRequires: 

%description
An R interface to the C libstemmer library that implements Porter's word
stemming algorithm for collapsing words to a common root to aid comparison
of vocabulary. Currently supported languages are Danish, Dutch, English,
Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese,
Romanian, Russian, Spanish, Swedish and Turkish.

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

%build

%install
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


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


%changelog
openSUSE Build Service is sponsored by