%define snapdate 20010309
Summary: Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards
+Summary(ko): 3Dfx ºÎµÎ º¥½¬/3 ºñµð¿ÀÄ«µå¿ë Glide ·±Å¸ÀÓ ¶óÀ̺귯¸®
Summary(pl): Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5
Name: Glide_V5-DRI
Version: 3.10.0
-Release: 0.%{snapdate}.7
+Release: 0.%{snapdate}.11
Epoch: 1
License: 3dfx Glide General Public License, 3Dfx Interactive Inc.
Vendor: 3dfx Interactive Inc.
Group: X11/Libraries
Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
+# Source0-md5: 42a8e093221b2360ec96191ae0e13ce0
Patch0: glide-ia64.patch
Patch1: glide-ac-workaround.patch
Patch2: glide-h3.patch
Patch3: glide-h5.patch
Patch4: glide-am16.patch
-Icon: 3dfx.gif
+Patch5: glide-gcc33.patch
+Patch6: glide-ioctl.patch
+Patch7: glide-morearchs.patch
URL: http://glide.sourceforge.net/
BuildRequires: XFree86-devel
BuildRequires: automake
Provides: Glide3-DRI
Obsoletes: Glide_V3-DRI
-%description
+%description
This library allows the user to use a 3dfx Interactive Voodoo4 or
Voodoo5 card under Linux with DRI support. The source support DRI or
non-DRI versions of Glide.
Summary: Development headers for Glide 3.x
Summary(pl): Pliki nag³ówkowe Glide 3.x
Group: X11/Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: Glide3-DRI-devel
Obsoletes: Glide_V3-DRI-devel
Summary: Static Glide 3.x library
Summary(pl): Statyczne biblioteki Glide 3.x
Group: X11/Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
Provides: Glide3-DRI-static
Obsoletes: Glide_V3-DRI-static
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
%build
-rm -f missing
%{__libtoolize}
-aclocal
+%{__aclocal}
%{__autoconf}
%{__automake} -i
%configure \
%{__make} -f makefile.autoconf all \
GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
- GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
+ GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
+ LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm" \
+ PREPROCESSOR='cpp -$$ -I.'
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
# something is recompiled - use GCFLAGS too
%{__make} -f makefile.autoconf install \
ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
# Install the examples and their source, no binaries
-install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
-install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
-install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
-install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
-install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
+install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/makefile
+install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
+install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
+install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
+install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
+gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/*.3df
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
-%{_examplesdir}/glide3
-%attr(755,root,root) %{_libdir}/lib*.la
%attr(755,root,root) %{_libdir}/libglide3.so
+%{_libdir}/lib*.la
%{_includedir}/glide3
+%{_examplesdir}/%{name}-%{version}
%files static
%defattr(644,root,root,755)