]> git.pld-linux.org Git - packages/X11-driver-firegl.git/commitdiff
- build at 2.6.x fixed.
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 7 Apr 2004 19:34:12 +0000 (19:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    X11-driver-firegl.spec -> 1.42

X11-driver-firegl.spec

index 2c2bf0fb3d0b72d6f9e4799ee11f4f1ee3f9e523..51c24b8b9ef3801c83ad40e2b66b51ff9e54be65 100644 (file)
@@ -117,10 +117,6 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        O=$PWD \
        %{?with_verbose:V=1}
     ln -sf %{_kernelsrcdir}/config-$cfg .config
-#    %{__make} -C %{_kernelsrcdir} include/linux/autoconf.h \
-#      SUBDIRS=$PWD \
-#      O=$PWD \
-#      %{?with_verbose:V=1}
     ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
     touch include/config/MARKER
     %{__make} -C %{_kernelsrcdir} modules \
@@ -142,9 +138,16 @@ cd -
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with kernel}
+cd lib/modules/fglrx/build_mod
 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
-install lib/modules/fglrx/build_mod/fglrx.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
-install lib/modules/fglrx/build_mod/fglrx-smp.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
+
+install fglrx-%{?with_dist_files:up}%{!?with_dist_kernel:nondist}.ko \
+       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/fglrx.ko
+%if %{with smp} && %{with dist_kernel}
+install fglrx-smp.ko \
+       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/fglrx.ko
+%endif
+cd -
 %endif
 
 %if %{with userspace}
@@ -212,7 +215,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/*.ko*
 
+%if %{with smp} && %{with dist_kernel}
 %files -n kernel-smp-video-firegl
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}smp/misc/*.ko*
 %endif
+%endif
This page took 0.116836 seconds and 4 git commands to generate.