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