Init package
This commit is contained in:
parent
07513ffff2
commit
1d1fcd4562
60
R-magrittr.spec
Normal file
60
R-magrittr.spec
Normal file
@ -0,0 +1,60 @@
|
||||
# Disable tests for now
|
||||
%bcond_with check
|
||||
|
||||
%global packname magrittr
|
||||
%global packver 2.0.1
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: %{packver}
|
||||
Release: 1
|
||||
Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{packver}.tar.gz
|
||||
License: MIT
|
||||
URL: http://cran.r-project.org/web/packages/magrittr/index.html
|
||||
Summary: Provides a mechanism for chaining commands with a new forward-pipe operator
|
||||
BuildRequires: R-devel >= 3.0.0, tetex-latex, gcc
|
||||
%if %{with check}
|
||||
BuildRequires: R-testthat
|
||||
BuildRequires: R-knitr
|
||||
%endif
|
||||
|
||||
%description
|
||||
Provides a mechanism for chaining commands with a new forward-pipe operator.
|
||||
This operator will forward a value, or the result of an expression, into
|
||||
the next function call/expression. There is flexible support for the type of
|
||||
right-hand side expressions. For more information, see package vignette. To
|
||||
quote Rene Magritte, "Ceci n'est pas un pipe."
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/R/library
|
||||
%{_bindir}/R CMD INSTALL -l $RPM_BUILD_ROOT%{_libdir}/R/library %{packname}
|
||||
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/R/library/R.css
|
||||
|
||||
%check
|
||||
%if %{with check}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{_libdir}/R/library/%{packname}
|
||||
%doc %{_libdir}/R/library/%{packname}/LICENSE
|
||||
%doc %{_libdir}/R/library/%{packname}/html
|
||||
%{_libdir}/R/library/%{packname}/DESCRIPTION
|
||||
%{_libdir}/R/library/%{packname}/INDEX
|
||||
%{_libdir}/R/library/%{packname}/NAMESPACE
|
||||
%{_libdir}/R/library/%{packname}/NEWS.md
|
||||
%{_libdir}/R/library/%{packname}/Meta
|
||||
%{_libdir}/R/library/%{packname}/R
|
||||
%{_libdir}/R/library/%{packname}/doc
|
||||
%{_libdir}/R/library/%{packname}/help
|
||||
%{_libdir}/R/library/%{packname}/libs/
|
||||
%{_libdir}/R/library/%{packname}/logo*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 2.0.1-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
magrittr_2.0.1.tar.gz
Normal file
BIN
magrittr_2.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user