-
Notifications
You must be signed in to change notification settings - Fork 1
/
R-XML.spec
72 lines (55 loc) · 1.93 KB
/
R-XML.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%global packname XML
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 3.2.0
Release: 1%{?dist}
Summary: Tools for parsing and generating xml within r and s-plus
Group: Applications/Engineering
License: BSD
URL: http://cran.r-project.org/web/packages/XML/index.html
Source0: http://cran.r-project.org/src/contrib/XML_3.2-0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: R >= 1.2.0 R-methods R-utils
Requires: R-bitops
BuildRequires: R-devel tex(latex) R >= 1.2.0 R-methods R-utils R-bitops
BuildRequires: libxml2-devel
%description
This package provides many approaches for both reading and creating XML
(and HTML) documents (including DTDs), both local and accessible via HTTP
or FTP. It also offers access to an XPath "interpreter".
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} \
--configure-args='--with-xml-config=%{_bindir}/xml2-config'
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# Don't need Windows file or Subversion files
rm -f %{buildroot}%{rlibdir}/%{packname}/README.windows
rm -rf %{buildroot}%{rlibdir}/%{packname}/exampleData/xinclude/.svn
%check
%{_bindir}/R CMD check %{packname}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/Docs
%doc %{rlibdir}/%{packname}/exampleData
%doc %{rlibdir}/%{packname}/examples
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/scripts
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs/%{packname}.so
%changelog
* Tue Apr 05 2011 Adam Huffman <[email protected]> 3.2.0-1
- initial package for Fedora
- add BR for libxml2-devel