From c893afc27766d7b6e8ae0045ee0a3207146b6a77 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 5 Apr 2021 19:39:43 -0400 Subject: [PATCH] import #1946087 --- .gitignore | 1 + R-webfakes.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 R-webfakes.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..120d90f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/webfakes_1.1.1.tar.gz diff --git a/R-webfakes.spec b/R-webfakes.spec new file mode 100644 index 0000000..8a0314b --- /dev/null +++ b/R-webfakes.spec @@ -0,0 +1,82 @@ +%global packname webfakes +%global packver 1.1.1 +%global rlibdir %{_libdir}/R/library + +Name: R-%{packname} +Version: 1.1.1 +Release: 1%{?dist} +Summary: Fake Web Apps for HTTP Testing + +License: MIT +URL: https://CRAN.R-project.org/package=%{packname} +Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: R-stats, R-tools, R-utils +# Suggests: R-callr, R-curl, R-glue, R-jsonlite, R-httr, R-httpuv, R-testthat >= 3.0.0, R-withr, R-xml2 +# LinkingTo: +# Enhances: + +BuildRequires: R-devel +BuildRequires: tex(latex) +BuildRequires: R-stats +BuildRequires: R-tools +BuildRequires: R-utils +BuildRequires: R-callr +BuildRequires: R-curl +BuildRequires: R-glue +BuildRequires: R-jsonlite +BuildRequires: R-httr +BuildRequires: R-httpuv +BuildRequires: R-testthat >= 3.0.0 +BuildRequires: R-withr +BuildRequires: R-xml2 + +%description +Create a web app that makes it easier to test web clients without using the +internet. It includes a web app framework with path matching, parameters +and templates. Can parse various 'HTTP' request bodies. Can send 'JSON' +data or files from the disk. Includes a web app that implements the + web service. + + +%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 +%{_bindir}/R CMD check %{packname} + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS.md +%license %{rlibdir}/%{packname}/LICENSE +%{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}/credits +%{rlibdir}/%{packname}/examples +%{rlibdir}/%{packname}/views + + +%changelog +* Tue Mar 02 2021 Elliott Sales de Andrade - 1.1.1-1 +- initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..95f3929 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (webfakes_1.1.1.tar.gz) = 97aa034ae6e349a03b253d825a52cd0bb38859791d8496426608c8fa209a7f292183d5c1fb6b730c8ffce8349a7e80466993bee8ac8a1c84fd77138921f400d3