]>
Commit | Line | Data |
---|---|---|
590f1ce0 JB |
1 | %define snapdate 20010309 |
2 | Summary: Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards | |
b6d836b1 JR |
3 | Summary(ko.UTF-8): 3Dfx 부두 벤쉬/3 비디오카드용 Glide 런타임 라이브러리 |
4 | Summary(pl.UTF-8): Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5 | |
590f1ce0 JB |
5 | Name: Glide_V5-DRI |
6 | Version: 3.10.0 | |
5c82fbbc | 7 | Release: 0.%{snapdate}.11 |
590f1ce0 | 8 | Epoch: 1 |
80d7c5bd JB |
9 | License: 3dfx Glide General Public License, 3Dfx Interactive Inc. |
10 | Vendor: 3dfx Interactive Inc. | |
590f1ce0 | 11 | Group: X11/Libraries |
590f1ce0 | 12 | Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz |
49bc33fb | 13 | # Source0-md5: 42a8e093221b2360ec96191ae0e13ce0 |
590f1ce0 JB |
14 | Patch0: glide-ia64.patch |
15 | Patch1: glide-ac-workaround.patch | |
16 | Patch2: glide-h3.patch | |
17 | Patch3: glide-h5.patch | |
b1a4e0bf | 18 | Patch4: glide-am16.patch |
fff85a0f | 19 | Patch5: glide-gcc33.patch |
5f9ad92d | 20 | Patch6: glide-ioctl.patch |
da2688cd | 21 | Patch7: glide-morearchs.patch |
80d7c5bd | 22 | URL: http://glide.sourceforge.net/ |
590f1ce0 JB |
23 | BuildRequires: XFree86-devel |
24 | BuildRequires: automake | |
25 | BuildRequires: autoconf | |
26 | BuildRequires: libtool | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | Provides: Glide3-DRI | |
45ab1160 | 29 | Obsoletes: Glide_V3-DRI |
590f1ce0 | 30 | |
cadbcc39 | 31 | %description |
590f1ce0 JB |
32 | This library allows the user to use a 3dfx Interactive Voodoo4 or |
33 | Voodoo5 card under Linux with DRI support. The source support DRI or | |
34 | non-DRI versions of Glide. | |
35 | ||
b6d836b1 JR |
36 | %description -l pl.UTF-8 |
37 | Ta biblioteka pozwala użytkownikowi na używanie kart 3dfx Interactive | |
590f1ce0 JB |
38 | Voodoo4 lub Voodoo5 pod Linuksem z DRI. Ta wersja zawiera wsparcie dla |
39 | wersji Glide z DRI i bez DRI. | |
40 | ||
41 | %package devel | |
42 | Summary: Development headers for Glide 3.x | |
b6d836b1 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe Glide 3.x |
590f1ce0 | 44 | Group: X11/Development/Libraries |
42be5e36 | 45 | Requires: %{name} = %{epoch}:%{version}-%{release} |
590f1ce0 | 46 | Provides: Glide3-DRI-devel |
45ab1160 | 47 | Obsoletes: Glide_V3-DRI-devel |
590f1ce0 JB |
48 | |
49 | %description devel | |
50 | This package includes the headers files, documentation, and test files | |
51 | necessary for developing applications that use the 3Dfx Interactive | |
52 | Voodoo4 or Voodoo5 cards. | |
53 | ||
b6d836b1 JR |
54 | %description devel -l pl.UTF-8 |
55 | Ten pakiet zawiera pliki nagłówkowe, dokumentacje, oraz pliki tekstowe | |
56 | wymagane przez aplikacje deweloperskie, które używają kart 3Dfx | |
590f1ce0 JB |
57 | Interactive Voodoo4 lub Voodoo5. |
58 | ||
59 | %package static | |
60 | Summary: Static Glide 3.x library | |
b6d836b1 | 61 | Summary(pl.UTF-8): Statyczne biblioteki Glide 3.x |
590f1ce0 | 62 | Group: X11/Development/Libraries |
42be5e36 | 63 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
590f1ce0 | 64 | Provides: Glide3-DRI-static |
45ab1160 | 65 | Obsoletes: Glide_V3-DRI-static |
590f1ce0 JB |
66 | |
67 | %description static | |
68 | This package includes the static Glide3 library for Voodoo4 or | |
69 | Voodoo5. | |
70 | ||
b6d836b1 | 71 | %description static -l pl.UTF-8 |
590f1ce0 JB |
72 | Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub |
73 | Voodoo5. | |
74 | ||
75 | %prep | |
76 | %setup -q -n glide3x-%{snapdate} | |
77 | %patch0 -p1 | |
78 | %patch1 -p1 | |
79 | %patch2 -p1 | |
80 | %patch3 -p1 | |
b1a4e0bf | 81 | %patch4 -p1 |
fff85a0f | 82 | %patch5 -p1 |
5f9ad92d | 83 | %patch6 -p1 |
da2688cd | 84 | %patch7 -p1 |
590f1ce0 JB |
85 | |
86 | %build | |
c344c3ed | 87 | %{__libtoolize} |
709ee4a0 | 88 | %{__aclocal} |
9a2937b9 | 89 | %{__autoconf} |
90 | %{__automake} -i | |
590f1ce0 JB |
91 | %configure \ |
92 | --enable-fx-dri-build \ | |
93 | --enable-fx-glide-hw=h5 \ | |
94 | --enable-fx-debug=no \ | |
aebb7f24 | 95 | %ifarch i586 i686 athlon |
80d7c5bd JB |
96 | --enable-amd3d |
97 | %endif | |
590f1ce0 JB |
98 | |
99 | %{__make} -f makefile.autoconf all \ | |
100 | GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ | |
c1ffc1fc JB |
101 | GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ |
102 | LINK_LIBS="-L/usr/X11R6/%{_lib} -lX11 -lXext -lXxf86dga -lXxf86vm -lm" \ | |
103 | PREPROCESSOR='cpp -$$ -I.' | |
590f1ce0 JB |
104 | |
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
5c82fbbc | 107 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests |
590f1ce0 JB |
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 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
b1a4e0bf JB |
115 | # used by tdfx_dri.so from XFree86 |
116 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so | |
117 | # used by ??? | |
590f1ce0 JB |
118 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so |
119 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so | |
120 | ||
121 | # Install the examples and their source, no binaries | |
5c82fbbc JB |
122 | install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/makefile |
123 | install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests | |
124 | install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests | |
125 | install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests | |
126 | install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests | |
127 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/*.3df | |
590f1ce0 | 128 | |
590f1ce0 JB |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
b1a4e0bf JB |
132 | %post -p /sbin/ldconfig |
133 | %postun -p /sbin/ldconfig | |
590f1ce0 JB |
134 | |
135 | %files | |
136 | %defattr(644,root,root,755) | |
8972c874 | 137 | %doc glide_license.txt |
590f1ce0 | 138 | %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* |
b1a4e0bf | 139 | %attr(755,root,root) %{_libdir}/libglide3-v5.so |
590f1ce0 JB |
140 | %attr(755,root,root) %{_libdir}/libglide3x.so |
141 | %attr(755,root,root) %{_libdir}/libglide3x_V5.so | |
142 | ||
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
590f1ce0 | 145 | %attr(755,root,root) %{_libdir}/libglide3.so |
5f9ad92d | 146 | %{_libdir}/lib*.la |
590f1ce0 | 147 | %{_includedir}/glide3 |
5c82fbbc | 148 | %{_examplesdir}/%{name}-%{version} |
590f1ce0 JB |
149 | |
150 | %files static | |
151 | %defattr(644,root,root,755) | |
152 | %{_libdir}/lib*.a |