From repocop@altlinux.org Sun Mar  8 02:18:11 MSK 2026
From: "Repocop Q. A. Robot" <repocop@altlinux.org>

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

(message skipped)
--- a/jflex.spec	2026-03-08 02:18:11.688696138 +0300
+++ b/jflex.spec	2026-03-08 02:18:11.694696143 +0300
@@ -110,6 +110,15 @@
 mkdir -p $RPM_BUILD_ROOT`dirname /etc/java/%{name}.conf`
 touch $RPM_BUILD_ROOT/etc/java/%{name}.conf
 
+# 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
+
+
 %files -f .mfiles
 %doc doc
 %doc COPYRIGHT
