/[packages]/backports/4/mesa/current/SPECS/mesa.spec
ViewVC logotype

Diff of /backports/4/mesa/current/SPECS/mesa.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 278007 by guillomovitch, Thu Aug 2 12:37:53 2012 UTC revision 278008 by anssi, Thu Aug 2 20:08:00 2012 UTC
# Line 21  Line 21 
21  %define relc                    0  %define relc                    0
22  %define name                    mesa  %define name                    mesa
23  %define version                 8.1.0  %define version                 8.1.0
24  %define rel                     2  %define rel                     3
25    
26  %define release                 %mkrel %{rel}  %define release                 %mkrel %{rel}
27  %define src_type tar.bz2  %define src_type tar.bz2
# Line 67  Line 67 
67  %define glapimajor              0  %define glapimajor              0
68  %define gbmmajor                1  %define gbmmajor                1
69  %define waylandeglmajor         1  %define waylandeglmajor         1
70    %define osmesamajor             8
71    
72  %define libdricorename          %mklibname %{dricorename} %{dricoremajor}  %define libdricorename          %mklibname %{dricorename} %{dricoremajor}
73  %define libeglname              %mklibname %{eglname} %{eglmajor}  %define libeglname              %mklibname %{eglname} %{eglmajor}
# Line 79  Line 80 
80  %define libglapiname            %mklibname %{glapiname} %{glapimajor}  %define libglapiname            %mklibname %{glapiname} %{glapimajor}
81  %define libgbmname              %mklibname %{gbmname} %{gbmmajor}  %define libgbmname              %mklibname %{gbmname} %{gbmmajor}
82  %define libwaylandeglname       %mklibname %{waylandeglname} %{waylandeglmajor}  %define libwaylandeglname       %mklibname %{waylandeglname} %{waylandeglmajor}
83    %define libosmesaname           %mklibname osmesa %{osmesamajor}
84    
85  %define dridrivers              %mklibname dri-drivers  %define dridrivers              %mklibname dri-drivers
86    
87    %define osmesadevel             %mklibname osmesa -d
88    
89  # Architecture-independent Virtual provides:  # Architecture-independent Virtual provides:
90  %define libdricorename_virt     lib%{dricorename}  %define libdricorename_virt     lib%{dricorename}
91  %define libeglname_virt         lib%{eglname}  %define libeglname_virt         lib%{eglname}
# Line 167  Source3:       make-git-snapshot.sh Line 171  Source3:       make-git-snapshot.sh
171  # git branch mdv-patches  # git branch mdv-patches
172  # git am ../09??-*.patch  # git am ../09??-*.patch
173    
174    # Fix parallel make (Anssi 08/2012) - "*.td" is not evaluated properly on fresh
175    # build with no .td files created yet (TODO: check if upstream has fix already,
176    # and provide one if not - upstream git was down at the time of writing):
177    Patch001: mesa-radeon-parallel-make.patch
178    
179  # In order to update to the branch via patches, issue this command:  # In order to update to the branch via patches, issue this command:
180  # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'  # git format-patch --start-number 100 mesa_7_5_1..mesa_7_5_branch | sed 's/^0\([0-9]\+\)-/Patch\1: 0\1-/'
181    
# Line 177  Patch201: 0201-revert-fix-glxinitializev Line 186  Patch201: 0201-revert-fix-glxinitializev
186  # Patches "liberated" from Fedora:  # Patches "liberated" from Fedora:
187  # http://cvs.fedoraproject.org/viewvc/rpms/mesa/devel/  # http://cvs.fedoraproject.org/viewvc/rpms/mesa/devel/
188  # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat  # git format-patch --start-number 300 mdv-cherry-picks..mdv-redhat
189    # Fix installation of gl.pc when --enable-osmesa is used
190    Patch301: mesa-8.1-fixglpc.patch
191    
192  # Mageia/Mandriva patches  # Mageia/Mandriva patches
193  # git format-patch --start-number 900 mdv-redhat..mdv-patches  # git format-patch --start-number 900 mdv-redhat..mdv-patches
# Line 281  Provides:      %{eglname}-devel Line 292  Provides:      %{eglname}-devel
292  Provides:       libegl-devel  Provides:       libegl-devel
293  %endif  %endif
294    
295    %package -n %{libosmesaname}
296    Summary:        Mesa offscreen rendering library
297    Group:          System/Libraries
298    
299    %package -n %{osmesadevel}
300    Summary:        Development files for libosmesa
301    Group:          Development/C
302    Requires:       %{libosmesaname} = %{version}-%{release}
303    Provides:       osmesa-devel = %{version}-%{release}
304    Conflicts:      MesaGL-devel < 8.1.0-0.git20120727.3
305    
306  %package -n %{libglapiname}  %package -n %{libglapiname}
307  Summary:        Files for mesa (glapi libs)  Summary:        Files for mesa (glapi libs)
308  Group:          System/Libraries  Group:          System/Libraries
# Line 454  well-defined subset profiles of OpenGL. Line 476  well-defined subset profiles of OpenGL.
476    
477  This package provides the OpenGL ES library version 1.  This package provides the OpenGL ES library version 1.
478    
479    %description -n %{libosmesaname}
480    Mesa offscreen rendering libraries for rendering OpenGL into
481    application-allocated blocks of memory.
482    
483    %description -n %{osmesadevel}
484    This package contains the headers needed to compile programs against
485    the Mesa offscreen rendering library.
486    
487  %description -n %{libglapiname}  %description -n %{libglapiname}
488  This packages provides the glapi shared library used by gallium.  This packages provides the glapi shared library used by gallium.
489    
# Line 522  with the softpipe driver. Line 552  with the softpipe driver.
552  %setup -q -n Mesa-%{version}%{vsuffix}  %setup -q -n Mesa-%{version}%{vsuffix}
553  %endif  %endif
554    
555    %patch001 -p1
556  %patch201 -p1  %patch201 -p1
557    %patch301 -p1
558  %patch901 -p1  %patch901 -p1
559    
560  %build  %build
561  autoreconf -vfi  autoreconf -vfi
562  %configure2_5x  --with-driver=dri \  
563    # fix build - TODO: should this be fixed in llvm somehow, or maybe the library
564    # symlinks should be moved to %{_libdir}? -Anssi 08/2012
565    export LDFLAGS="-L%{_libdir}/llvm"
566    
567    %configure2_5x  --enable-dri \
568                    --enable-glx \
569                  --with-dri-driverdir=%{driver_dir} \                  --with-dri-driverdir=%{driver_dir} \
570                  --with-dri-drivers="%{dri_drivers}" \                  --with-dri-drivers="%{dri_drivers}" \
571                  --enable-shared-dricore \                  --enable-shared-dricore \
# Line 546  autoreconf -vfi Line 584  autoreconf -vfi
584                  --enable-openvg \                  --enable-openvg \
585                  --enable-gallium-egl \                  --enable-gallium-egl \
586                  --enable-gallium-g3dvl \                  --enable-gallium-g3dvl \
587                    --enable-osmesa \
588                  --disable-xvmc \                  --disable-xvmc \
589                  --enable-vdpau \                  --enable-vdpau \
590                  --disable-va \                  --disable-va \
# Line 639  find %{buildroot} -name '*.la' -exec rm Line 678  find %{buildroot} -name '*.la' -exec rm
678  %{_libdir}/egl/egl_gallium.so  %{_libdir}/egl/egl_gallium.so
679  %endif  %endif
680    
681    %files -n %{libosmesaname}
682    %defattr(-,root,root)
683    %{_libdir}/libOSMesa.so.%{osmesamajor}*
684    
685  %files -n %{libglapiname}  %files -n %{libglapiname}
686  %defattr(-,root,root)  %defattr(-,root,root)
687  %{_libdir}/libglapi.so.%{glapimajor}*  %{_libdir}/libglapi.so.%{glapimajor}*
# Line 674  find %{buildroot} -name '*.la' -exec rm Line 717  find %{buildroot} -name '*.la' -exec rm
717  %files -n %{libglname}-devel  %files -n %{libglname}-devel
718  %defattr(-,root,root)  %defattr(-,root,root)
719  %doc docs/COPYING  %doc docs/COPYING
720    %dir %{_includedir}/GL
721  %{_includedir}/GL/gl.h  %{_includedir}/GL/gl.h
722  %{_includedir}/GL/glext.h  %{_includedir}/GL/glext.h
723  %{_includedir}/GL/gl_mangle.h  %{_includedir}/GL/gl_mangle.h
 %{_includedir}/GL/osmesa.h  
