From repocop@altlinux.org Fri Mar  6 02:25:02 MSK 2026
From: "Repocop Q. A. Robot" <repocop@altlinux.org>

Subject: repocop fix for arch-dep-package-consists-of-usr-share

(message skipped)
--- a/R-base.spec	2026-03-06 02:25:02.271668135 +0300
+++ b/R-base.spec	2026-03-06 02:25:02.284668143 +0300
@@ -338,6 +338,7 @@
 Group: Sciences/Mathematics
 Conflicts: R-base > %version, R-base < %version
 Requires: xdg-utils
+BuildArch: noarch
 
 %description -n R-doc-pdf
 R is 'GNU S' - A language and environment for statistical computing

From repocop@altlinux.org Fri Mar  6 02:25:02 MSK 2026
From: "Repocop Q. A. Robot" <repocop@altlinux.org>

Subject: repocop fix for arch-dep-package-consists-of-usr-share

(message skipped)
--- a/R-base.spec	2026-03-06 02:25:02.284668143 +0300
+++ b/R-base.spec	2026-03-06 02:25:02.296668150 +0300
@@ -315,6 +315,7 @@
 Group: Sciences/Mathematics
 Requires: R-base = %version-%release
 Requires: xdg-utils
+BuildArch: noarch
 
 %description -n R-doc-html
 R is 'GNU S' - A language and environment for statistical computing

From repocop@altlinux.org Fri Mar  6 02:25:02 MSK 2026
From: "Repocop Q. A. Robot" <repocop@altlinux.org>

Subject: repocop fix for macos-resource-fork-file-in-package

(message skipped)
--- a/R-base.spec	2026-03-06 02:25:02.296668150 +0300
+++ b/R-base.spec	2026-03-06 02:25:02.310668158 +0300
@@ -139,6 +139,16 @@
   %buildroot%_infodir/dir* \
   %buildroot%Rhome/COPYING \
   %buildroot%Rhome/SVN-REVISION \
+
+
+# There is a file in the package with a name starting with <tt>._</tt>, 
+# the file name pattern used by Mac OS X to store resource forks in non-native 
+# file systems. Such files are generally useless in packages and were usually 
+# accidentally included by copying complete directories from the source tarball.
+find $RPM_BUILD_ROOT -name '._*' -size 1 -print0 | xargs -0 grep -lZ 'Mac OS X' -- | xargs -0 rm -f
+# for ones installed as %%doc
+find . -name '._*' -size 1 -print0 | xargs -0 grep -lZ 'Mac OS X' -- | xargs -0 rm -f
+
   #
 
 %check
