Blob Blame History Raw
%global packname igraph
%global packver  1.2.5
%global rlibdir  %{_libdir}/R/library

# Some loops; some unavailable yet.
%global with_suggests 0
# Examples use the network.
%bcond_with network

Name:             R-%{packname}
Version:          1.2.5
Release:          1%{?dist}
Summary:          Network Analysis and Visualization

# Main: GPLv2+; html_library.tcl: TCL
License:          GPLv2+ and TCL
URL:    {packname}
Patch0001:        0001-Update-FSF-address.patch
# Unbundle some things:
Patch0002:        0002-Unbundle-uuid.patch
Patch0003:        0003-Unbundle-arpack.patch
Patch0004:        0004-Increase-tolerances-to-work-on-all-arches.patch

# Here's the R view of the dependencies world:
# Depends:   R-methods
# Imports:   R-graphics, R-grDevices, R-magrittr, R-Matrix, R-pkgconfig >= 2.0.0, R-stats, R-utils
# Suggests:  R-ape, R-digest, R-graph, R-igraphdata, R-rgl, R-scales, R-stats4, R-tcltk, R-testthat
# LinkingTo:
# Enhances:

Requires:         R-methods
Requires:         R-graphics
Requires:         R-grDevices
Requires:         R-magrittr
Requires:         R-Matrix
Requires:         R-pkgconfig >= 2.0.0
Requires:         R-stats
Requires:         R-utils
Suggests:         R-ape
Suggests:         R-graph
Suggests:         R-rgl
Suggests:         R-stats4
Suggests:         R-tcltk
Suggests:         R-testthat
BuildRequires:    R-devel
BuildRequires:    tex(latex)
BuildRequires:    R-methods
BuildRequires:    R-graphics
BuildRequires:    R-grDevices
BuildRequires:    R-magrittr
BuildRequires:    R-Matrix
BuildRequires:    R-pkgconfig >= 2.0.0
BuildRequires:    R-stats
BuildRequires:    R-utils
BuildRequires:    R-ape
BuildRequires:    R-digest
BuildRequires:    R-stats4
BuildRequires:    R-tcltk
BuildRequires:    R-testthat
%if %{with_suggests}
BuildRequires:    R-graph
BuildRequires:    R-igraphdata
BuildRequires:    R-rgl
BuildRequires:    R-scales
BuildRequires:    arpack-devel
BuildRequires:    glpk-devel
BuildRequires:    gmp-devel
BuildRequires:    libuuid-devel
BuildRequires:    libxml2-devel
BuildRequires:    openblas-devel

# Not a released version.
Provides: bundled(igraph) = aecc58c67974bd97f8fd81aacbee6dcb2f928098

Routines for simple graphs and network analysis. It can handle large graphs
very well and provides functions for generating random and regular graphs,
graph visualization, centrality methods and much more.

%setup -q -c -n %{packname}

pushd %{packname}
%patch0001 -p1
%patch0002 -p1
%patch0003 -p1
%patch0004 -p1

# Fix executable files.
chmod -x src/simpleraytracer/*.*


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

%if !%{with network}
%if %{with_suggests}
%{_bindir}/R CMD check %{packname} $ARGS
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} $ARGS

%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/
%doc %{rlibdir}/%{packname}/AUTHORS
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/
%license %{rlibdir}/%{packname}/html_library.license.terms
%dir %{rlibdir}/%{packname}/libs

* Sat Mar 21 2020 Elliott Sales de Andrade <> - 1.2.5-1
- Update to latest version

* Wed Nov 27 2019 Elliott Sales de Andrade <> -
- Update to latest version

* Mon Apr 22 2019 Elliott Sales de Andrade <> -
- Update to latest version

* Sat Feb 16 2019 Elliott Sales de Andrade <> - 1.2.4-1
- Update to latest version

* Sun Feb 10 2019 Elliott Sales de Andrade <> - 1.2.3-1
- Update to latest version

* Thu Jan 31 2019 Fedora Release Engineering <> - 1.2.2-2
- Rebuilt for

* Tue Jul 31 2018 Elliott Sales de Andrade <> - 1.2.2-1
- Update to latest version

* Tue Jul 24 2018 Elliott Sales de Andrade <> - 1.2.1-2
- Fix build on older Fedora

* Mon Jul 23 2018 Elliott Sales de Andrade <> - 1.2.1-1
- initial package for Fedora