1 %define snapdate 20010309
2 Summary: Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards
3 Summary(pl): Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5
6 Release: 0.%{snapdate}.8
8 License: 3dfx Glide General Public License, 3Dfx Interactive Inc.
9 Vendor: 3dfx Interactive Inc.
11 Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
12 # Source0-md5: 42a8e093221b2360ec96191ae0e13ce0
13 Patch0: glide-ia64.patch
14 Patch1: glide-ac-workaround.patch
15 Patch2: glide-h3.patch
16 Patch3: glide-h5.patch
17 Patch4: glide-am16.patch
19 URL: http://glide.sourceforge.net/
20 BuildRequires: XFree86-devel
21 BuildRequires: automake
22 BuildRequires: autoconf
23 BuildRequires: libtool
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Obsoletes: Glide_V3-DRI
29 This library allows the user to use a 3dfx Interactive Voodoo4 or
30 Voodoo5 card under Linux with DRI support. The source support DRI or
31 non-DRI versions of Glide.
34 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
35 Voodoo4 lub Voodoo5 pod Linuksem z DRI. Ta wersja zawiera wsparcie dla
36 wersji Glide z DRI i bez DRI.
39 Summary: Development headers for Glide 3.x
40 Summary(pl): Pliki nag³ówkowe Glide 3.x
41 Group: X11/Development/Libraries
42 Requires: %{name} = %{version}
43 Provides: Glide3-DRI-devel
44 Obsoletes: Glide_V3-DRI-devel
47 This package includes the headers files, documentation, and test files
48 necessary for developing applications that use the 3Dfx Interactive
49 Voodoo4 or Voodoo5 cards.
51 %description devel -l pl
52 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
53 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
54 Interactive Voodoo4 lub Voodoo5.
57 Summary: Static Glide 3.x library
58 Summary(pl): Statyczne biblioteki Glide 3.x
59 Group: X11/Development/Libraries
60 Requires: %{name}-devel = %{version}
61 Provides: Glide3-DRI-static
62 Obsoletes: Glide_V3-DRI-static
65 This package includes the static Glide3 library for Voodoo4 or
68 %description static -l pl
69 Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub
73 %setup -q -n glide3x-%{snapdate}
87 --enable-fx-dri-build \
88 --enable-fx-glide-hw=h5 \
89 --enable-fx-debug=no \
90 %ifarch i586 i686 athlon
94 %{__make} -f makefile.autoconf all \
95 GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
96 GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
102 # something is recompiled - use GCFLAGS too
103 %{__make} -f makefile.autoconf install \
104 GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
105 GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
106 DESTDIR=$RPM_BUILD_ROOT
108 # used by tdfx_dri.so from XFree86
109 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so
111 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so
112 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
114 # Install the examples and their source, no binaries
115 install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
116 install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
117 install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
118 install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
119 install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc glide_license.txt
130 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
131 %attr(755,root,root) %{_libdir}/libglide3-v5.so
132 %attr(755,root,root) %{_libdir}/libglide3x.so
133 %attr(755,root,root) %{_libdir}/libglide3x_V5.so
136 %defattr(644,root,root,755)
137 %{_examplesdir}/glide3
139 %attr(755,root,root) %{_libdir}/libglide3.so
140 %{_includedir}/glide3
143 %defattr(644,root,root,755)