]> git.pld-linux.org Git - packages/rpm.git/commitdiff
* %install_kernel_modules: auto/th/rpm-build-macros-1_369-1
authorsparky <sparky@pld-linux.org>
Sat, 27 Jan 2007 19:25:50 +0000 (19:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- unclosed %if should be fixed now
- ident
- -nondist.ko suffix for without dist_kernel modules

Changed files:
    rpm.macros -> 1.369

rpm.macros

index c2297e6f459c8518767d1282bad0d38cb2a9237e..40f653a4933e01b3792a098e555c43b894921b3d 100644 (file)
@@ -1290,22 +1290,24 @@ for MODULE in {%{-m*},}; do                                                                                     \
        [ -n "${MODULE}" ] || continue                                                                  \
        MNAME=${MODULE##*/}                                                                                             \
        %if %{without dist_kernel}                                                                              \
-               install %{MODULE}.ko                                                                            \\\
-               %{KernelD}/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                                      \
+               install %{MODULE}-nondist.ko                                                            \\\
+                       %{KernelD}/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                              \
                %{?-s:echo "alias ${MNAME} ${MNAME}-%{-s*}"                                     \\\
-               >> %{ModprobeD}/%{-n*}.conf}                                                            \
-       %endif                                                                                                                  \
-       %if %{with up} && %{with dist_kernel}                                                   \
+                       >> %{ModprobeD}/%{-n*}.conf}                                                    \
+       %else                                                                                                                   \
+       %if %{with up}                                                                                                  \
                install ${MODULE}-up.ko                                                                         \\\
-               %{KernelD}/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                                      \
+                       %{KernelD}/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                              \
                %{?-s:echo "alias ${MNAME} ${MNAME}-%{-s*}"                                     \\\
-               >> %{ModprobeD}/%{-n*}.conf}                                                            \
-    %if %{with smp} && %{with dist_kernel}                                                     \
+                       >> %{ModprobeD}/%{-n*}.conf}                                                    \
+       %endif                                                                                                                  \
+       %if %{with smp}                                                                                                 \
                install ${MODULE}-smp.ko                                                                        \\\
-               %{KernelD}smp/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                           \
+                       %{KernelD}smp/%{-d*}/${MNAME}%{-s:-%{-s*}}.ko                   \
                %{?-s:echo "alias ${MNAME} ${MNAME}-%{-s*}"                                     \\\
-               >> %{ModprobeD}smp/%{-n*}.conf}                                                         \
-    %endif                                                                                                                     \
+                       >> %{ModprobeD}smp/%{-n*}.conf}                                                 \
+       %endif                                                                                                                  \
+       %endif                                                                                                                  \
 done                                                                                                                           \
 %{nil}
 
This page took 0.043228 seconds and 4 git commands to generate.