1 %define snapdate 20010309
2 Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
7 Copyright: 3dfx Glide General Public License, 3Dfx Interactive Inc.
8 URL: http://glide.sourceforge.net/
9 Source: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
10 Patch: glide-ia64.patch
11 Vendor: 3dfx Interactive Inc.
13 BuildRequires: XFree86-devel
14 BuildRequires: automake
15 BuildRequires: autoconf
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 This library allows the user to use a 3dfx Interactive Voodoo Banshee
20 or Voodoo3 card under Linux with DRI support. The source support DRI
21 or non-DRI versions of Glide.
24 Summary: Development headers for Glide 3.x
25 Group: Development/Libraries
26 Requires: %{name} = %{version}
29 This package includes the headers files, documentation, and test files
30 necessary for developing applications that use the 3Dfx Interactive
31 Voodoo Banshe or Voodoo3 cards.
34 Summary: Static library Glide 3.x
35 Group: Development/Libraries
36 Requires: %{name} = %{version}
39 This package includes the static Glide3 library.
42 %setup -q -n glide3x-%{snapdate}
51 --enable-fx-dri-build \
52 --enable-fx-glide-hw=h3 \
55 %{__make} -f makefile.autoconf all
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
61 %{__make} -f makefile.autoconf install \
62 DESTDIR=$RPM_BUILD_ROOT
64 ln -s libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
65 ln -s libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
67 # Install the examples and their source, no binaries
68 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
69 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
70 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
71 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
72 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
74 gzip -9nf glide_license.txt
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %doc glide_license.txt.gz
85 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
86 %attr(755,root,root) %{_libdir}/libglide3x.so
87 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
90 %defattr(644,root,root,755)
92 %{_examplesdir}/glide3
93 %attr(755,root,root) %{_libdir}/lib*.la
94 %attr(755,root,root) %{_libdir}/libglide3.so
98 %defattr(644,root,root,755)