Init package
This commit is contained in:
parent
47ae85cd15
commit
91c234e328
89
R-markdown.spec
Normal file
89
R-markdown.spec
Normal file
@ -0,0 +1,89 @@
|
||||
%global packname markdown
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
# Dependency loop
|
||||
%global with_doc 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.1
|
||||
Release: 1
|
||||
Summary: Render Markdown with the C Library 'Sundown'
|
||||
|
||||
License: GPLv2 and ISC
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
||||
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-utils
|
||||
BuildRequires: R-xfun
|
||||
BuildRequires: R-mime >= 0.3
|
||||
%if %{with_doc}
|
||||
BuildRequires: R-knitr
|
||||
%endif
|
||||
|
||||
# Just in case we need this
|
||||
Provides: bundled(sundown) = 07d0d98cec0df93e07debbcf562cac9eaca998f8
|
||||
|
||||
%description
|
||||
Provides R bindings to the 'Sundown' Markdown rendering library
|
||||
(<https://github.com/vmg/sundown>). Markdown is a plain-text formatting syntax
|
||||
that can be converted to 'XHTML' or other formats. See
|
||||
<http://en.wikipedia.org/wiki/Markdown> for more information about Markdown.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for %{name}.
|
||||
|
||||
|
||||
%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
|
||||
|
||||
|
||||
%check
|
||||
%if %{with_doc}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%doc %{rlibdir}/%{packname}/examples
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%license %{rlibdir}/%{packname}/COPYING
|
||||
%license %{rlibdir}/%{packname}/NOTICE
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/help
|
||||
%dir %{rlibdir}/%{packname}/libs
|
||||
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||||
%{rlibdir}/%{packname}/resources
|
||||
|
||||
%files devel
|
||||
%{rlibdir}/%{packname}/include
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.1-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
markdown_1.1.tar.gz
Normal file
BIN
markdown_1.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user