mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-24 09:32:42 +00:00
- Fix OSMesa symlink bug. (#424545)
- Build OSMesa with -Os to be slightly less bloaty. - Re-add osmesa.h to libOSMesa-devel. - Really restore -fvisibility=hidden.
This commit is contained in:
parent
2c6d81999d
commit
78fe81f459
1 changed files with 16 additions and 11 deletions
27
mesa.spec
27
mesa.spec
|
@ -15,7 +15,7 @@
|
|||
Summary: Mesa graphics libraries
|
||||
Name: mesa
|
||||
Version: 7.1
|
||||
Release: 0.16%{?dist}
|
||||
Release: 0.17%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://www.mesa3d.org
|
||||
|
@ -163,10 +163,11 @@ sed -i 's,isosurf.dat,%{_libdir}/mesa-demos-data/&,' progs/demos/isosurf.c
|
|||
sed -i 's,terrain.dat,%{_libdir}/mesa-demos-data/&,' progs/demos/terrain.c
|
||||
|
||||
%build
|
||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fvisibility=hidden"
|
||||
|
||||
autoreconf --install
|
||||
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden -Os"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden -Os"
|
||||
# first, build the osmesa variants
|
||||
%configure --with-driver=osmesa --with-osmesa-bits=8
|
||||
make %{_smp_mflags} SRC_DIRS=mesa
|
||||
|
@ -186,6 +187,9 @@ make clean
|
|||
# just to be sure...
|
||||
[ `find . -name \*.o | wc -l` -eq 0 ] || exit "make cleaner plz"
|
||||
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden"
|
||||
|
||||
# now build the rest of mesa
|
||||
%configure \
|
||||
--disable-glw \
|
||||
|
@ -237,12 +241,7 @@ install -m 0644 progs/images/*.rgb $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data
|
|||
install -m 0644 progs/demos/*.dat $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data
|
||||
|
||||
# and osmesa
|
||||
install -m 0755 -t $RPM_BUILD_ROOT%{_libdir} osmesa*/*.so.?
|
||||
pushd $RPM_BUILD_ROOT%{_libdir}
|
||||
for i in libOSMesa* ; do
|
||||
ln -s $i $(basename $i .6)
|
||||
done
|
||||
popd
|
||||
mv osmesa*/* $RPM_BUILD_ROOT%{_libdir}
|
||||
|
||||
# man pages
|
||||
pushd ../%{manpages}
|
||||
|
@ -316,9 +315,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
%files libOSMesa
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libOSMesa.so.6
|
||||
%{_libdir}/libOSMesa16.so.6
|
||||
%{_libdir}/libOSMesa32.so.6
|
||||
%{_libdir}/libOSMesa.so.6*
|
||||
%{_libdir}/libOSMesa16.so.6*
|
||||
%{_libdir}/libOSMesa32.so.6*
|
||||
|
||||
%files libOSMesa-devel
|
||||
%defattr(-,root,root,-)
|
||||
|
@ -394,6 +393,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_libdir}/mesa-demos-data
|
||||
|
||||
%changelog
|
||||
* Tue Feb 26 2008 Adam Jackson <ajax@redhat.com> 7.1-0.17
|
||||
- Fix OSMesa symlink bug. (#424545)
|
||||
- Build OSMesa with -Os to be slightly less bloaty.
|
||||
- Re-add osmesa.h to libOSMesa-devel.
|
||||
- Really restore -fvisibility=hidden.
|
||||
|
||||
* Thu Feb 21 2008 Adam Jackson <ajax@redhat.com> 7.1-0.16
|
||||
- Fix build on powerpc and amd64.
|
||||
- Disable %%_smp_mflags for DRI drivers for now.
|
||||
|
|
Loading…
Reference in a new issue