From 517a9393c8f636d8cde2fe245bb86ccf112d7a00 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 13 May 2015 03:09:20 -0400 Subject: remove unused kmod.* files Should have been done in commit d629c66e5ee362a67c9564e74619104a51f769ee --- NEWS | 1 + TODO | 2 -- kmod.attr | 2 -- kmod.prov | 17 ----------------- 4 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 kmod.attr delete mode 100644 kmod.prov diff --git a/NEWS b/NEWS index a99f05d..3cfb95a 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ - kill obsolete %defaultbuildroot - kill old %__find_(provides|requires) - kill redondant/unmainted macro (mga#4927) +- kill unused kmod.* files Version 2.7 - 26 October 2014, by Pascal Terjan diff --git a/TODO b/TODO index 9880235..5975ac3 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,9 @@ - Review .prov/.req and report upstream for merge - add tests, tests, and tests ! -- rewrite kmod.prov in perl, would make the script clearer - make spec-helper replace "#!env interpreter" by "#!/path/to/inter" instead of resolving the right dep in find-requires - after rpm-4.11: o replace %applypatches by %autosetup/patch - sync with FC req/prov helpers: - o switch our kmod.prov to FC one o include firmware.prov - devel.req: drop unused ldd path since we use objdump since 2007 diff --git a/kmod.attr b/kmod.attr deleted file mode 100644 index 316f8b5..0000000 --- a/kmod.attr +++ /dev/null @@ -1,2 +0,0 @@ -%__kmod_provides %{_rpmconfigdir}/mageia/kmod.prov -%__kmod_path ^/lib/modules/.*$ diff --git a/kmod.prov b/kmod.prov deleted file mode 100644 index f02d8a0..0000000 --- a/kmod.prov +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh +x - -IFS=$'\n' - -for i in $(grep -E '(/lib/modules/.*\.ko|/lib/modules/.*/modules.builtin)'); -do - kmod=$(basename $i | sed -e 's/.[xg]z//'); - - if [ $kmod == "modules.builtin" ]; then - for j in $(cat $i); do - j=$(basename $j); - echo "kmod($j)" - done - else - echo "kmod($kmod)" - fi -done -- cgit v1.2.1