1 %define snapdate 20010309
2 Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
3 Summary(ko.UTF-8): 3Dfx 부두 벤쉬/3 비디오카드용 Glide 런타임 라이브러리
4 Summary(pl.UTF-8): Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3
7 Release: 0.%{snapdate}.14
9 License: 3dfx Glide General Public License, 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
18 Patch5: glide-gcc33.patch
19 Patch6: glide-ioctl.patch
20 Patch7: glide-morearchs.patch
21 Patch8: glide-gcc34.patch
22 Patch9: glide-no_redefine_macro.patch
23 URL: http://glide.sourceforge.net/
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: libtool
27 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: xorg-lib-libXau-devel
29 BuildRequires: xorg-lib-libXdmcp-devel
30 BuildRequires: xorg-lib-libXext-devel
31 BuildRequires: xorg-lib-libXxf86dga-devel
32 BuildRequires: xorg-lib-libXxf86vm-devel
34 Obsoletes: Glide_V5-DRI
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 This library allows the user to use a 3dfx Interactive Voodoo Banshee
39 or Voodoo3 card under Linux with DRI support. The source support DRI
40 or non-DRI versions of Glide.
42 %description -l pl.UTF-8
43 Ta biblioteka pozwala użytkownikowi na używanie kart 3dfx Interactive
44 Voodoo Banshee lub Voodoo3 pod Linuksem z DRI. Ta wersja zawiera
45 wsparcie dla wersji Glide z DRI i bez DRI.
48 Summary: Development headers for Glide 3.x
49 Summary(pl.UTF-8): Pliki nagłówkowe Glide 3.x
50 Group: X11/Development/Libraries
51 Requires: %{name} = %{epoch}:%{version}-%{release}
52 Provides: Glide3-DRI-devel
53 Obsoletes: Glide_V5-DRI-devel
56 This package includes the headers files, documentation, and test files
57 necessary for developing applications that use the 3Dfx Interactive
58 Voodoo Banshee or Voodoo3 cards.
60 %description devel -l pl.UTF-8
61 Ten pakiet zawiera pliki nagłówkowe, dokumentacje, oraz pliki tekstowe
62 wymagane przez aplikacje deweloperskie, które używają kart 3Dfx
63 Interactive Voodoo Banshe lub Voodoo3.
66 Summary: Static library Glide 3.x
67 Summary(pl.UTF-8): Statyczne biblioteki Glide 3.x
68 Group: X11/Development/Libraries
69 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
70 Provides: Glide3-DRI-static
71 Obsoletes: Glide_V5-DRI-static
74 This package includes the static Glide3 library for Voodoo Banshee or
77 %description static -l pl.UTF-8
78 Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee
82 %setup -q -n glide3x-%{snapdate}
100 --enable-fx-dri-build \
101 --enable-fx-glide-hw=h3 \
102 --enable-fx-debug=no \
103 %ifarch i586 i686 athlon pentium3 pentium4
107 %{__make} -f makefile.autoconf all \
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 LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm"
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
116 # something is recompiled - use GCFLAGS too
117 %{__make} -f makefile.autoconf install \
118 GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
119 GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
120 LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm" \
121 DESTDIR=$RPM_BUILD_ROOT
123 # used by tdfx_dri.so from XFree86
124 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v3.so
126 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
127 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
129 # Install the examples and their source, no binaries
130 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/makefile
131 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
132 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
133 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
134 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
135 gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/*.3df
138 rm -rf $RPM_BUILD_ROOT
140 %post -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
144 %defattr(644,root,root,755)
145 %doc glide_license.txt
146 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
147 %attr(755,root,root) %{_libdir}/libglide3-v3.so
148 %attr(755,root,root) %{_libdir}/libglide3x.so
149 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libglide3.so
155 %{_includedir}/glide3
156 %{_examplesdir}/%{name}-%{version}
159 %defattr(644,root,root,755)