forked from pool/freeglut
This commit is contained in:
parent
f8ceba4fba
commit
49c3321af7
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 21 22:28:37 CEST 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- remove static libraries and "la" files
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 3 12:37:15 CET 2009 - sndirsch@suse.de
|
Tue Mar 3 12:37:15 CET 2009 - sndirsch@suse.de
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Name: freeglut
|
|||||||
BuildRequires: Mesa-devel gcc-c++ libdrm-devel pkgconfig xorg-x11-devel
|
BuildRequires: Mesa-devel gcc-c++ libdrm-devel pkgconfig xorg-x11-devel
|
||||||
Summary: Freely licensed alternative to the GLUT library
|
Summary: Freely licensed alternative to the GLUT library
|
||||||
Version: 090301
|
Version: 090301
|
||||||
Release: 1
|
Release: 2
|
||||||
Url: http://freeglut.sourceforge.net/
|
Url: http://freeglut.sourceforge.net/
|
||||||
%define USE_EXTERNAL_MESA 1
|
%define USE_EXTERNAL_MESA 1
|
||||||
Source0: freeglut-%{version}.tar.bz2
|
Source0: freeglut-%{version}.tar.bz2
|
||||||
@ -123,25 +123,23 @@ popd
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
%configure --disable-static --with-pic
|
||||||
./configure --prefix=/usr --libdir=%_libdir
|
|
||||||
make %{?jobs:-j%jobs}
|
make %{?jobs:-j%jobs}
|
||||||
%if %USE_EXTERNAL_MESA
|
%if %USE_EXTERNAL_MESA
|
||||||
pushd ..
|
pushd ..
|
||||||
for i in glxinfo glxgears; do
|
for i in glxinfo glxgears; do
|
||||||
pushd $i; xmkmf -a; make CDEBUGFLAGS="$RPM_OPT_FLAGS"; popd
|
pushd $i; xmkmf -a; make %{?jobs:-j%jobs} CDEBUGFLAGS="$RPM_OPT_FLAGS"; popd
|
||||||
done
|
done
|
||||||
pushd xdriinfo-*
|
pushd xdriinfo-*
|
||||||
test -f /usr/%_lib/pkgconfig/x11.pc || \
|
test -f /usr/%_lib/pkgconfig/x11.pc || \
|
||||||
export PKG_CONFIG_PATH=/usr/%_lib/pkgconfig:$RPM_BUILD_DIR/usr/%_lib/pkgconfig
|
export PKG_CONFIG_PATH=/usr/%_lib/pkgconfig:$RPM_BUILD_DIR/usr/%_lib/pkgconfig
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --mandir=%{_mandir}
|
%configure --disable-static --with-pic
|
||||||
make
|
make %{?jobs:-j%jobs}
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
# remove demos
|
# remove demos
|
||||||
rm -f ${RPM_BUILD_ROOT}/usr/bin/{fractals*,lorenz,one}
|
rm -f ${RPM_BUILD_ROOT}/usr/bin/{fractals*,lorenz,one}
|
||||||
@ -165,12 +163,11 @@ pushd ..
|
|||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
%post
|
%post -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%postun
|
%postun -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -190,12 +187,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/GL/*
|
%{_includedir}/GL/*
|
||||||
%{_libdir}/libglut.a
|
|
||||||
%{_libdir}/libglut.la
|
|
||||||
%{_libdir}/libglut.so
|
%{_libdir}/libglut.so
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 21 2009 crrodriguez@suse.de
|
||||||
|
- remove static libraries and "la" files
|
||||||
* Tue Mar 03 2009 sndirsch@suse.de
|
* Tue Mar 03 2009 sndirsch@suse.de
|
||||||
- switched to current freeglut sources in SVN (2009-03-01)
|
- switched to current freeglut sources in SVN (2009-03-01)
|
||||||
- obsoletes freeglut-080721.diff, freeglut-sig11-bug466806.diff
|
- obsoletes freeglut-080721.diff, freeglut-sig11-bug466806.diff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user