724  %{_includedir}/GL/wglext.h  %{_includedir}/GL/wglext.h
725  %{_includedir}/GL/glx.h  %{_includedir}/GL/glx.h
726  %{_includedir}/GL/glxext.h  %{_includedir}/GL/glxext.h
# Line 695  find %{buildroot} -name '*.la' -exec rm Line 738  find %{buildroot} -name '*.la' -exec rm
738  %files -n %{libgluname}-devel  %files -n %{libgluname}-devel
739  %defattr(-,root,root)  %defattr(-,root,root)
740  %doc docs/COPYING  %doc docs/COPYING
741    %dir %{_includedir}/GL
742  %{_includedir}/GL/glu.h  %{_includedir}/GL/glu.h
743  %{_includedir}/GL/glu_mangle.h  %{_includedir}/GL/glu_mangle.h
744  %{_libdir}/libGLU.so  %{_libdir}/libGLU.so
# Line 713  find %{buildroot} -name '*.la' -exec rm Line 757  find %{buildroot} -name '*.la' -exec rm
757  %{_libdir}/pkgconfig/egl.pc  %{_libdir}/pkgconfig/egl.pc
758  %endif  %endif
759    
760    %files -n %{osmesadevel}
761    %defattr(-,root,root)
762    %dir %{_includedir}/GL
763    %{_includedir}/GL/osmesa.h
764    %{_libdir}/libOSMesa.so
765    %{_libdir}/pkgconfig/osmesa.pc
766    
767  %files -n %{libglapiname}-devel  %files -n %{libglapiname}-devel
768  %defattr(-,root,root)  %defattr(-,root,root)
769  %{_libdir}/libglapi.so  %{_libdir}/libglapi.so

Legend:
Removed from v.278007  
changed lines
  Added in v.278008

  ViewVC Help
Powered by ViewVC 1.1.30