57 lines
1.6 KiB
RPMSpec
57 lines
1.6 KiB
RPMSpec
%global packname bitops
|
|
%global packvers 1.0-4.1
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.0.4.1
|
|
Release: 2%{?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
|
|
* Fri May 07 2010 josef radinger <cheese@nosuchhost.net>
|
|
- 1.0.4.1-2
|
|
- BuildRequires latex
|
|
|
|
* Fri Apr 09 2010 josef radinger <cheese@nosuchhost.net>
|
|
- 1.0.4.1-1
|
|
- initial release
|