%define snapdate 20010309 Summary: Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards Summary(pl): Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5 Name: Glide_V5-DRI Version: 3.10.0 Release: 0.%{snapdate}.8 Epoch: 1 License: 3dfx Glide General Public License, 3Dfx Interactive Inc. Vendor: 3dfx Interactive Inc. Group: X11/Libraries Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz Patch0: glide-ia64.patch Patch1: glide-ac-workaround.patch Patch2: glide-h3.patch Patch3: glide-h5.patch Patch4: glide-am16.patch Icon: 3dfx.gif URL: http://glide.sourceforge.net/ BuildRequires: XFree86-devel BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Provides: Glide3-DRI Obsoletes: Glide_V3-DRI %description This library allows the user to use a 3dfx Interactive Voodoo4 or Voodoo5 card under Linux with DRI support. The source support DRI or non-DRI versions of Glide. %description -l pl Ta biblioteka pozwala użytkownikowi na używanie kart 3dfx Interactive Voodoo4 lub Voodoo5 pod Linuksem z DRI. Ta wersja zawiera wsparcie dla wersji Glide z DRI i bez DRI. %package devel Summary: Development headers for Glide 3.x Summary(pl): Pliki nagłówkowe Glide 3.x Group: X11/Development/Libraries Requires: %{name} = %{version} Provides: Glide3-DRI-devel Obsoletes: Glide_V3-DRI-devel %description devel This package includes the headers files, documentation, and test files necessary for developing applications that use the 3Dfx Interactive Voodoo4 or Voodoo5 cards. %description devel -l pl Ten pakiet zawiera pliki nagłówkowe, dokumentacje, oraz pliki tekstowe wymagane przez aplikacje deweloperskie, które używają kart 3Dfx Interactive Voodoo4 lub Voodoo5. %package static Summary: Static Glide 3.x library Summary(pl): Statyczne biblioteki Glide 3.x Group: X11/Development/Libraries Requires: %{name}-devel = %{version} Provides: Glide3-DRI-static Obsoletes: Glide_V3-DRI-static %description static This package includes the static Glide3 library for Voodoo4 or Voodoo5. %description static -l pl Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub Voodoo5. %prep %setup -q -n glide3x-%{snapdate} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build rm -f missing %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} -i %configure \ --enable-fx-dri-build \ --enable-fx-glide-hw=h5 \ --enable-fx-debug=no \ %ifarch i586 i686 athlon --enable-amd3d %endif %{__make} -f makefile.autoconf all \ GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests # something is recompiled - use GCFLAGS too %{__make} -f makefile.autoconf install \ GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ DESTDIR=$RPM_BUILD_ROOT # used by tdfx_dri.so from XFree86 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so # used by ??? ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so # Install the examples and their source, no binaries install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc glide_license.txt %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* %attr(755,root,root) %{_libdir}/libglide3-v5.so %attr(755,root,root) %{_libdir}/libglide3x.so %attr(755,root,root) %{_libdir}/libglide3x_V5.so %files devel %defattr(644,root,root,755) %{_examplesdir}/glide3 %{_libdir}/lib*.la %attr(755,root,root) %{_libdir}/libglide3.so %{_includedir}/glide3 %files static %defattr(644,root,root,755) %{_libdir}/lib*.a