37892f8
%global packname igraph
37892f8
%global packver  1.2.6
472dcb8
%global rlibdir  %{_libdir}/R/library
472dcb8
dda39e7
%global __suggests_exclude ^R\\((graph|igraphdata|rgl)\\)
dda39e7
472dcb8
# Some loops; some unavailable yet.
472dcb8
%global with_suggests 0
472dcb8
# Examples use the network.
472dcb8
%bcond_with network
472dcb8
b20b246
# Use the system arpack?
37892f8
%bcond_with sys_arpack
b20b246
472dcb8
Name:             R-%{packname}
37892f8
Version:          1.2.6
e8f001c
Release:          2%{?dist}
472dcb8
Summary:          Network Analysis and Visualization
472dcb8
472dcb8
# Main: GPLv2+; html_library.tcl: TCL
472dcb8
License:          GPLv2+ and TCL
43577ba
URL:              https://CRAN.R-project.org/package=%{packname}
37892f8
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
5312951
# https://github.com/igraph/rigraph/pull/290
5312951
Patch0001:        0001-Update-FSF-address.patch
472dcb8
# Unbundle some things:
5312951
Patch0002:        0002-Unbundle-uuid.patch
5312951
Patch0003:        0003-Unbundle-arpack.patch
5312951
Patch0004:        0004-Increase-tolerances-to-work-on-all-arches.patch
472dcb8
472dcb8
# Here's the R view of the dependencies world:
472dcb8
# Depends:   R-methods
472dcb8
# Imports:   R-graphics, R-grDevices, R-magrittr, R-Matrix, R-pkgconfig >= 2.0.0, R-stats, R-utils
b20b246
# Suggests:  R-ape, R-digest, R-graph, R-igraphdata, R-rgl, R-scales, R-stats4, R-tcltk, R-testthat, R-withr
472dcb8
# LinkingTo:
472dcb8
# Enhances:
472dcb8
472dcb8
BuildRequires:    R-devel
472dcb8
BuildRequires:    tex(latex)
472dcb8
BuildRequires:    R-methods
472dcb8
BuildRequires:    R-graphics
472dcb8
BuildRequires:    R-grDevices
472dcb8
BuildRequires:    R-magrittr
472dcb8
BuildRequires:    R-Matrix
472dcb8
BuildRequires:    R-pkgconfig >= 2.0.0
472dcb8
BuildRequires:    R-stats
472dcb8
BuildRequires:    R-utils
bc898a5
BuildRequires:    R-digest
472dcb8
BuildRequires:    R-stats4
472dcb8
BuildRequires:    R-tcltk
472dcb8
BuildRequires:    R-testthat
b20b246
BuildRequires:    R-withr
472dcb8
%if %{with_suggests}
5451050
BuildRequires:    R-ape
472dcb8
BuildRequires:    R-graph
472dcb8
BuildRequires:    R-igraphdata
472dcb8
BuildRequires:    R-rgl
472dcb8
BuildRequires:    R-scales
472dcb8
%endif
37892f8
%if %{with sys_arpack}
472dcb8
BuildRequires:    arpack-devel
b20b246
%else
b20b246
# This is their fork of arpack.
b20b246
Provides:         bundled(arpack)
b20b246
%endif
472dcb8
BuildRequires:    glpk-devel
472dcb8
BuildRequires:    gmp-devel
472dcb8
BuildRequires:    libuuid-devel
472dcb8
BuildRequires:    libxml2-devel
472dcb8
BuildRequires:    openblas-devel
472dcb8
472dcb8
# https://github.com/igraph/rigraph/issues/268
472dcb8
# Not a released version.
472dcb8
Provides: bundled(igraph) = 9acfa54fa6b3d182fe458434a497f4e9b5c39955
472dcb8
472dcb8
%description
e2de31b
Routines for simple graphs and network analysis. It can handle large graphs
e2de31b
very well and provides functions for generating random and regular graphs,
e2de31b
graph visualization, centrality methods and much more.
472dcb8
472dcb8
472dcb8
%prep
472dcb8
%setup -q -c -n %{packname}
472dcb8
472dcb8
pushd %{packname}
472dcb8
%patch0001 -p1
472dcb8
%patch0002 -p1
37892f8
%if %{with sys_arpack}
472dcb8
%patch0003 -p1
b20b246
%endif
a88be9e
%patch0004 -p1
472dcb8
472dcb8
# Fix executable files.
472dcb8
chmod -x src/simpleraytracer/*.*
472dcb8
popd
472dcb8
472dcb8
472dcb8
%build
472dcb8
472dcb8
472dcb8
%install
472dcb8
mkdir -p %{buildroot}%{rlibdir}
472dcb8
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
472dcb8
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
472dcb8
rm -f %{buildroot}%{rlibdir}/R.css
472dcb8
472dcb8
472dcb8
%check
472dcb8
%if !%{with network}
472dcb8
ARGS=--no-examples
472dcb8
%endif
472dcb8
%if %{with_suggests}
472dcb8
%{_bindir}/R CMD check %{packname} $ARGS
472dcb8
%else
472dcb8
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} $ARGS
472dcb8
%endif
472dcb8
472dcb8
472dcb8
%files
472dcb8
%dir %{rlibdir}/%{packname}
472dcb8
%doc %{rlibdir}/%{packname}/html
472dcb8
%{rlibdir}/%{packname}/DESCRIPTION
472dcb8
%doc %{rlibdir}/%{packname}/NEWS.md
472dcb8
%doc %{rlibdir}/%{packname}/AUTHORS
472dcb8
%doc %{rlibdir}/%{packname}/CITATION
472dcb8
%doc %{rlibdir}/%{packname}/README.md
472dcb8
%{rlibdir}/%{packname}/INDEX
472dcb8
%{rlibdir}/%{packname}/NAMESPACE
472dcb8
%{rlibdir}/%{packname}/Meta
472dcb8
%{rlibdir}/%{packname}/R
472dcb8
%{rlibdir}/%{packname}/help
472dcb8
%{rlibdir}/%{packname}/benchmarks
472dcb8
%{rlibdir}/%{packname}/demo
472dcb8
%{rlibdir}/%{packname}/html_library.tcl
472dcb8
%license %{rlibdir}/%{packname}/html_library.license.terms
472dcb8
%{rlibdir}/%{packname}/igraph.gif
472dcb8
%{rlibdir}/%{packname}/igraph2.gif
472dcb8
%dir %{rlibdir}/%{packname}/libs
472dcb8
%{rlibdir}/%{packname}/libs/%{packname}.so
472dcb8
%{rlibdir}/%{packname}/my_html_library.tcl
472dcb8
%{rlibdir}/%{packname}/tkigraph_help
472dcb8
472dcb8
472dcb8
%changelog
e8f001c
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-2
e8f001c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e8f001c
37892f8
* Thu Oct 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.6-1
37892f8
- Update to latest version (#1885643)
37892f8
abb6805
* Mon Aug 10 2020 Tom Callaway <spot@fedoraproject.org> - 1.2.5-4
abb6805
- rebuild for FlexiBLAS R
abb6805
5419f4e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-3
5419f4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5419f4e
5451050
* Fri Jun  5 2020 Tom Callaway <spot@fedoraproject.org> - 1.2.5-2
5451050
- move ape within the with_suggests conditional to break the loop
5451050
- rebuild for R 4
5451050
b20b246
* Fri Mar 20 2020 Tom Callaway <spot@fedoraproject.org> - 1.2.5-1
b20b246
- update to 1.2.5
b20b246
- use bundled arpack for now
b20b246
9e3158f
* Tue Feb 18 2020 Tom Callaway <spot@fedoraproject.org> - 1.2.4.2-3
9e3158f
- rebuild to remove dep on libRlapack.so
9e3158f
d15020c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4.2-2
d15020c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d15020c
e2de31b
* Wed Nov 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.4.2-1
e2de31b
- Update to latest version
e2de31b
de777e1
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.4.1-3
de777e1
- Remove explicit dependencies provided by automatic dependency generator
de777e1
b10abde
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4.1-2
b10abde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b10abde
30918b0
* Mon Apr 22 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.4.1-1
30918b0
- Update to latest version
30918b0
62bb63f
* Sat Feb 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.4-1
62bb63f
- Update to latest version
62bb63f
1aa867f
* Sun Feb 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.3-1
1aa867f
- Update to latest version
1aa867f
175b087
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
175b087
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
175b087
bc898a5
* Tue Jul 31 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.2-1
bc898a5
- Update to latest version
bc898a5
5312951
* Tue Jul 24 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.1-2
5312951
- Fix build on older Fedora
5312951
472dcb8
* Mon Jul 23 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.1-1
472dcb8
- initial package for Fedora