2 # _with_3dnow - with 3Dnow! instructions
3 %define snapdate 20010309
4 Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
5 Summary(pl): Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3
8 Release: 0.%{snapdate}.2
11 Group(de): X11/Libraries
12 Group(es): X11/Bibliotecas
13 Group(fr): X11/Librairies
14 Group(pl): X11/Biblioteki
15 License: 3dfx Glide General Public License, 3Dfx Interactive Inc.
16 URL: http://glide.sourceforge.net/
17 Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
18 Patch0: glide-ia64.patch
19 Patch1: glide-ac-workaround.patch
20 Patch2: glide-h3.patch
21 Patch3: glide-h5.patch
22 Vendor: 3dfx Interactive Inc.
24 BuildRequires: XFree86-devel
25 BuildRequires: automake
26 BuildRequires: autoconf
27 BuildRequires: libtool
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This library allows the user to use a 3dfx Interactive Voodoo Banshee
33 or Voodoo3 card under Linux with DRI support. The source support DRI
34 or non-DRI versions of Glide.
37 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
38 Voodoo Banshee lub Voodoo3 pod Linux'em z DRI. Ta wersja zawiera
39 wsparcie dla wersji Glide z DRI i bez DRI.
42 Summary: Development headers for Glide 3.x
43 Summary(pl): Pliki nag³ówkowe Glide 3.x
44 Group: X11/Development/Libraries
45 Group(de): X11/Entwicklung/Libraries
46 Group(fr): X11/Development/Librairies
47 Group(pl): X11/Programowanie/Biblioteki
48 Requires: %{name} = %{version}
49 Provides: Glide3-DRI-devel
52 This package includes the headers files, documentation, and test files
53 necessary for developing applications that use the 3Dfx Interactive
54 Voodoo Banshee or Voodoo3 cards.
56 %description -l pl devel
57 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
58 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
59 Interactive Voodoo Banshe lub Voodoo3.
62 Summary: Static library Glide 3.x
63 Summary(pl): Statyczne biblioteki Glide 3.x
64 Group: X11/Development/Libraries
65 Group(de): X11/Entwicklung/Libraries
66 Group(fr): X11/Development/Librairies
67 Group(pl): X11/Programowanie/Biblioteki
68 Requires: %{name} = %{version}
69 Provides: Glide3-DRI-static
72 This package includes the static Glide3 library for Voodoo Banshee or
75 %description -l pl static
76 Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee
80 %setup -q -n glide3x-%{snapdate}
88 libtoolize --copy --force
93 --enable-fx-dri-build \
94 --enable-fx-glide-hw=h3 \
95 --enable-fx-debug=no \
96 %{?_with_3dnow:--enable-amd3d}
98 %{__make} -f makefile.autoconf all \
99 GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
100 GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
106 # something is recompiled - use GCFLAGS too
107 %{__make} -f makefile.autoconf install \
108 GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
109 GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
110 DESTDIR=$RPM_BUILD_ROOT
112 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
113 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
115 # Install the examples and their source, no binaries
116 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
117 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
118 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
119 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
120 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
122 gzip -9nf glide_license.txt
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc glide_license.txt.gz
133 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
134 %attr(755,root,root) %{_libdir}/libglide3x.so
135 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
138 %defattr(644,root,root,755)
140 %{_examplesdir}/glide3
141 %attr(755,root,root) %{_libdir}/lib*.la
142 %attr(755,root,root) %{_libdir}/libglide3.so
143 %{_includedir}/glide3
146 %defattr(644,root,root,755)