]>
Commit | Line | Data |
---|---|---|
d28632da JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without glide3_sdk # don't build glide3x SDK here | |
4 | # | |
590f1ce0 | 5 | %define snapdate 20010309 |
e0c8b99e | 6 | %define rel 12 |
590f1ce0 | 7 | Summary: Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards |
2a70c4fb ER |
8 | Summary(ko.UTF-8): 3Dfx 부두 벤쉬/3 비디오카드용 Glide 런타임 라이브러리 |
9 | Summary(pl.UTF-8): Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5 | |
590f1ce0 JB |
10 | Name: Glide_V5-DRI |
11 | Version: 3.10.0 | |
e0c8b99e | 12 | Release: 0.%{snapdate}.%{rel} |
590f1ce0 | 13 | Epoch: 1 |
80d7c5bd | 14 | License: 3dfx Glide General Public License, 3Dfx Interactive Inc. |
590f1ce0 | 15 | Group: X11/Libraries |
590f1ce0 | 16 | Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz |
49bc33fb | 17 | # Source0-md5: 42a8e093221b2360ec96191ae0e13ce0 |
590f1ce0 JB |
18 | Patch0: glide-ia64.patch |
19 | Patch1: glide-ac-workaround.patch | |
20 | Patch2: glide-h3.patch | |
21 | Patch3: glide-h5.patch | |
b1a4e0bf | 22 | Patch4: glide-am16.patch |
fff85a0f | 23 | Patch5: glide-gcc33.patch |
5f9ad92d | 24 | Patch6: glide-ioctl.patch |
da2688cd | 25 | Patch7: glide-morearchs.patch |
e0c8b99e JB |
26 | Patch8: glide-gcc4.patch |
27 | Patch9: glide-no_redefine_macro.patch | |
80d7c5bd | 28 | URL: http://glide.sourceforge.net/ |
590f1ce0 | 29 | BuildRequires: autoconf |
e0c8b99e | 30 | BuildRequires: automake |
590f1ce0 | 31 | BuildRequires: libtool |
e0c8b99e JB |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXext-devel | |
34 | BuildRequires: xorg-lib-libXxf86dga-devel | |
35 | BuildRequires: xorg-lib-libXxf86vm-devel | |
590f1ce0 | 36 | Provides: Glide3-DRI |
45ab1160 | 37 | Obsoletes: Glide_V3-DRI |
e0c8b99e | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
590f1ce0 | 39 | |
cadbcc39 | 40 | %description |
590f1ce0 JB |
41 | This library allows the user to use a 3dfx Interactive Voodoo4 or |
42 | Voodoo5 card under Linux with DRI support. The source support DRI or | |
43 | non-DRI versions of Glide. | |
44 | ||
b6d836b1 JR |
45 | %description -l pl.UTF-8 |
46 | Ta biblioteka pozwala użytkownikowi na używanie kart 3dfx Interactive | |
590f1ce0 JB |
47 | Voodoo4 lub Voodoo5 pod Linuksem z DRI. Ta wersja zawiera wsparcie dla |
48 | wersji Glide z DRI i bez DRI. | |
49 | ||
50 | %package devel | |
51 | Summary: Development headers for Glide 3.x | |
2a70c4fb | 52 | Summary(pl.UTF-8): Pliki nagłówkowe Glide 3.x |
590f1ce0 | 53 | Group: X11/Development/Libraries |
42be5e36 | 54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
df099ade | 55 | Requires: Glide3x_SDK >= %{epoch}:%{version} |
590f1ce0 | 56 | Provides: Glide3-DRI-devel |
45ab1160 | 57 | Obsoletes: Glide_V3-DRI-devel |
590f1ce0 JB |
58 | |
59 | %description devel | |
60 | This package includes the headers files, documentation, and test files | |
61 | necessary for developing applications that use the 3Dfx Interactive | |
62 | Voodoo4 or Voodoo5 cards. | |
63 | ||
b6d836b1 JR |
64 | %description devel -l pl.UTF-8 |
65 | Ten pakiet zawiera pliki nagłówkowe, dokumentacje, oraz pliki tekstowe | |
66 | wymagane przez aplikacje deweloperskie, które używają kart 3Dfx | |
590f1ce0 JB |
67 | Interactive Voodoo4 lub Voodoo5. |
68 | ||
69 | %package static | |
70 | Summary: Static Glide 3.x library | |
2a70c4fb | 71 | Summary(pl.UTF-8): Statyczne biblioteki Glide 3.x |
590f1ce0 | 72 | Group: X11/Development/Libraries |
42be5e36 | 73 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
590f1ce0 | 74 | Provides: Glide3-DRI-static |
45ab1160 | 75 | Obsoletes: Glide_V3-DRI-static |
590f1ce0 JB |
76 | |
77 | %description static | |
78 | This package includes the static Glide3 library for Voodoo4 or | |
79 | Voodoo5. | |
80 | ||
b6d836b1 | 81 | %description static -l pl.UTF-8 |
590f1ce0 JB |
82 | Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub |
83 | Voodoo5. | |
84 | ||
d28632da JB |
85 | %package -n Glide3x_SDK |
86 | Summary: Development libraries for Glide 3.x | |
87 | Summary(pl.UTF-8): Część Glide 3.x przeznaczona dla programistów | |
88 | Group: Development/Libraries | |
89 | Conflicts: Glide_SDK | |
90 | ||
91 | %description -n Glide3x_SDK | |
92 | This package includes the header files and test files necessary for | |
93 | developing applications that use any of the 3D accelerators in the | |
94 | 3Dfx Interactive Voodoo line utilizing Glide 3.x interface. | |
95 | ||
96 | %description -n Glide3x_SDK -l pl.UTF-8 | |
97 | Ten pakiet zawiera pliki nagłówkowe i pliki testowe potrzebne do | |
98 | tworzenia aplikacji korzystających z akceleratorów 3D serii 3Dfx | |
99 | Interactive Voodoo przy użyciu interfejsu Glide 3.x. | |
100 | ||
590f1ce0 JB |
101 | %prep |
102 | %setup -q -n glide3x-%{snapdate} | |
103 | %patch0 -p1 | |
104 | %patch1 -p1 | |
105 | %patch2 -p1 | |
106 | %patch3 -p1 | |
b1a4e0bf | 107 | %patch4 -p1 |
fff85a0f | 108 | %patch5 -p1 |
5f9ad92d | 109 | %patch6 -p1 |
da2688cd | 110 | %patch7 -p1 |
e0c8b99e JB |
111 | %patch8 -p2 |
112 | %patch9 -p1 | |
590f1ce0 JB |
113 | |
114 | %build | |
c344c3ed | 115 | %{__libtoolize} |
709ee4a0 | 116 | %{__aclocal} |
9a2937b9 | 117 | %{__autoconf} |
118 | %{__automake} -i | |
590f1ce0 JB |
119 | %configure \ |
120 | --enable-fx-dri-build \ | |
121 | --enable-fx-glide-hw=h5 \ | |
122 | --enable-fx-debug=no \ | |
aebb7f24 | 123 | %ifarch i586 i686 athlon |
80d7c5bd JB |
124 | --enable-amd3d |
125 | %endif | |
590f1ce0 | 126 | |
e0c8b99e | 127 | %{__make} -j1 -f makefile.autoconf all \ |
590f1ce0 | 128 | GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ |
c1ffc1fc | 129 | GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ |
e0c8b99e JB |
130 | LINK_LIBS="-lX11 -lXext -lXxf86dga -lXxf86vm -lm" \ |
131 | PREPROCESSOR='cpp -I. -x assembler-with-cpp' | |
590f1ce0 JB |
132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
590f1ce0 JB |
135 | |
136 | # something is recompiled - use GCFLAGS too | |
137 | %{__make} -f makefile.autoconf install \ | |
138 | GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ | |
139 | GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ | |
e0c8b99e | 140 | LINK_LIBS="-lX11 -lXext -lXxf86dga -lXxf86vm -lm" \ |
590f1ce0 JB |
141 | DESTDIR=$RPM_BUILD_ROOT |
142 | ||
b1a4e0bf JB |
143 | # used by tdfx_dri.so from XFree86 |
144 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so | |
145 | # used by ??? | |
590f1ce0 | 146 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so |
d28632da | 147 | # used by dlopen in X driver |
590f1ce0 JB |
148 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so |
149 | ||
d28632da | 150 | %if %{with glide3_sdk} |
590f1ce0 | 151 | # Install the examples and their source, no binaries |
df099ade JB |
152 | install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests |
153 | install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests/makefile | |
154 | install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
155 | install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
156 | install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
157 | install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
158 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests/*.3df | |
d28632da JB |
159 | %else |
160 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/glide3 | |
161 | %endif | |
590f1ce0 | 162 | |
590f1ce0 JB |
163 | %clean |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
b1a4e0bf JB |
166 | %post -p /sbin/ldconfig |
167 | %postun -p /sbin/ldconfig | |
590f1ce0 JB |
168 | |
169 | %files | |
170 | %defattr(644,root,root,755) | |
8972c874 | 171 | %doc glide_license.txt |
590f1ce0 | 172 | %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* |
e0c8b99e | 173 | %attr(755,root,root) %ghost %{_libdir}/libglide3.so.3 |
b1a4e0bf | 174 | %attr(755,root,root) %{_libdir}/libglide3-v5.so |
590f1ce0 JB |
175 | %attr(755,root,root) %{_libdir}/libglide3x.so |
176 | %attr(755,root,root) %{_libdir}/libglide3x_V5.so | |
177 | ||
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
590f1ce0 | 180 | %attr(755,root,root) %{_libdir}/libglide3.so |
e0c8b99e | 181 | %{_libdir}/libglide3.la |
590f1ce0 JB |
182 | |
183 | %files static | |
184 | %defattr(644,root,root,755) | |
e0c8b99e | 185 | %{_libdir}/libglide3.a |
d28632da JB |
186 | |
187 | %if %{with glide3_sdk} | |
df099ade | 188 | %files -n Glide3x_SDK |
d28632da JB |
189 | %defattr(644,root,root,755) |
190 | %{_includedir}/glide3 | |
df099ade | 191 | %{_examplesdir}/glide3x-%{version} |
d28632da | 192 | %endif |