summaryrefslogtreecommitdiff
path: root/fileattrs
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-08-28 14:57:22 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-08-28 14:57:22 +0900
commit0fb104edc1e949fd224866aa900463aa2d6588d0 (patch)
treecdc9ddc3123edd5741e5151f3076c9bfc9535916 /fileattrs
parenta0dea826f88a4c5c9ceb722592cceedeb75a32fe (diff)
downloadlibrpm-tizen-0fb104edc1e949fd224866aa900463aa2d6588d0.tar.gz
librpm-tizen-0fb104edc1e949fd224866aa900463aa2d6588d0.tar.bz2
librpm-tizen-0fb104edc1e949fd224866aa900463aa2d6588d0.zip
Upgrade version to 4.14sandbox/wangbiao/rpm414_tizen
Change-Id: Ifd629ba679a11ede4d831195c6aea2245efc3300 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'fileattrs')
-rw-r--r--fileattrs/Makefile.am7
-rw-r--r--fileattrs/debuginfo.attr4
-rw-r--r--fileattrs/kernel.attr2
-rw-r--r--fileattrs/kmp.attr4
-rw-r--r--fileattrs/metainfo.attr2
-rw-r--r--fileattrs/perllib.attr2
6 files changed, 17 insertions, 4 deletions
diff --git a/fileattrs/Makefile.am b/fileattrs/Makefile.am
index 3d1b7e712..c3f1b053d 100644
--- a/fileattrs/Makefile.am
+++ b/fileattrs/Makefile.am
@@ -1,12 +1,13 @@
# Makefile for rpm file attributes
include $(top_srcdir)/rpm.am
+AM_CFLAGS = @RPMCFLAGS@
fattrsdir = $(rpmconfigdir)/fileattrs
fattrs_DATA = \
- desktop.attr elf.attr font.attr libtool.attr perl.attr perllib.attr \
- pkgconfig.attr python.attr ocaml.attr script.attr mono.attr \
- debuginfo.attr elflib.attr firmware.attr ksyms.attr sysvinit.attr
+ debuginfo.attr desktop.attr elf.attr font.attr libtool.attr metainfo.attr \
+ perl.attr perllib.attr pkgconfig.attr python.attr ocaml.attr script.attr \
+ mono.attr elflib.attr firmware.attr kernel.attr kmp.attr sysvinit.attr
EXTRA_DIST = $(fattrs_DATA)
diff --git a/fileattrs/debuginfo.attr b/fileattrs/debuginfo.attr
index 91fd995f0..4777df8a5 100644
--- a/fileattrs/debuginfo.attr
+++ b/fileattrs/debuginfo.attr
@@ -1,2 +1,4 @@
-%__debuginfo_provides %{_rpmconfigdir}/debuginfo.prov
+# Change how to add "package provide" to debuginfo package : add "package provide" using addPackageProvides_for_debuginfo_pkg
+#comment the below commond, no need to show provides debuginfo, build id info, for example: Provides: debuginfo(build-id) = XXX
+#%__debuginfo_provides %{_rpmconfigdir}/debuginfo.prov
%__debuginfo_path ^/usr/lib/debug/
diff --git a/fileattrs/kernel.attr b/fileattrs/kernel.attr
new file mode 100644
index 000000000..a79fde56a
--- /dev/null
+++ b/fileattrs/kernel.attr
@@ -0,0 +1,2 @@
+%__kernel_provides %{_rpmconfigdir}/find-provides.ksyms --opensuse 0%{?is_opensuse}
+%__kernel_path ^(/lib/modules/[^/]*/kernel/.*\.ko(\.gz)?|/boot/vmlinu[xz].*)$
diff --git a/fileattrs/kmp.attr b/fileattrs/kmp.attr
new file mode 100644
index 000000000..772ea3021
--- /dev/null
+++ b/fileattrs/kmp.attr
@@ -0,0 +1,4 @@
+%__kmp_provides %{_rpmconfigdir}/find-provides.ksyms --opensuse 0%{?is_opensuse}
+%__kmp_requires %{_rpmconfigdir}/find-requires.ksyms --opensuse 0%{?is_opensuse}
+%__kmp_supplements %{_rpmconfigdir}/find-supplements.ksyms
+%__kmp_path ^/lib/modules/[^/]*/(updates|extra)/.*\.ko(\.gz)?
diff --git a/fileattrs/metainfo.attr b/fileattrs/metainfo.attr
new file mode 100644
index 000000000..f016d45f4
--- /dev/null
+++ b/fileattrs/metainfo.attr
@@ -0,0 +1,2 @@
+%__metainfo_provides %{_rpmconfigdir}/metainfo.prov
+%__metainfo_path ^%{_datadir}/(appdata|metainfo)/.*\\.(appdata|metainfo)\\.xml$
diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr
index 99723546e..77463c841 100644
--- a/fileattrs/perllib.attr
+++ b/fileattrs/perllib.attr
@@ -2,3 +2,5 @@
#disabled for now
#%__perllib_requires %{_rpmconfigdir}/perl.req
%__perllib_magic ^Perl[[:digit:]] module source.*
+%__perllib_path \\.pm$
+%__perllib_flags magic_and_path