%global packname bitops %global packvers 1.0-4.1 Name: R-%{packname} Version: 1.0.4.1 Release: 3%{?dist} Summary: Functions for Bitwise operations Group: Applications/Productivity License: GPLv2+ URL: http://cran.r-project.org/web/packages/bitops/index.html Source0: http://cran.r-project.org/src/contrib/%{packname}_%{packvers}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: R-core BuildRequires: R-devel, tetex-latex %description Functions for Bitwise operations on integer vectors. %prep %setup -c -q -n %{packname} %build %install %{__rm} -rf %{buildroot} mkdir -p %{buildroot}%{_libdir}/R/library %{_bindir}/R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library # Clean up in advance of check test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) %{__rm} -rf %{buildroot}%{_libdir}/R/library/R.css %check %{_bindir}/R CMD check %{packname} %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %dir %{_libdir}/R/library/%{packname} %doc %{_libdir}/R/library/%{packname}/html %doc %{_libdir}/R/library/%{packname}/DESCRIPTION %{_libdir}/R/library/%{packname}/INDEX %{_libdir}/R/library/%{packname}/Meta %{_libdir}/R/library/%{packname}/R %{_libdir}/R/library/%{packname}/help %{_libdir}/R/library/%{packname}/libs %changelog * Sat May 08 2010 josef radinger - 1.0.4.1-3 - fresh build * Fri May 07 2010 josef radinger - 1.0.4.1-2 - BuildRequires latex * Fri Apr 09 2010 josef radinger - 1.0.4.1-1 - initial release