summaryrefslogtreecommitdiff
path: root/fileattrs
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-05 09:35:45 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-05 09:35:45 +0300
commitfb4bc9b7d758798ccca698a52f650cdeea7c7ff5 (patch)
tree134eec0ec0d018a677d89484f6f16e68450801ac /fileattrs
parent152d1f0bc4b3b99ca72d994f90fee0f91f627daf (diff)
downloadlibrpm-tizen-fb4bc9b7d758798ccca698a52f650cdeea7c7ff5.tar.gz
librpm-tizen-fb4bc9b7d758798ccca698a52f650cdeea7c7ff5.tar.bz2
librpm-tizen-fb4bc9b7d758798ccca698a52f650cdeea7c7ff5.zip
Replace __foo_exeonly attribute with a more generic mechanism
- Use a list of text keyword tokens to allow for more flags without requiring adding special processing for every new flag we make
Diffstat (limited to 'fileattrs')
-rw-r--r--fileattrs/elf2
-rw-r--r--fileattrs/perl2
-rw-r--r--fileattrs/script2
3 files changed, 3 insertions, 3 deletions
diff --git a/fileattrs/elf b/fileattrs/elf
index c924dbb7d..fba180bca 100644
--- a/fileattrs/elf
+++ b/fileattrs/elf
@@ -1,4 +1,4 @@
%__elf_provides %{_rpmconfigdir}/elfdeps --provides %{?__filter_GLIBC_PRIVATE:--filter-private}
%__elf_requires %{_rpmconfigdir}/elfdeps --requires %{?__filter_GLIBC_PRIVATE:--filter-private}
%__elf_magic ^ELF (32|64)-bit.*$
-%__elf_exeonly 1
+%__elf_flags exeonly
diff --git a/fileattrs/perl b/fileattrs/perl
index 6cb57d17e..23b873fbe 100644
--- a/fileattrs/perl
+++ b/fileattrs/perl
@@ -1,3 +1,3 @@
%__perl_requires %{_rpmconfigdir}/perl.req
%__perl_magic ^.*perl .*$
-%__perl_exeonly 1
+%__perl_flags exeonly
diff --git a/fileattrs/script b/fileattrs/script
index 950113391..13b8ba0b6 100644
--- a/fileattrs/script
+++ b/fileattrs/script
@@ -1,3 +1,3 @@
%__script_requires %{_rpmconfigdir}/script.req
%__script_magic ^.* script text.*$
-%__script_exeonly 1
+%__script_flags exeonly