]> git.pld-linux.org Git - packages/Glide_V5-DRI.git/blob - Glide_V5-DRI.spec
- added md5
[packages/Glide_V5-DRI.git] / Glide_V5-DRI.spec
1 %define snapdate 20010309
2 Summary:        Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards
3 Summary(pl):    Biblioteki Glide dla kart 3Dfx Voodoo4 i Voodoo5
4 Name:           Glide_V5-DRI
5 Version:        3.10.0
6 Release:        0.%{snapdate}.8
7 Epoch:          1
8 License:        3dfx Glide General Public License, 3Dfx Interactive Inc.
9 Vendor:         3dfx Interactive Inc.
10 Group:          X11/Libraries
11 Source0:        cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
12 # Source0-md5:  42a8e093221b2360ec96191ae0e13ce0
13 Patch0:         glide-ia64.patch
14 Patch1:         glide-ac-workaround.patch
15 Patch2:         glide-h3.patch
16 Patch3:         glide-h5.patch
17 Patch4:         glide-am16.patch
18 Icon:           3dfx.gif
19 URL:            http://glide.sourceforge.net/
20 BuildRequires:  XFree86-devel
21 BuildRequires:  automake
22 BuildRequires:  autoconf
23 BuildRequires:  libtool
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Provides:       Glide3-DRI
26 Obsoletes:      Glide_V3-DRI
27
28 %description 
29 This library allows the user to use a 3dfx Interactive Voodoo4 or
30 Voodoo5 card under Linux with DRI support. The source support DRI or
31 non-DRI versions of Glide.
32
33 %description -l pl
34 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
35 Voodoo4 lub Voodoo5 pod Linuksem z DRI. Ta wersja zawiera wsparcie dla
36 wersji Glide z DRI i bez DRI.
37
38 %package devel
39 Summary:        Development headers for Glide 3.x
40 Summary(pl):    Pliki nag³ówkowe Glide 3.x
41 Group:          X11/Development/Libraries
42 Requires:       %{name} = %{version}
43 Provides:       Glide3-DRI-devel
44 Obsoletes:      Glide_V3-DRI-devel
45
46 %description devel
47 This package includes the headers files, documentation, and test files
48 necessary for developing applications that use the 3Dfx Interactive
49 Voodoo4 or Voodoo5 cards.
50
51 %description devel -l pl
52 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
53 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
54 Interactive Voodoo4 lub Voodoo5.
55
56 %package static
57 Summary:        Static Glide 3.x library
58 Summary(pl):    Statyczne biblioteki Glide 3.x
59 Group:          X11/Development/Libraries
60 Requires:       %{name}-devel = %{version}
61 Provides:       Glide3-DRI-static
62 Obsoletes:      Glide_V3-DRI-static
63
64 %description static
65 This package includes the static Glide3 library for Voodoo4 or
66 Voodoo5.
67
68 %description static -l pl
69 Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub
70 Voodoo5.
71
72 %prep
73 %setup -q -n glide3x-%{snapdate}
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77 %patch3 -p1
78 %patch4 -p1
79
80 %build
81 rm -f missing
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 %{__automake} -i
86 %configure \
87         --enable-fx-dri-build \
88         --enable-fx-glide-hw=h5 \
89         --enable-fx-debug=no \
90 %ifarch i586 i686 athlon
91         --enable-amd3d
92 %endif
93
94 %{__make} -f makefile.autoconf all \
95         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
96         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
101
102 # something is recompiled - use GCFLAGS too
103 %{__make} -f makefile.autoconf install \
104         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
105         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 # used by tdfx_dri.so from XFree86
109 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so
110 # used by ???
111 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so
112 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
113
114 # Install the examples and their source, no binaries
115 install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
116 install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
117 install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
118 install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
119 install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
128 %defattr(644,root,root,755)
129 %doc glide_license.txt
130 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
131 %attr(755,root,root) %{_libdir}/libglide3-v5.so
132 %attr(755,root,root) %{_libdir}/libglide3x.so
133 %attr(755,root,root) %{_libdir}/libglide3x_V5.so
134
135 %files devel
136 %defattr(644,root,root,755)
137 %{_examplesdir}/glide3
138 %{_libdir}/lib*.la
139 %attr(755,root,root) %{_libdir}/libglide3.so
140 %{_includedir}/glide3
141
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/lib*.a
This page took 0.073449 seconds and 3 git commands to generate.