LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File R-httr.spec of Package R-httr (Project home:phyxkal)

%global packname  httr
%global rlibdir   %{_libdir}/R/library

Name:           R-%{packname}
Version:        1.3.1
Release:        1
Summary:        Tools for Working with URLs and HTTP

Group:          Development/Libraries/Other
License:        MIT + file LICENSE
URL:            http://cran.r-project.org/web/packages/%{packname}
Source0:        http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       R-base
Requires:       R-jsonlite
Requires:       R-mime
Requires:       R-curl >= 0.9.1
Requires:       R-openssl >= 0.8
Requires:       R-R6
# Package suggestions
#Requires:         R-httpuv R-jpeg R-knitr R-png R-testthat R-readr R-xml2 R-rmarkdown R-covr 
BuildRequires:  texlive
BuildRequires:  texinfo
BuildRequires:  fdupes
#
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires:  texlive-fonts-extra
%endif

BuildRequires:    R-base-devel 
BuildRequires:    R-jsonlite
BuildRequires:    R-mime
BuildRequires:    R-curl >= 0.9.1
BuildRequires:    R-openssl >= 0.8
BuildRequires:    R-R6
# Package suggestions, not required to build
#BuildRequires: R-httpuv R-jpeg R-knitr R-png R-testthat R-readr R-xml2 R-rmarkdown R-covr

%description
Useful tools for working with HTTP organised by HTTP verbs (GET(), POST(),
etc). Configuration functions make it easy to control additional request
components (authenticate(), add_headers() and so on).

%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


%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/demo

%changelog