diff --git a/R-markdown.spec b/R-markdown.spec new file mode 100644 index 0000000..138ee3d --- /dev/null +++ b/R-markdown.spec @@ -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 +(). Markdown is a plain-text formatting syntax +that can be converted to 'XHTML' or other formats. See + 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 - 1.1-1 +- Init package (Thanks to fedora team) diff --git a/markdown_1.1.tar.gz b/markdown_1.1.tar.gz new file mode 100644 index 0000000..c3f6bcf Binary files /dev/null and b/markdown_1.1.tar.gz differ