---- rpm-4.4.9/lib/rpmfc.c.orig 2007-05-22 20:19:05.990914000 +0200
-+++ rpm-4.4.9/lib/rpmfc.c 2007-05-22 22:12:38.775152636 +0200
-@@ -866,6 +866,12 @@
- /* not only executable, files run by httpd usually are not */
- if (fc->findreq)
- xx = rpmfcHelper(fc, 'R', "php", fc->noautoreq, fc->noautoreq_c);
-+ } else
-+ if (fc->fcolor->vals[fc->ix] & RPMFC_JAVA) {
-+ if (fc->findprov)
-+ xx = rpmfcHelper(fc, 'P', "java", fc->noautoprov, fc->noautoprov_c);
-+ if (fc->findreq)
-+ xx = rpmfcHelper(fc, 'R', "java", fc->noautoreq, fc->noautoreq_c);
- }
-
- return 0;
---- rpm-4.4.9/macros.in.orig 2007-05-22 20:22:01.924940000 +0200
-+++ rpm-4.4.9/macros.in 2007-05-22 22:13:06.612739010 +0200
-@@ -444,6 +444,9 @@
- %__mono_provides %{nil}
- %__mono_requires %{nil}
+--- rpm-4.15.1/fileattrs/Makefile.am~ 2019-06-26 23:17:31.000000000 +0900
++++ rpm-4.15.1/fileattrs/Makefile.am 2019-12-29 00:23:02.120085588 +0900
+@@ -8,6 +8,6 @@
+ fattrs_DATA = \
+ debuginfo.attr desktop.attr elf.attr font.attr libtool.attr metainfo.attr \
+ perl.attr perllib.attr pkgconfig.attr python.attr pythondist.attr ocaml.attr \
+- script.attr php.attr
++ script.attr php.attr java.attr
+ EXTRA_DIST = $(fattrs_DATA)
+--- /dev/null 2019-12-23 19:28:16.334291624 +0900
++++ rpm-4.15.1/fileattrs/java.attr 2019-12-29 00:22:52.989864428 +0900
+@@ -0,0 +1,5 @@
+%__java_provides %{nil}
-+%__java_requires %{nil}
-+
- #
- # Path to selinux file context patterns used to verify
- # file contexts on file system.
++%__java_requires env RPM_BUILD_ROOT=%{buildroot} MIN_CLASSDATAVERSION=%{?java_min_classdataversion} %{_rpmhome}/java-find-requires
++%__java_magic ^PHP script.*
++%__java_path \\.php$
++%__java_flags magic_and_path