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