From 86eabb34ce7285dfe7f55f3773c1e9938fb17e21 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 11 Oct 2012 15:52:02 -0700 Subject: File attributes --- fileattrs/Makefile.am | 3 ++- fileattrs/debuginfo.attr | 2 ++ fileattrs/elf.attr | 3 ++- fileattrs/elflib.attr | 4 ++++ fileattrs/firmware.attr | 2 ++ fileattrs/ksyms.attr | 4 ++++ fileattrs/perl.attr | 3 ++- fileattrs/perllib.attr | 3 ++- fileattrs/sysvinit.attr | 2 ++ 9 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 fileattrs/debuginfo.attr create mode 100644 fileattrs/elflib.attr create mode 100644 fileattrs/firmware.attr create mode 100644 fileattrs/ksyms.attr create mode 100644 fileattrs/sysvinit.attr (limited to 'fileattrs') diff --git a/fileattrs/Makefile.am b/fileattrs/Makefile.am index 0fd1435c2..3d1b7e712 100644 --- a/fileattrs/Makefile.am +++ b/fileattrs/Makefile.am @@ -6,6 +6,7 @@ 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 + pkgconfig.attr python.attr ocaml.attr script.attr mono.attr \ + debuginfo.attr elflib.attr firmware.attr ksyms.attr sysvinit.attr EXTRA_DIST = $(fattrs_DATA) diff --git a/fileattrs/debuginfo.attr b/fileattrs/debuginfo.attr new file mode 100644 index 000000000..91fd995f0 --- /dev/null +++ b/fileattrs/debuginfo.attr @@ -0,0 +1,2 @@ +%__debuginfo_provides %{_rpmconfigdir}/debuginfo.prov +%__debuginfo_path ^/usr/lib/debug/ diff --git a/fileattrs/elf.attr b/fileattrs/elf.attr index 595b33e09..49de06843 100644 --- a/fileattrs/elf.attr +++ b/fileattrs/elf.attr @@ -1,4 +1,5 @@ %__elf_provides %{_rpmconfigdir}/elfdeps --provides %{?__filter_GLIBC_PRIVATE:--filter-private} %__elf_requires %{_rpmconfigdir}/elfdeps --requires %{?__filter_GLIBC_PRIVATE:--filter-private} -%__elf_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*$ +%__elf_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*executable %__elf_flags exeonly +%__elf_exclude_path ^/usr/lib/debug/ diff --git a/fileattrs/elflib.attr b/fileattrs/elflib.attr new file mode 100644 index 000000000..a8aafa6f1 --- /dev/null +++ b/fileattrs/elflib.attr @@ -0,0 +1,4 @@ +%__elflib_provides %{_rpmconfigdir}/elfdeps --assume-exec --provides %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elflib_requires %{_rpmconfigdir}/elfdeps --assume-exec --requires %{?__filter_GLIBC_PRIVATE:--filter-private} +%__elflib_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*shared object +%__elflib_exclude_path ^/usr/lib/debug/ diff --git a/fileattrs/firmware.attr b/fileattrs/firmware.attr new file mode 100644 index 000000000..2d577aa44 --- /dev/null +++ b/fileattrs/firmware.attr @@ -0,0 +1,2 @@ +%__firmware_provides %{_rpmconfigdir}/firmware.prov +%__firmware_path /lib/firmware/ diff --git a/fileattrs/ksyms.attr b/fileattrs/ksyms.attr new file mode 100644 index 000000000..8dbf16b6d --- /dev/null +++ b/fileattrs/ksyms.attr @@ -0,0 +1,4 @@ +%__ksyms_provides %{_rpmconfigdir}/find-provides.ksyms %name +%__ksyms_requires %{_rpmconfigdir}/find-requires.ksyms %name +%__ksyms_supplements %{_rpmconfigdir}/find-supplements.ksyms %name +%__ksyms_path (/lib/modules/.*\.ko(\.gz)?)|(/boot/vmlinu[xz].*)$ diff --git a/fileattrs/perl.attr b/fileattrs/perl.attr index 0daef58d5..89383c213 100644 --- a/fileattrs/perl.attr +++ b/fileattrs/perl.attr @@ -1,3 +1,4 @@ -%__perl_requires %{_rpmconfigdir}/perl.req +# disabled for now +#%__perl_requires %{_rpmconfigdir}/perl.req %__perl_magic ^.*[Pp]erl .*$ %__perl_flags exeonly diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr index 4e5422518..99723546e 100644 --- a/fileattrs/perllib.attr +++ b/fileattrs/perllib.attr @@ -1,3 +1,4 @@ %__perllib_provides %{_rpmconfigdir}/perl.prov -%__perllib_requires %{_rpmconfigdir}/perl.req +#disabled for now +#%__perllib_requires %{_rpmconfigdir}/perl.req %__perllib_magic ^Perl[[:digit:]] module source.* diff --git a/fileattrs/sysvinit.attr b/fileattrs/sysvinit.attr new file mode 100644 index 000000000..81810e54b --- /dev/null +++ b/fileattrs/sysvinit.attr @@ -0,0 +1,2 @@ +%__sysvinit_provides %{_rpmconfigdir}/sysvinitdeps.sh --provides +%__sysvinit_path ^/etc/init\.d/ -- cgit v1.2.3