]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blob - Glide_V3-DRI.spec
- added ioctl (for 2.6) and morearchs (for ppc/sparc/amd64) patches
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
1 %define snapdate 20010309
2 Summary:        Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
3 Summary(ko):    3Dfx ºÎµÎ º¥½¬/3 ºñµð¿ÀÄ«µå¿ë Glide ·±Å¸ÀÓ ¶óÀ̺귯¸®
4 Summary(pl):    Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3
5 Name:           Glide_V3-DRI
6 Version:        3.10.0
7 Release:        0.%{snapdate}.10
8 Epoch:          1
9 License:        3dfx Glide General Public License, 3Dfx Interactive Inc.
10 Vendor:         3dfx Interactive Inc.
11 Group:          X11/Libraries
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 Icon:           3dfx.gif
23 URL:            http://glide.sourceforge.net/
24 BuildRequires:  XFree86-devel
25 BuildRequires:  automake
26 BuildRequires:  autoconf
27 BuildRequires:  libtool
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Provides:       Glide3-DRI
30 Obsoletes:      Glide_V5-DRI
31
32 %description
33 This library allows the user to use a 3dfx Interactive Voodoo Banshee
34 or Voodoo3 card under Linux with DRI support. The source support DRI
35 or non-DRI versions of Glide.
36
37 %description -l pl
38 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
39 Voodoo Banshee lub Voodoo3 pod Linuksem z DRI. Ta wersja zawiera
40 wsparcie dla wersji Glide z DRI i bez DRI.
41
42 %package devel
43 Summary:        Development headers for Glide 3.x
44 Summary(pl):    Pliki nag³ówkowe Glide 3.x
45 Group:          X11/Development/Libraries
46 Requires:       %{name} = %{epoch}:%{version}-%{release}
47 Provides:       Glide3-DRI-devel
48 Obsoletes:      Glide_V5-DRI-devel
49
50 %description devel
51 This package includes the headers files, documentation, and test files
52 necessary for developing applications that use the 3Dfx Interactive
53 Voodoo Banshee or Voodoo3 cards.
54
55 %description devel -l pl
56 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
57 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
58 Interactive Voodoo Banshe lub Voodoo3.
59
60 %package static
61 Summary:        Static library Glide 3.x
62 Summary(pl):    Statyczne biblioteki Glide 3.x
63 Group:          X11/Development/Libraries
64 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
65 Provides:       Glide3-DRI-static
66 Obsoletes:      Glide_V5-DRI-static
67
68 %description static
69 This package includes the static Glide3 library for Voodoo Banshee or
70 Voodoo3 cards.
71
72 %description static -l pl
73 Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee
74 lub Voodoo3.
75
76 %prep
77 %setup -q -n glide3x-%{snapdate}
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81 %patch3 -p1
82 %patch4 -p1
83 %patch5 -p1
84 %patch6 -p1
85 %patch7 -p1
86
87 %build
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__automake} -i
92 %configure \
93         --enable-fx-dri-build \
94         --enable-fx-glide-hw=h3 \
95         --enable-fx-debug=no \
96 %ifarch i586 i686 athlon
97         --enable-amd3d
98 %endif
99
100 %{__make} -f makefile.autoconf all \
101         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
102         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
103         LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm"
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
108
109 # something is recompiled - use GCFLAGS too
110 %{__make} -f makefile.autoconf install \
111         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
112         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
113         LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm" \
114         DESTDIR=$RPM_BUILD_ROOT
115
116 # used by tdfx_dri.so from XFree86
117 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v3.so
118 # used by ???
119 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
120 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
121
122 # Install the examples and their source, no binaries
123 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
124 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
125 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
126 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
127 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
128
129 %clean
130 rm -rf $RPM_BUILD_ROOT
131
132 %post   -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
134
135 %files
136 %defattr(644,root,root,755)
137 %doc glide_license.txt
138 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
139 %attr(755,root,root) %{_libdir}/libglide3-v3.so
140 %attr(755,root,root) %{_libdir}/libglide3x.so
141 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
142
143 %files devel
144 %defattr(644,root,root,755)
145 %{_examplesdir}/glide3
146 %{_libdir}/lib*.la
147 %attr(755,root,root) %{_libdir}/libglide3.so
148 %{_includedir}/glide3
149
150 %files static
151 %defattr(644,root,root,755)
152 %{_libdir}/lib*.a
This page took 0.06461 seconds and 4 git commands to generate.