Init package
This commit is contained in:
parent
d7f5e13a32
commit
19e4c29d9f
89
R-xml2.spec
Normal file
89
R-xml2.spec
Normal file
@ -0,0 +1,89 @@
|
||||
%global packname xml2
|
||||
%global packver 1.3.2
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
# Dep loop so not right now
|
||||
# Also no network on OBS
|
||||
%global with_suggests 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.3.2
|
||||
Release: 1
|
||||
Summary: Parse XML
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
||||
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-methods
|
||||
BuildRequires: R-magrittr
|
||||
BuildRequires: R-mockery
|
||||
BuildRequires: R-testthat >= 2.1.0
|
||||
%if %{with_suggests}
|
||||
BuildRequires: R-curl
|
||||
BuildRequires: R-httr
|
||||
BuildRequires: R-knitr
|
||||
BuildRequires: R-rmarkdown
|
||||
%endif
|
||||
|
||||
%description
|
||||
Work with XML files using a simple, consistent interface. Built on top of
|
||||
the 'libxml2' C library.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
||||
|
||||
|
||||
%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_suggests}
|
||||
%{_bindir}/R CMD check %{packname} --no-examples
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes --no-examples
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS.md
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/extdata
|
||||
%{rlibdir}/%{packname}/help
|
||||
%dir %{rlibdir}/%{packname}/libs
|
||||
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||||
|
||||
%files devel
|
||||
%{rlibdir}/%{packname}/include
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 1.3.2-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
xml2_1.3.2.tar.gz
Normal file
BIN
xml2_1.3.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user