%global __brp_check_rpaths %{nil} %global packname DDoutlier %global packver 0.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.0 Release: 3%{?dist}%{?buildtag} Summary: Distance & Density-Based Outlier Detection License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-dbscan BuildRequires: R-CRAN-proxy BuildRequires: R-CRAN-pracma Requires: R-CRAN-dbscan Requires: R-CRAN-proxy Requires: R-CRAN-pracma %description Outlier detection in multidimensional domains. Implementation of notable distance and density-based outlier algorithms. Allows users to identify local outliers by comparing observations to their nearest neighbors, reverse nearest neighbors, shared neighbors or natural neighbors. For distance-based approaches, see Knorr, M., & Ng, R. T. (1997) , Angiulli, F., & Pizzuti, C. (2002) , Hautamaki, V., & Ismo, K. (2004) and Zhang, K., Hutter, M. & Jin, H. (2009) . For density-based approaches, see Tang, J., Chen, Z., Fu, A. W. C., & Cheung, D. W. (2002) , Jin, W., Tung, A. K. H., Han, J., & Wang, W. (2006) , Schubert, E., Zimek, A. & Kriegel, H-P. (2014) , Latecki, L., Lazarevic, A. & Prokrajac, D. (2007) , Papadimitriou, S., Gibbons, P. B., & Faloutsos, C. (2003) , Breunig, M. M., Kriegel, H.-P., Ng, R. T., & Sander, J. (2000) , Kriegel, H.-P., Kröger, P., Schubert, E., & Zimek, A. (2009) , Zhu, Q., Feng, Ji. & Huang, J. (2016) , Huang, J., Zhu, Q., Yang, L. & Feng, J. (2015) , Tang, B. & Haibo, He. (2017) and Gao, J., Hu, W., Zhang, X. & Wu, Ou. (2011) . %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 %{rlibdir}/%{packname}