%global __brp_check_rpaths %{nil} %global packname arthistory %global packver 0.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.0 Release: 1%{?dist}%{?buildtag} Summary: Art History Textbook Data License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildArch: noarch %description Data from Gardner and Janson art history textbooks about both the artists featured in these books as well as their works. See Helen Gardner ("Art through the ages; an introduction to its history and significance," 1926, . Helen Gardner, revised by Horst de la Croix and Richard G. Tansey ("Gardner’s Art through the ages," 1980, ISBN: 0155037587). Fred S. Kleiner ("Gardner’s art through the ages: a global history," 2020, ISBN: 9781337630702). Horst de la Croix and Richard G. Tansey ("Gardner's art through the ages," 1986, ISBN: 0155037633). Helen Gardner ("Art through the ages; an introduction to its history and significance," 1936, ). Helen Gardner ("Art through the ages," 1948, ). Helen Gardner, revised under the editorship of Sumner M. Crosby ("Art through the ages," 1959, ). Helen Gardner, revised by Horst de la Croix and Richard G. Tansey ("Gardner’s Art through the ages," 1975, ISBN: 0155037560). Fred S. Kleiner ("Gardner’s Art through the ages: a global history," 2013, ISBN: 9780495915423. Fred S. Kleiner, Christin J. Mamiya, Richard G. Tansey ("Gardner’s art through the ages," 2001, ISBN: 0155083155). Fred S. Kleiner ("Gardner’s Art through the ages: a global history," 2016, ISBN: 9781285837840). Fred S. Kleiner, Christin J. Mamiya ("Gardner’s art through the ages," 2005, ISBN: 0534640958). Helen Gardner, revised by Horst de la Croix and Richard G. Tansey ("Gardner’s Art through the ages," 1970, ISBN: 0155037528). Helen Gardner, Richard G. Tansey, Fred S. Kleiner ("Gardner’s Art through the ages," 1996, ISBN: 0155011413). Helen Gardner, Horst de la Croix, Richard G. Tansey, Diane Kirkpatrick ("Gardner’s Art through the ages," 1991, ISBN: 0155037692). Helen Gardner, Fred S. Kleiner ("Gardner’s Art through the ages: a global history," 2009, ISBN: 9780495093077). Davies, Penelope J.E., Walter B. Denny, Frima Fox Hofrichter, Joseph F. Jacobs, Ann S. Roberts, David L. Simon ("Janson’s history of art: the western tradition," 2007, ISBN: 0131934554). Davies, Penelope J.E., Walter B. Denny, Frima Fox Hofrichter, Joseph F. Jacobs, Ann S. Roberts, David L. Simon ("Janson’s history of art: the western tradition," 2011, ISBN: 9780205685172). H. W. Janson, Anthony F. Janson ("History of Art," 2001, ISBN: 0810934469). H. W. Janson, revised and expanded by Anthony F. Janson ("History of art," 1986, ISBN: 013389388). H. W. Janson, Dora Jane Janson ("History of art: a survey of the major visual arts from the dawn of history to present day," 1977, ISBN: 0810910527). H. W. Janson, Dora Jane Janson ("History of art: a survey of the major visual arts from the dawn of history to present day," 1969, ). H. W. Janson, Dora Jane Janson ("History of art: a survey of the major visual arts from the dawn of history to present day," 1963, ). H. W. Janson, revised and expanded by Anthony F. Janson ("History of art," 1991, ISBN: 0810934019). H. W. Janson, revised and expanded by Anthony F. Janson ("History of art," 1995, ISBN: 0810934213). %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %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 # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}